Skip to content

Commit

Permalink
Add settings sub section store partial
Browse files Browse the repository at this point in the history
This partial will be displayed on the tracker, taxonomy, and general
settings pages.
  • Loading branch information
Murph33 committed Mar 14, 2016
1 parent a9e9bec commit 05b3a2f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions backend/app/views/spree/admin/shared/_store_tabs.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<% content_for :tabs do %>
<nav>
<ul class="tabs" data-hook="admin_settings_store_tabs">
<% if can?(:edit, :general_settings) %>
<%= settings_tab_item Spree.t(:general_settings), edit_admin_general_settings_path %>
<% end %>
<% if can?(:display, Spree::Tracker) %>
<%= settings_tab_item Spree.t(:analytics_trackers), admin_trackers_path %>
<% end %>
<% if can?(:display, Spree::Taxonomy) %>
<%= settings_tab_item Spree::Taxonomy.model_name.human(count: :other), admin_taxonomies_path %>
<% end %>
</ul>
</nav>
<% end %>

0 comments on commit 05b3a2f

Please sign in to comment.