Sha256: 4a318196ee3f84683e20ce083e029ddf6240ddd1c6f0d5c7bc601a7a4632f915

Contents?: true

Size: 1.58 KB

Versions: 29

Compression:

Stored size: 1.58 KB

Contents

<% if collector || editor %>
  <div class="form-actions">
    <% if editor %>
      <%= link_to "Edit This #{@presenter.human_readable_type}", edit_polymorphic_path([main_app, @presenter]), class: 'btn btn-default' %>
      <%= link_to "Attach a File", main_app.new_curation_concerns_file_set_path(@presenter), class: 'btn btn-default' %>
      <%= link_to t("file_manager.link_text"), polymorphic_path([main_app, :file_manager, @presenter]), class: 'btn btn-default' %>
      <% if @presenter.valid_child_concerns.length > 0 %>
        <div class="btn-group">
          <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            Attach Child <span class="caret"></span>
          </button>
          <ul class="dropdown-menu">
            <% @presenter.valid_child_concerns.each do |concern| %>
              <li>
                <%= link_to "Attach #{concern.human_readable_type}", polymorphic_path([main_app, :new, :curation_concerns, :parent, concern.model_name.singular], parent_id: @presenter.id) %>
              </li>
            <% end %>
          </ul>
        </div>
      <% end %>
      <%= link_to "Delete This #{@presenter.human_readable_type}", [main_app, @presenter], class: 'btn btn-danger pull-right', data: { confirm: "Delete this #{@presenter.human_readable_type}?" }, method: :delete %>
    <% end %>
    <% if collector %>
      <%= render 'collections/add_to_collection_modal', collectible: @presenter %>
      <%= link_to_select_collection @presenter, class: 'btn btn-default' %>
    <% end %>
  </div>
<% end %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.7 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.6 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.5 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.4 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.3 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.2 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.1 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.0 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.7.0.beta1 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.6.3 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.6.2 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.6.1 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.6.0 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.5.0 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.4.0 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.3.3 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.3.2 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.3.1 app/views/curation_concerns/base/_show_actions.html.erb
curation_concerns-1.3.0 app/views/curation_concerns/base/_show_actions.html.erb