Optik semesteransicht

This commit is contained in:
Thomas Blazek
2013-07-29 19:46:31 +02:00
parent 7405a2a229
commit 4fedbe55b9
2 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
<h2> Ohne Zuordnung </h2> <h2> Ohne Zuordnung </h2>
<% end %> <% end %>
<div class="span<%= sem[:width]%> min-width:13em;"> <div class="span<%= sem[:width]%> min-width:13em;">
<%= render :partial=>'lvas/lva_semester', :collection=>sem.lvas, :as=>:lva%> <%= render :partial=>'lvas/lva_semester', :collection=>sem.lvas.sort_by{|n| [:name]}, :as=>:lva%>
</div> </div>
<% end %> <% end %>
</div> </div>

View File

@@ -2,10 +2,12 @@
<% @studien.sort_by{|z| z[:zahl]}.each do |studium| %> <% @studien.sort_by{|z| z[:zahl]}.each do |studium| %>
<div>
<h2><%= link_to studium.zahl + " "+ studium.typ+" " + studium.name, studium_path(studium, :sem=>"true") %></h2>
<h2><%= link_to studium.zahl + " "+ studium.typ+" " + studium.name, studium_path(studium, :sem=>"true") %></h2><h4><%= link_to "Modulansicht", studium_path(studium, :sem=>"false") %></h4> (<%= link_to "Modulansicht", studium_path(studium, :sem=>"false") %>)
</div>
<% end %> <% end %>