Skip to content

Commit

Permalink
move tag graph button (publiclab#4921)
Browse files Browse the repository at this point in the history
* move tag graph button

* Update _user_controls.html.erb
  • Loading branch information
jywarren authored Mar 5, 2019
1 parent f64aae7 commit 38cc5a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/views/tag/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@

<div class="col-md-12">
<%= 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 %>
<i class="btn btn-default btn-sm"><i class="fa fa-bar-chart"></i> Stats </i>
<% end %>
<% end %>

<%= render partial: 'tag/show/contributors' %>

<% unless @tags.try(:first).try(:parent).nil? %>
Expand Down
5 changes: 5 additions & 0 deletions app/views/tag/show/_user_controls.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<% if current_user %>
<!-- AJAXify -->
<div class="btn-group">
<% unless @wildcard %>
<%= link_to tag_stats_path, id: params[:id] ,title: "Click to view graph" do %>
<i class="btn btn-default btn-sm"><i class="fa fa-bar-chart"></i> Stats </i>
<% end %>
<% end %>
<a class="btn btn-default btn-sm" href="/feed/tag/<%= params[:id] %>.rss"><i class="fa fa-rss"></i> RSS</a>
<% unless @wildcard %>
<% if current_user.following(params[:id]) %>
Expand Down

0 comments on commit 38cc5a1

Please sign in to comment.