comparison app/views/tweets/show.atom.erb @ 106:3ad8e6d20e79

Fix atom feed compliances - date format according to xml - no spacing for updated tag
author nanaya <me@myconan.net>
date Sun, 16 Oct 2016 05:45:21 +0900
parents 148d8c17cb79
children 5075b243d7d0
comparison
equal deleted inserted replaced
105:ad464c8b6991 106:3ad8e6d20e79
6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" /> 6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
7 7
8 <title><%= "#{@user.name} (#{@user.screen_name})" %></title> 8 <title><%= "#{@user.name} (#{@user.screen_name})" %></title>
9 <icon><%= @user.profile_image_url_https %></icon> 9 <icon><%= @user.profile_image_url_https %></icon>
10 10
11 <updated> 11 <updated><%= (@tweets.first.try(:created_at) || Time.at(0)).xmlschema %></updated>
12 <%= @tweets.first.try(:created_at) || Time.at(0) %>
13 </updated>
14 12
15 <%= render :partial => "tweet", :collection => @tweets, :cached => true %> 13 <%= render :partial => "tweet", :collection => @tweets, :cached => true %>
16 </feed> 14 </feed>