Skip to content

Commit

Permalink
Only show link if single page view is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
somathias committed Jul 10, 2023
1 parent e913bae commit 0b47ea8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/views/samples/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<% if @data_file || @sample_type || @template %>
<% if @sample_type %>
<p>
<% if Seek::Config.project_single_page_enabled %>
Showing for Sample Type: <b> <%= @sample_type.title %> </b>
<% else %>
Showing for Sample Type: <%= link_to @sample_type.title,@sample_type %>
<% end %>
</p>
<% unless Seek::Config.project_single_page_enabled %>
<p> Showing for Sample Type: <%= link_to @sample_type.title,@sample_type %> </p>
<% end %>
<% resource_hash = get_related_resources(@sample_type) %>
<% @total_count = resource_hash["Sample"][:items].count + resource_hash["Sample"][:hidden_count] %>
<% @visible_count = resource_hash["Sample"][:items].count %>
Expand Down

0 comments on commit 0b47ea8

Please sign in to comment.