comparison app/views/tweets/show.atom.erb @ 95:dfd7daac110e

Simpler syntax because I can
author nanaya <me@myconan.net>
date Thu, 28 Jul 2016 03:56:56 +0900
parents 0c8a8b390145
children 148d8c17cb79
comparison
equal deleted inserted replaced
94:0c8a8b390145 95:dfd7daac110e
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom"> 2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
3 <id> 3 <id><%= atom_id(@user.id) %></id>
4 tag:<%= request.host_with_port %>,2005:<%= @user.id %>
5 </id>
6 4
7 <link rel="alternate" type="text/html" href="<%= request.protocol %><%= request.host_with_port %>" /> 5 <link rel="alternate" type="text/html" href="<%= request.protocol %><%= request.host_with_port %>" />
8 <link rel="self" type="application/atom+xml" href="<%= request.url %>" /> 6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
9 7
10 <title> 8 <title><%= "#{@user.name} (#{@user.screen_name})" %></title>
11 <%= @user.name %> (<%= @user.screen_name %>) 9 <icon><%= @user.profile_image_url_https %></icon>
12 </title> 10
13 <icon>
14 <%= @user.profile_image_url_https %>
15 </icon>
16 <updated> 11 <updated>
17 <%= @tweets.first.try(:created_at) || Time.at(0) %> 12 <%= @tweets.first.try(:created_at) || Time.at(0) %>
18 </updated> 13 </updated>
19 14
20 <%= render(:partial => "tweet", :collection => @tweets, :cached => ->(f) { f.id }) %> 15 <%= render :partial => "tweet", :collection => @tweets, :cached => ->(f) { f.id } %>
21 </feed> 16 </feed>