Skip to content

Commit

Permalink
Add payments sub section partial
Browse files Browse the repository at this point in the history
So far this tabbed view will only display the payment methods page of
the settings section
  • Loading branch information
Murph33 committed Mar 14, 2016
1 parent 05b3a2f commit f4c6150
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/app/views/spree/admin/shared/_payments_tabs.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<% content_for :tabs do %>
<nav>
<ul class="tabs" data-hook="admin_settings_payments_tabs">
<% if can?(:display, Spree::PaymentMethod) %>
<%= settings_tab_item Spree::PaymentMethod.model_name.human(count: :other), admin_payment_methods_path %>
<% end %>
</ul>
</nav>
<% end %>

0 comments on commit f4c6150

Please sign in to comment.