From 24e11e4c1aab3284dd88b3cd7cf2c6cd85997142 Mon Sep 17 00:00:00 2001 From: jywarren Date: Thu, 11 Jun 2020 16:58:46 -0600 Subject: [PATCH] contributors tables fixes --- app/views/tag/_contributors.html.erb | 52 +++++----- app/views/tag/contributors.html.erb | 121 +++++++++++------------ app/views/tag/show.html.erb | 2 +- app/views/tag/show/_tab_content.html.erb | 6 +- 4 files changed, 89 insertions(+), 92 deletions(-) diff --git a/app/views/tag/_contributors.html.erb b/app/views/tag/_contributors.html.erb index ec3eb7c0a0..b383b1f6f3 100644 --- a/app/views/tag/_contributors.html.erb +++ b/app/views/tag/_contributors.html.erb @@ -34,33 +34,35 @@ <% elsif @note_count.nil? || @note_count == 0 %>

<%= raw translation('tag.contributors.no_contributors', :tag => params[:id]) %>:

<% else %> -
- - - - - - <% if @users %> - <% @users.each do |user| %> - - - - +
+
+
<%= translation('tag.contributors.people_who\'ve_posted') %><%= translation('tag.contributors.notes') %>
<%= user.name %><%= translation('tag.contributors.notes') %> »
+ + + + + <% if @users %> + <% @users.each do |user| %> + + + + + <% end %> <% end %> - <% end %> -
<%= translation('tag.contributors.people_who\'ve_posted') %><%= translation('tag.contributors.notes') %>
<%= user.name %><%= translation('tag.contributors.notes') %> »
-
-
- - - - - <% Tag.followers(params[:id]) && Tag.followers(params[:id]).each do |follower| %> - - +
<%= translation('tag.contributors.people_who_are_following') %>
<%= follower.name %>
+
+
+ + + - <% end %> -
<%= translation('tag.contributors.people_who_are_following') %>
+ <% Tag.followers(params[:id]) && Tag.followers(params[:id]).each do |follower| %> + + <%= follower.name %> + + <% end %> + +

<% end %> diff --git a/app/views/tag/contributors.html.erb b/app/views/tag/contributors.html.erb index d2c7144d3f..ca902b5f4c 100644 --- a/app/views/tag/contributors.html.erb +++ b/app/views/tag/contributors.html.erb @@ -1,69 +1,68 @@ -
- <% if @tag %> -
+
+<% if @tag %> +
- - + +
-

<%= raw translation('tag.contributors.contributors_for', :tag_name => params[:id]) %>

-

<%= translation('tag.contributors.contributions_over_past_year') %>

+

<%= raw translation('tag.contributors.contributors_for', :tag_name => params[:id]) %>

+

<%= translation('tag.contributors.contributions_over_past_year') %>

- <% end %> +<% end %> - <%= render :partial => "tag/contributors" %> +<%= render partial: "tag/contributors" %>
-<%= render :partial => "sidebar/related" %> diff --git a/app/views/tag/show.html.erb b/app/views/tag/show.html.erb index 46eb0b5726..769db6cda9 100644 --- a/app/views/tag/show.html.erb +++ b/app/views/tag/show.html.erb @@ -49,7 +49,7 @@
-
+
<%= render partial: 'tag/show/contributors' %> diff --git a/app/views/tag/show/_tab_content.html.erb b/app/views/tag/show/_tab_content.html.erb index 5093feeead..bc93e30cdc 100644 --- a/app/views/tag/show/_tab_content.html.erb +++ b/app/views/tag/show/_tab_content.html.erb @@ -53,11 +53,7 @@ <% if @node_type == "contributors" %>
-
-
- <%= render partial: "tag/contributors" %> -
-
+ <%= render partial: "tag/contributors" %>
<% end %>