Sha256: 87dd213a5b22d02fca73d051405e61ae8b780420c32705ebdcbba042351e8bb8

Contents?: true

Size: 1.41 KB

Versions: 24

Compression:

Stored size: 1.41 KB

Contents

<% provide :page_title, application_name %>

<% if @presenter.display_share_button? %>
  <div class="home_share_work row">
    <div class="col-sm-12 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' 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><%= link_to t(:'hyrax.pages.tabs.terms_page'), hyrax.terms_path %></p>
    </div>
  </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

24 entries across 24 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/views/hyrax/homepage/index.html.erb
hyrax-2.9.5 app/views/hyrax/homepage/index.html.erb
hyrax-2.9.4 app/views/hyrax/homepage/index.html.erb
hyrax-2.9.3 app/views/hyrax/homepage/index.html.erb
hyrax-2.9.2 app/views/hyrax/homepage/index.html.erb
hyrax-2.9.1 app/views/hyrax/homepage/index.html.erb
hyrax-2.9.0 app/views/hyrax/homepage/index.html.erb
hyrax-2.8.0 app/views/hyrax/homepage/index.html.erb
hyrax-2.7.2 app/views/hyrax/homepage/index.html.erb
hyrax-2.7.1 app/views/hyrax/homepage/index.html.erb
hyrax-2.7.0 app/views/hyrax/homepage/index.html.erb
hyrax-2.6.0 app/views/hyrax/homepage/index.html.erb
hyrax-2.5.1 app/views/hyrax/homepage/index.html.erb
hyrax-2.5.0 app/views/hyrax/homepage/index.html.erb
hyrax-2.4.1 app/views/hyrax/homepage/index.html.erb
hyrax-2.4.0 app/views/hyrax/homepage/index.html.erb
hyrax-2.3.3 app/views/hyrax/homepage/index.html.erb
hyrax-2.3.2 app/views/hyrax/homepage/index.html.erb
hyrax-2.3.1 app/views/hyrax/homepage/index.html.erb
hyrax-2.3.0 app/views/hyrax/homepage/index.html.erb