studien,modul views: internationalisierung und Navigation

This commit is contained in:
Andreas Stephanides
2013-02-13 00:47:24 +01:00
parent cf33706320
commit f2e2b1203f
8 changed files with 71 additions and 43 deletions

View File

@@ -1,9 +1,10 @@
<div style="border: solid 1px; padding:2px;margin-top:5px;"><p>
<b><%= link_to "Modul "+ modul.name , modul_path(modul) %> <%= link_to image_tag("edit.png"), edit_modul_path(modul) %></b>
<b><%= link_to "Modul "+ modul.name , modul_path(modul) %> </b>
</p>
<p >
<%= raw(modul.desc) %>
</p>
<%= link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
</div>

View File

@@ -1,5 +1,5 @@
<div style="border: solid 1px; padding:2px"><p>
<b><%= link_to "Modul "+ modul.name , modul_path(modul) %> <%= link_to image_tag("edit.png"), edit_modul_path(modul) %></b>
<b><%= link_to "Modul "+ modul.name , modul_path(modul) %> </b>
</p>
<p>
<%= raw(modul.desc) %>
@@ -10,4 +10,6 @@ LVAs:
<li><%= link_to lva.lvanr+" "+ lva.name, lva %></li>
<% end %>
</ul>
<%= link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
</div>

View File

@@ -1,11 +1,14 @@
<p id="notice"><%= notice %></p>
<%= render @modul %>
<% @modul.modulgruppen.each do |g| %>
<% link = g.studium.name + " - " +g.name %>
<%= link_to g.studium.name , studium_path(g.studium)%> <br />
<%= link_to link , modulgruppe_path(g)%><br />
<ul class="breadcrumb">
<li>
<%= link_to g.studium.name , studium_path(g.studium)%> <span class="divider">/</span></li>
<li><%= link_to g.name , modulgruppe_path(g)%></li>
<%end%>
</ul>
<p id="notice"><%= notice %></p>
<%= render @modul %>
<%= link_to 'Add LVA', new_lva_path(:modul_id =>@modul.id) %>