From 38cc5a10a9375710a7de29d3db8351c55dd41f17 Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Tue, 5 Mar 2019 16:55:09 -0500 Subject: [PATCH] move tag graph button (#4921) * move tag graph button * Update _user_controls.html.erb --- app/views/tag/show.html.erb | 8 -------- app/views/tag/show/_user_controls.html.erb | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/views/tag/show.html.erb b/app/views/tag/show.html.erb index e2584c56d05..baf619e88b4 100644 --- a/app/views/tag/show.html.erb +++ b/app/views/tag/show.html.erb @@ -2,15 +2,7 @@
<%= render partial: 'tag/show/header' %> - - - <% if @tags.first && params[:id][-1..-1] != "*" %> - <%= link_to tag_stats_path, id: params[:id] ,title: "Click to view graph" do %> - Stats - <% end %> - <% end %> - <%= render partial: 'tag/show/contributors' %> <% unless @tags.try(:first).try(:parent).nil? %> diff --git a/app/views/tag/show/_user_controls.html.erb b/app/views/tag/show/_user_controls.html.erb index a2838048ea3..f73bf78ed96 100644 --- a/app/views/tag/show/_user_controls.html.erb +++ b/app/views/tag/show/_user_controls.html.erb @@ -1,6 +1,11 @@ <% if current_user %>
+ <% unless @wildcard %> + <%= link_to tag_stats_path, id: params[:id] ,title: "Click to view graph" do %> + Stats + <% end %> + <% end %> RSS <% unless @wildcard %> <% if current_user.following(params[:id]) %>