Skip to content

Commit

Permalink
Admin Panel breadcrumb navigation - Roles
Browse files Browse the repository at this point in the history
  • Loading branch information
mauazua committed Apr 26, 2016
1 parent 73e4a4d commit fa6ad1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions backend/app/views/spree/admin/roles/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<% content_for :page_title do %>
<%= Spree.t(:editing_resource, resource: Spree::Role.model_name.human) %>
<% end %>
<% content_for :page_actions do %>
<%= back_to_list_button(Spree::Role.model_name.human, admin_roles_path) %>
<%= link_to Spree.t(:roles), spree.admin_roles_url %> /
<%= @role.name.capitalize %>
<% end %>
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @role } %>
Expand Down
5 changes: 1 addition & 4 deletions backend/app/views/spree/admin/roles/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<% content_for :page_title do %>
<%= link_to Spree.t(:roles), spree.admin_roles_url %> /
<%= Spree.t(:new_role) %>
<% end %>
<% content_for :page_actions do %>
<%= back_to_list_button(Spree::Role.model_name.human, admin_roles_path) %>
<% end %>
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @role } %>
<%= form_for [:admin, @role] do |f| %>
Expand Down

0 comments on commit fa6ad1d

Please sign in to comment.