Sortierungen für index.hmtl angepasst

This commit is contained in:
Thomas Blazek
2013-07-25 13:44:31 +02:00
parent 4994f011dc
commit 9195ac20e2
3 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
<th></th> <th></th>
</tr> </tr>
<% @modulgruppen.each do |modulgruppe| %> <% @modulgruppen.sort_by{|n| n[:name]}.each do |modulgruppe| %>
<tr> <tr>
<td><%= modulgruppe.typ %></td> <td><%= modulgruppe.typ %></td>
<td><%= modulgruppe.phase %></td> <td><%= modulgruppe.phase %></td>

View File

@@ -10,10 +10,10 @@
<th></th> <th></th>
</tr> </tr>
<% @moduls.each do |modul| %> <% @moduls.sort_by{|n| n[:name]}.each do |modul| %>
<tr> <tr>
<td> <td>
<%modul.modulgruppen.each do |m|%> <%modul.modulgruppen.sort_by{|n| n[:name]}.each do |m|%>
<%=m.name unless m.nil? %> (<%=m.studium.name unless m.studium.nil? %>) <%=m.name unless m.nil? %> (<%=m.studium.name unless m.studium.nil? %>)

View File

@@ -1,7 +1,7 @@
<h1><%= I18n.t("studien.list") %></h1> <h1><%= I18n.t("studien.list") %></h1>
<% @studien.each do |studium| %> <% @studien.sort_by{|z| z[:zahl]}.each do |studium| %>
<h2><%= link_to studium.zahl + " "+ studium.typ+" " + studium.name, studium_path(studium) %></h2> <h2><%= link_to studium.zahl + " "+ studium.typ+" " + studium.name, studium_path(studium) %></h2>