Sha256: 5c61fba763925e38b16d3fd5c9f83e8a82d099cbb4c009617be9244174697780

Contents?: true

Size: 1.22 KB

Versions: 11

Compression:

Stored size: 1.22 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 create_work_presenter.many? %>
          <%= 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"></i> <%= t('hyrax.share_button') %>
          <% end %>
        <% else # simple link to the first work type %>
          <%= link_to new_polymorphic_path([main_app, create_work_presenter.first_model]),
                class: 'btn btn-primary' do %>
            <i class="glyphicon glyphicon-upload"></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"></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>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyrax-2.0.3 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.2 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.1 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0.rc3 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0.rc2 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0.rc1 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0.beta5 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0.beta4 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0.beta3 app/views/hyrax/homepage/index.html.erb
hyrax-2.0.0.beta2 app/views/hyrax/homepage/index.html.erb