Sha256: ecb32e3221bb34f4522ce558e4db14a25c70fd59101b2af16b8346f511303259

Contents?: true

Size: 1.31 KB

Versions: 15

Compression:

Stored size: 1.31 KB

Contents

<% provide :page_title, application_name %>

<% if @presenter.display_share_button? && !Flipflop.read_only? %>
<div class="home-share-work text-center">
  <% if signed_in? %>
    <% if @presenter.create_many_work_types? %>
      <%= link_to '#',
        class: "btn btn-primary btn-lg",
        data: { behavior: 'select-work', toggle: 'modal', target: '#worktypes-to-create', 'create-type' => 'single' } do %>
        <i class="fa fa-upload" aria-hidden="true"></i> <%= t('hyrax.share_button') %>
      <% end %>
    <% else # simple link to the first work type %>
      <%= link_to new_polymorphic_path([main_app, @presenter.first_work_type]),
            class: 'btn btn-primary btn-lg' do %>
        <i class="fa fa-upload" aria-hidden="true"></i> <%= t('hyrax.share_button') %>
      <% end %>
    <% end %>
  <% else %>
    <%= link_to hyrax.my_works_path,
      class: "btn btn-primary btn-lg" do %>
      <i class="fa fa-upload" aria-hidden="true"></i> <%= t('hyrax.share_button') %>
    <% end %>
  <% end %>
  <p class="terms-of-use"><%= link_to t(:'hyrax.pages.tabs.terms_page'), hyrax.terms_path %></p>
</div>
<% end %>

<div class="row home-content">
  <%= render 'home_content' %>
</div>

<%= render '/shared/select_work_type_modal', create_work_presenter: @presenter.create_work_presenter if @presenter.draw_select_work_modal? %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.4 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.3 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.2 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.1 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.0 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/homepage/index.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/homepage/index.html.erb
hyrax-4.0.0 app/views/hyrax/homepage/index.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/homepage/index.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/homepage/index.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/homepage/index.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/homepage/index.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/homepage/index.html.erb