Sha256: 65ce4c6060a2addbae695ae8b9f86f1400deedf96ecc56820fd4947b6039e7d6

Contents?: true

Size: 921 Bytes

Versions: 10

Compression:

Stored size: 921 Bytes

Contents

<% if create_work_presenter.many? %>
  <div class="col-xs-6 col-sm-3 heading-tile">
    <%= link_to('#', data: { behavior: "select-work", target: "#worktypes-to-create", 'create-type' => 'single' }) do %>
      <span class="glyphicon glyphicon-upload"></span>
      <%= t("hyrax.dashboard.create_work") %>
    <% end %>
  </div>
<% else %>
  <div class="col-xs-6 col-sm-3 heading-tile">
    <% create_work_presenter.first_model do |concern| %>
      <%= link_to(new_polymorphic_path([main_app, concern]),
                            class: "item-option contextual-quick-classify #{dom_class(concern, 'new').gsub('_', '-')}",
                            role: 'menuitem'
                    ) do %>
                    <span class="glyphicon glyphicon-upload"></span>
                    <%= I18n.t("hyrax.dashboard.create_work", work_type: concern.human_readable_type) %>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.1.0 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.0.5 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.0.4 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.0.3 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.0.2 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.0.1 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/dashboard/_create_work_action.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/dashboard/_create_work_action.html.erb
test_hyrax-0.0.1.alpha app/views/hyrax/dashboard/_create_work_action.html.erb