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>

View File

@@ -1,4 +1,4 @@
<%= render 'layouts/link_all' %>
<%= render :partial=>'layouts/topbar', :object=>@tb %>
<h1><%= I18n.t("lva.list")%></h1>
<ul>
<% @lvas.each do |l| %>

View File

@@ -1,4 +1,4 @@
<%= render 'layouts/link_all' %>
<%= render 'layouts/topbar' %>
<h1><%= I18n.t("modul.list") %></h1>
<%= render :partial=>'moduls/lang', :collection=>@moduls, :as=>:modul%>

View File

@@ -1,24 +1,4 @@
<ul class="breadcrumb">
<% @modul.modulgruppen.each do |g| %>
<% if !g.nil? %>
<li>
<% if !g.studium.nil? %>
<%= link_to g.studium.name , studium_path(g.studium) %>
<% else %>
<li>Studium fehlt!
<% end %>
<span class="divider">/</span></li>
<li><%= link_to g.name , modulgruppe_path(g)%>
<% else %>
<li>Modulgruppe Fehlt
<%end %>
<span class="divider">/</span> </li>
<br>
<%end%>
</ul>
<%= render 'layouts/topbar'%>
<p id="notice"><%= notice %></p>
<%= render @modul %>

View File

@@ -1,4 +1,4 @@
<%= render 'layouts/link_all' %>
<%= render 'layouts/topbar' %>
<h1><%= I18n.t("studien.list") %></h1>

View File

@@ -1,4 +1,4 @@
<%= render :partial=>'studien/navigation'%>
<%= render :partial=>'layouts/topbar'%>
<h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1>
<%= raw(@studium.desc) %>

View File

@@ -1,4 +1,4 @@
<%= render :partial=>'studien/navigation'%>
<%= render 'layouts/topbar'%>
<div class="container-fluid">
<div class="row-fluid">
<p id="notice"><%= notice %></p>