Skip to content

Commit

Permalink
Move range below tabs (publiclab#8538)
Browse files Browse the repository at this point in the history
* Move tag range explanatory text below tabs

* Update _tab_content.html.erb
  • Loading branch information
jywarren authored and reginaalyssa committed Oct 16, 2021
1 parent e546a4d commit e4cbe32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/views/tag/show/_contributors.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@
<% else %>
<h3> <%= @node_type == "questions" ? "Questions" : "Notes" %> on <%= params[:id] %> by <%= link_to(@user.name,"/profile/#{@user.name}") %> </h3>
<% end %>
<% if @start && @end %>
<p>From <%= @start.to_formatted_s(:long) %> to <%= @end.to_formatted_s(:long) %></p>
<% end %>
5 changes: 5 additions & 0 deletions app/views/tag/show/_tab_content.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<div class="tab-content" style="clear:both;">

<% if @start && @end %>
<p>Displaying content from <%= @start.to_formatted_s(:long) %> to <%= @end.to_formatted_s(:long) %>. <a href="/tag/<%= params[:id] %>">View all</a></p>
<% end %>

<!-- separate these in partials-->
<!-- use controller to determine which partial to render -->
<% if @node_type == "note" %>
Expand Down

0 comments on commit e4cbe32

Please sign in to comment.