Sha256: 9f41957435ae10434e18c6c1b4c08b4406a362f0d8f56ad1f4321de23d271781

Contents?: true

Size: 860 Bytes

Versions: 8

Compression:

Stored size: 860 Bytes

Contents

<div class="btn-group pull-right" role="group" aria-label="Button group">
  <% if member_action? || new_action? %>
    <%= link_to(fa_icon("chevron-left", text: Archangel.t(:back)), backend_widgets_path, class: "btn btn-link") %>
  <% end %>

  <% if collection_action? || show_action? || edit_action? %>
    <%= link_to(fa_icon("plus", text: Archangel.t(:new)), new_backend_widget_path, class: "btn btn-link") %>
  <% end %>

  <% if show_action? %>
    <%= link_to(fa_icon("check", text: Archangel.t(:edit)), edit_backend_widget_path(@widget), class: "btn btn-link") %>
  <% end %>

  <% if show_action? || edit_action? %>
    <%= link_to(fa_icon("times", text: Archangel.t(:destroy)), backend_widget_path(@widget), class: "btn btn-link",
                                 method: :delete, data: { confirm: Archangel.t(:are_you_sure) }) %>
  <% end %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 app/views/archangel/backend/widgets/_buttons.html.erb
archangel-0.0.8 app/views/archangel/backend/widgets/_buttons.html.erb
archangel-0.0.7 app/views/archangel/backend/widgets/_buttons.html.erb
archangel-0.0.6 app/views/archangel/backend/widgets/_buttons.html.erb
archangel-0.0.5 app/views/archangel/backend/widgets/_buttons.html.erb
archangel-0.0.4 app/views/archangel/backend/widgets/_buttons.html.erb
archangel-0.0.3 app/views/archangel/backend/widgets/_buttons.html.erb
archangel-0.0.2 app/views/archangel/backend/widgets/_buttons.html.erb