forked from bofh/fetsite
Topbar layouts
This commit is contained in:
11
app/views/layouts/_topbar.html.erb
Executable file
11
app/views/layouts/_topbar.html.erb
Executable 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>
|
||||
@@ -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| %>
|
||||
|
||||
@@ -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%>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= render 'layouts/link_all' %>
|
||||
<%= render 'layouts/topbar' %>
|
||||
<h1><%= I18n.t("studien.list") %></h1>
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= render :partial=>'studien/navigation'%>
|
||||
<%= render :partial=>'layouts/topbar'%>
|
||||
|
||||
<h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1>
|
||||
<%= raw(@studium.desc) %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%= render :partial=>'studien/navigation'%>
|
||||
<%= render 'layouts/topbar'%>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
Reference in New Issue
Block a user