Sha256: ad47dc78f6aa4206d8fc08a7ae67da5f4e5226cb151d853ca79cec1874186f6d

Contents?: true

Size: 1.55 KB

Versions: 13

Compression:

Stored size: 1.55 KB

Contents

<div id="breadcrumb">
  <ol class="breadcrumb">
    <% if action_name == "index" %>
      <li class="active">
        <%= @resource_class.model_name.human(count: 2) %>
      </li>
    <% else %>
      <li>
        <%= link_to @resource_class.model_name.human(count: 2), @resource_class %>
      </li>
      <li class="active">
        <% if @resource.new_record? %>
          <%= t("helpers.submit.create", model: @resource_class.model_name.human) %>
        <% else %>
          <%= @resource.to_s %>
        <% end %>
      </li>
      <% if @resource.persisted? %>
        <li class="dropdown pull-right">
          <a href="#" data-toggle="dropdown" role="button">
            <%= translate_scoped("actions.label") %> <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
            <% if policy(@resource).show? && action_name != "show" %>
              <li>
                <%= link_to translate_scoped("actions.show"), @resource %>
              </li>
            <% end %>
            <% if policy(@resource).edit? && action_name != "edit" %>
              <li>
                <%= link_to translate_scoped("actions.edit"), [:edit, @resource]  %>
              </li>
            <% end %>
            <% if policy(@resource).destroy? %>
              <li>
                <%= link_to translate_scoped("actions.destroy"), @resource, method: :delete,
                  data: { confirm: translate_scoped("actions.confirm_message") } %>
              </li>
            <% end %>
          </ul>
        </li>
      <% end %>
    <% end %>
  </ol>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
godmin-1.4.0 app/views/godmin/resource/_breadcrumb.html.erb
godmin-1.3.1 app/views/godmin/resource/_breadcrumb.html.erb
godmin-1.3.0 app/views/godmin/resource/_breadcrumb.html.erb
godmin-1.2.0 app/views/godmin/resource/_breadcrumb.html.erb
godmin-1.1.0 app/views/godmin/resource/_breadcrumb.html.erb
godmin-1.0.0 app/views/godmin/resource/_breadcrumb.html.erb
godmin-0.12.4 app/views/godmin/resource/_breadcrumb.html.erb
godmin-0.12.3 app/views/godmin/resource/_breadcrumb.html.erb
godmin-0.12.2 app/views/godmin/resource/_breadcrumb.html.erb
godmin-0.12.1 app/views/godmin/resource/_breadcrumb.html.erb
godmin-0.12.0 app/views/godmin/resource/_breadcrumb.html.erb
godmin-0.11.2 app/views/godmin/resource/_breadcrumb.html.erb
godmin-0.11.1 app/views/godmin/resource/_breadcrumb.html.erb