app/views/hyrax/homepage/_home_content.html.erb in hyrax-1.1.1 vs app/views/hyrax/homepage/_home_content.html.erb in hyrax-2.0.0.beta1
- old
+ new
@@ -13,25 +13,21 @@
</div>
</div><!-- /.col-xs-6 -->
<div class="col-xs-12 col-sm-6">
- <% if Flipflop.assign_admin_set? %>
- <ul class="nav nav-tabs" role="tablist">
- <li class="active"><a aria-expanded="true" href="#tab-col2-first" role="tab" data-toggle="tab"><%= t('hyrax.homepage.admin_sets.title') %></a></li>
- <li class=""><a aria-expanded="false" href="#tab-col2-second" role="tab" data-toggle="tab"><%= t('hyrax.homepage.featured_researcher.tab_label') %></a></li>
- </ul>
- <div class="tab-content">
- <div class="tab-pane active" id="tab-col2-first">
- <h2 class="sr-only"><%= t('hyrax.homepage.admin_sets.title') %></h2>
- <%= render 'explore_collections' %>
- </div>
- <div class="tab-pane" id="tab-col2-second">
- <h2 class="sr-only"><%= t('hyrax.homepage.featured_researcher.title') %></h2>
- <%= render 'featured_researcher' %>
- </div>
+ <ul class="nav nav-tabs" role="tablist">
+ <li class="active"><a aria-expanded="true" href="#tab-col2-first" role="tab" data-toggle="tab"><%= t('hyrax.homepage.admin_sets.title') %></a></li>
+ <li class=""><a aria-expanded="false" href="#tab-col2-second" role="tab" data-toggle="tab"><%= t('hyrax.homepage.featured_researcher.tab_label') %></a></li>
+ </ul>
+
+ <div class="tab-content">
+ <div class="tab-pane active" id="tab-col2-first">
+ <h2 class="sr-only"><%= t('hyrax.homepage.admin_sets.title') %></h2>
+ <%= render 'explore_collections', collections: @presenter.collections %>
</div>
- <% else %>
- <h2><%= t('hyrax.homepage.featured_researcher.title') %></h2>
- <%= render 'featured_researcher' %>
- <% end %>
+ <div class="tab-pane" id="tab-col2-second">
+ <h2 class="sr-only"><%= t('hyrax.homepage.featured_researcher.title') %></h2>
+ <%= render 'featured_researcher' %>
+ </div>
+ </div>
</div>