annotate app/views/tweets/show.atom.erb @ 153:cd76c83d6d24

Update rails to 5.2.0 and other gems to their latest version
author nanaya <me@nanaya.pro>
date Sat, 14 Apr 2018 04:06:04 +0900
parents bef9b0c1d273
children 7a773720d81f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
2 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
3 <id><%= atom_id(@user.id) %></id>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
4
139
ee5876dd9b45 Link alt to main twitter
nanaya <me@nanaya.pro>
parents: 122
diff changeset
5 <link rel="alternate" type="text/html" href="https://twitter.com/<%= @user.screen_name %>" />
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
6 <link rel="self" type="application/atom+xml" href="<%= request.url %>" />
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
7
140
bef9b0c1d273 Ensure printable name everywhere
nanaya <me@nanaya.pro>
parents: 139
diff changeset
8 <title><%= "#{@user.name.printable} (#{@user.screen_name})" %></title>
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
9 <icon><%= @user.profile_image_url_https %></icon>
122
5075b243d7d0 Add logo
nanaya <me@myconan.net>
parents: 106
diff changeset
10 <logo><%= @user.profile_image_url_https %></logo>
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
11
106
3ad8e6d20e79 Fix atom feed compliances
nanaya <me@myconan.net>
parents: 96
diff changeset
12 <updated><%= (@tweets.first.try(:created_at) || Time.at(0)).xmlschema %></updated>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
13
96
148d8c17cb79 Less monkeypatching rails, more monkeypatching tweet
nanaya <me@myconan.net>
parents: 95
diff changeset
14 <%= render :partial => "tweet", :collection => @tweets, :cached => true %>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
15 </feed>