Sha256: cc6e7784c61dd6b04f1e41697f1572633b679c7e43bfdfcbd8a2804f6c6aac61

Contents?: true

Size: 1.31 KB

Versions: 11

Compression:

Stored size: 1.31 KB

Contents

<% provide :page_title, application_name %>

<% if @presenter.display_share_button? %>
<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', target: '#worktypes-to-create', 'create-type' => 'single' } do %>
        <i class="glyphicon glyphicon-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="glyphicon glyphicon-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="glyphicon glyphicon-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

11 entries across 11 versions & 1 rubygems

Version Path
hyrax-3.1.0 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.2 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.1 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0.pre.rc4 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0.pre.rc3 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0.pre.rc2 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0.pre.rc1 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0.pre.beta3 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0.pre.beta2 app/views/hyrax/homepage/index.html.erb
hyrax-3.0.0.pre.beta1 app/views/hyrax/homepage/index.html.erb