philomena/lib/philomena_web/templates/api/rss/watched/index.html.eex

27 lines
1.1 KiB
Elixir
Raw Normal View History

2019-12-01 00:11:24 +01:00
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<rss version="2.0">
<channel>
2024-05-20 19:04:12 +02:00
<title><%= site_name() %> Watchlist</title>
<description>Your watched tags feed from <%= site_name() %></description>
2019-12-01 00:11:24 +01:00
<link><%= Routes.api_rss_watched_url(@conn, :index) %></link>
<lastBuildDate><%= last_build_date() %></lastBuildDate>
<%= for image <- @images do %>
<item>
<title>#<%= image.id %> - <%= tag_list(image) %></title>
2019-12-01 00:11:24 +01:00
<description>
<![CDATA[
<% mouseovertext = "Size: #{image.image_width}x#{image.image_height} | Tagged: #{tag_list(image)}" %>
2019-12-01 00:11:24 +01:00
<a href="<%= Routes.image_url(@conn, :show, image) %>">
<img src="<%= medium_url(image) %>" alt="<%= mouseovertext %>" title="<%= mouseovertext %>"/>
2019-12-01 00:11:24 +01:00
</a>
]]>
</description>
<pubDate><%= DateTime.to_iso8601(image.created_at) %></pubDate>
2019-12-01 00:11:24 +01:00
<link><%= Routes.image_url(@conn, :show, image) %></link>
<guid><%= Routes.image_url(@conn, :show, image) %></guid>
</item>
<% end %>
</channel>
</rss>