Skip to content

Commit

Permalink
Merge pull request #1866 from samvera/1865-neutral-repo-share-work-fix
Browse files Browse the repository at this point in the history
moves share your work button outside of featured works partial
  • Loading branch information
labradford authored Dec 16, 2022
2 parents 39172cb + 90d6c54 commit dcedb9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
</div>
<% end %>
<%# April todo add featured reserarch/recent doc feature flags %>
<%= render 'themes/neutral_repository/layouts/share_your_work_row' if controller_name == 'homepage' %>
<% if @presenter.display_featured_works? %>
<div class="col-xs-12">
<%= render 'themes/neutral_repository/hyrax/homepage/featured_works' %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<h2 class="sr-only"><%= t('hyrax.homepage.featured_works.title') %></h2>
<% if @featured_work_list.empty? %>
<%= render 'themes/neutral_repository/layouts/share_your_work_row' if controller_name == 'homepage' %>
<p><%= t('hyrax.homepage.featured_works.no_works') %></p>
<% elsif can? :update, FeaturedWork %>
<%= render 'themes/neutral_repository/layouts/share_your_work_row' if controller_name == 'homepage' %>
<%= form_for [hyrax, @featured_work_list] do |f| %>
<div class="panel-group dd" id="dd">
<ol id="featured_works">
Expand Down

0 comments on commit dcedb9d

Please sign in to comment.