aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-03-09 18:34:21 +0100
committerMax Magorsch <arzano@gentoo.org>2020-03-09 18:34:21 +0100
commitc80c0a2182c5c1b1e9986acb75430e2d53f997ff (patch)
treec50939b6f9f53d3296e19c1c0164fe82c3723ed3 /tyrian-contributors.html.erb
parentFix the atom feeds so that they are valid (diff)
downloadplanet-tyrian-c80c0a2182c5c1b1e9986acb75430e2d53f997ff.tar.gz
planet-tyrian-c80c0a2182c5c1b1e9986acb75430e2d53f997ff.tar.bz2
planet-tyrian-c80c0a2182c5c1b1e9986acb75430e2d53f997ff.zip
Correctly display universe feeds of gentoo devs
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'tyrian-contributors.html.erb')
-rw-r--r--tyrian-contributors.html.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tyrian-contributors.html.erb b/tyrian-contributors.html.erb
index 71d6d7f..d73d19b 100644
--- a/tyrian-contributors.html.erb
+++ b/tyrian-contributors.html.erb
@@ -112,14 +112,14 @@
<div class="page-header mb-4" style="border-bottom: none!important;padding-bottom: 10px!important;margin-top:0px!important;">
<h1>Contributors <br>
- <small> the gentoo universe aggregates feeds from <%= site.items.map { |i| i.feed }.uniq.length() %>
+ <small> the gentoo universe aggregates feeds from <%= site.items.map { |i| i.feed }.uniq { |feed| feed.author }.length() %>
sources</small>
</h1>
</div>
<div class="row equal">
- <% site.items.map { |i| i.feed }.uniq.each do |feed| %>
+ <% site.items.map { |i| i.feed }.uniq { |feed| feed.author }.each do |feed| %>
<div class="col-sm-4">
<div class="card" style="height:90%;">
@@ -129,13 +129,13 @@
<img src="https://www.gravatar.com/avatar/<%= feed.avatar %>" style="border-radius: 6px;"/>
</div>
<div class="col-sm-8">
- <p class="mb-1"><b><%= feed.title %> (<%= feed.key %>)</b></p>
+ <p class="mb-1"><b><%= feed.author %> (<%= feed.title %>)</b></p>
<div style="color:#777;">
<p style="margin-bottom:5px;"><%= feed.auto_url.gsub('https://', '').gsub('http://', '') %> </p>
<% if !feed.updated.nil? %>
<p style="margin-bottom:5px;">Last update: <%= feed.updated.strftime('%B %d') %></p>
<% end %>
- <p style="margin-bottom:5px;">Posts: <%= site.items.select { |i| i.feed.key == feed.key }.length() %></p>
+ <p style="margin-bottom:5px;">Posts: <%= site.items.select { |i| i.feed.author == feed.author }.length() %></p>
</div>
</div>