Anzeige der Module geändert

Neues Design, dass mMn durchaus brauchbar ist.
This commit is contained in:
Thomas Blazek
2013-07-24 22:53:16 +02:00
parent 1829c2440e
commit 63bce09e41

View File

@@ -1,9 +1,8 @@
<h1>Alle Module der Elektrotechnik</h1>
<h1><%= I18n.t("modul.show.title") %></h1>
<table class="table" >
<tr>
<th>Studium</th>
<th>Modulgruppe</th>
<th>Modulgruppe (Studium)</th>
<th>Name</th>
<th>Desc</th>
<th></th>
@@ -13,10 +12,17 @@
<% @moduls.each do |modul| %>
<tr>
<td><%= %></td>
<td><%= if !modul.modulgruppen.first.nil?
modul.modulgruppen.first[:name]
end %> </td>
<td>
<%modul.modulgruppen.each do |m|%>
<%=m.name unless m.nil? %> (<%=m.studium.name unless m.studium.nil? %>)
<!-- Modulgruppenname falls existiert (Studium falls existiert) -->
<br>
<% end %>
</td>
<td><%= modul.name %></td>
<td><%= modul.desc %></td>
<td><%= link_to 'Show', modul_path(modul) %></td>