fix cashier page height & breadcrumb helper

This commit is contained in:
Zin Moe
2020-01-27 16:30:58 +06:30
parent c8ff92975e
commit bca6fabaaf
142 changed files with 266 additions and 1207 deletions

View 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 %>