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" > <table class="table" >
<tr> <tr>
<th>Studium</th> <th>Modulgruppe (Studium)</th>
<th>Modulgruppe</th>
<th>Name</th> <th>Name</th>
<th>Desc</th> <th>Desc</th>
<th></th> <th></th>
@@ -13,10 +12,17 @@
<% @moduls.each do |modul| %> <% @moduls.each do |modul| %>
<tr> <tr>
<td><%= %></td> <td>
<td><%= if !modul.modulgruppen.first.nil? <%modul.modulgruppen.each do |m|%>
modul.modulgruppen.first[:name]
end %> </td>
<%=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.name %></td>
<td><%= modul.desc %></td> <td><%= modul.desc %></td>
<td><%= link_to 'Show', modul_path(modul) %></td> <td><%= link_to 'Show', modul_path(modul) %></td>