Skip to content

Commit

Permalink
Add co-author to blog index page (publiclab#8137)
Browse files Browse the repository at this point in the history
  • Loading branch information
mronauli authored and alvesitalo committed Oct 14, 2020
1 parent 10bda50 commit 540ac55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/tag/blog.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
<h1><a href="<%= node.path %>"><%= node.title %></a></h1>
<p class="meta" style="color:#888;"><small>
<%=raw translation('tag.blog.by') %> <a href="/profile/<%= node.author.name %>"><%= node.author.name %></a> <%= node.author.new_contributor %>
<% if node.has_power_tag('with') %>with <% node.coauthors.each_with_index do |coauthor,i| %>
<a href="/profile/<%= coauthor.username %>">
<%= coauthor.username%></a> <%= coauthor.new_contributor %>
<%= ',' if i < node.coauthors.length-1 %><% end %><% end %>
| <%= distance_of_time_in_words(node.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>
| <a href="<%= node.path %>#comments"><i style="color:#888;" class="fa fa-comment-o"></i> <%= node.comments_viewable_by(current_user).length %></a>
<% if params[:controller] == "notes" && params[:action] == "popular" %>
Expand Down

0 comments on commit 540ac55

Please sign in to comment.