From 540ac55f54ef550c79d48c396dd2987873bcd0c8 Mon Sep 17 00:00:00 2001 From: Maria <55954962+mronauli@users.noreply.github.com> Date: Tue, 14 Jul 2020 10:22:18 -0600 Subject: [PATCH] Add co-author to blog index page (#8137) --- app/views/tag/blog.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/tag/blog.html.erb b/app/views/tag/blog.html.erb index b3ca25d4e5f..e1a8e78e483 100644 --- a/app/views/tag/blog.html.erb +++ b/app/views/tag/blog.html.erb @@ -51,6 +51,10 @@

<%= node.title %>

<%=raw translation('tag.blog.by') %> <%= node.author.name %> <%= node.author.new_contributor %> + <% if node.has_power_tag('with') %>with <% node.coauthors.each_with_index do |coauthor,i| %> + + <%= coauthor.username%> <%= 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' }) %> | <%= node.comments_viewable_by(current_user).length %> <% if params[:controller] == "notes" && params[:action] == "popular" %>