Skip to content

Commit

Permalink
Merge pull request seek4science#1507 from ScilifelabDataCentre/issue1…
Browse files Browse the repository at this point in the history
…423-delete-broken-link-in-single-page

Add check for single page view enabled (fix seek4science#1423)
  • Loading branch information
somathias authored Jul 10, 2023
2 parents 88c7d87 + 0b47ea8 commit aa23283
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/samples/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% if @data_file || @sample_type || @template %>
<% if @sample_type %>
<p>
Showing for Sample Type: <%= link_to @sample_type.title,@sample_type %>
</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 aa23283

Please sign in to comment.