Topbar layouts

This commit is contained in:
Thomas Blazek
2013-08-04 18:04:04 +02:00
parent 05ed9da9c4
commit c72c186d62
10 changed files with 101 additions and 67 deletions

View File

@@ -0,0 +1,11 @@
<% topbar = !topbar.nil? ? topbar : @topbar_elements %>
<ul class="breadcrumb">
<% topbar.each do |tb| %>
<% if tb[:newline]%>
<br>
<% else %>
<li>
<%= link_to_unless_current '<i class="'.html_safe + tb[:hicon].to_s.html_safe + '"></i>'.html_safe+ tb[:text], tb[:path] %><span class="divider">/</span></li>
<% end %>
<% end %>
</ul>