fix cashier page height & breadcrumb helper
This commit is contained in:
24
app/views/shared/_breadcrumb.html.erb
Normal file
24
app/views/shared/_breadcrumb.html.erb
Normal file
@@ -0,0 +1,24 @@
|
||||
<% if nav.length > 1 %>
|
||||
<div class="page-header">
|
||||
<ol class="breadcrumb">
|
||||
<% nav.each do |n| %>
|
||||
<% if nav.last != n %>
|
||||
<li class="breadcrumb-item">
|
||||
<% if n[:url].present? %>
|
||||
<%= link_to "#{n[:title]}", n[:url] %>
|
||||
<% else %>
|
||||
<span><%= n[:title] %></span>
|
||||
<% end %>
|
||||
</li>
|
||||
<% else %>
|
||||
<li class="breadcrumb-item active"><%= n[:title] %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if back.present? %>
|
||||
<span class="float-right">
|
||||
<%= link_to t('.back', :default => t("views.btn.back")), back.first[:url] %>
|
||||
</span>
|
||||
<% end %>
|
||||
</ol>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user