annotate app/views/tweets/show.atom.erb @ 262:cd927bb7dc0d

Move out custom application config
author nanaya <me@nanaya.net>
date Mon, 16 Dec 2024 01:39:38 +0900
parents c6a50441a58d
children
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">
234
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
3 <id><%= atom_id(@user[:id]) %></id>
94
0c8a8b390145 Now with epic caching
nanaya <me@myconan.net>
parents:
diff changeset
4
257
c6a50441a58d It's now X
nanaya <me@nanaya.net>
parents: 234
diff changeset
5 <link rel="alternate" type="text/html" href="https://x.com/<%= @user[:username] %>" />
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
234
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
8 <title><%= "#{@user[:name].printable} (#{@user[:username]})" %></title>
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
9 <icon><%= @user[:avatar_url] %></icon>
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
diff changeset
10 <logo><%= @user[:avatar_url] %></logo>
95
dfd7daac110e Simpler syntax because I can
nanaya <me@myconan.net>
parents: 94
diff changeset
11
234
7a773720d81f Totally legit client
nanaya <me@nanaya.net>
parents: 140
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>