diff --git a/app/views/moduls/index.html.erb b/app/views/moduls/index.html.erb index 6f22799..766c7bf 100755 --- a/app/views/moduls/index.html.erb +++ b/app/views/moduls/index.html.erb @@ -1,9 +1,8 @@ -
| Studium | -Modulgruppe | +Modulgruppe (Studium) | Name | Desc | @@ -13,10 +12,17 @@ <% @moduls.each do |modul| %> |
|---|---|---|---|---|---|
| <%= %> | -<%= if !modul.modulgruppen.first.nil? -modul.modulgruppen.first[:name] -end %> | +
+ <%modul.modulgruppen.each do |m|%>
+
+
+ <%=m.name unless m.nil? %> (<%=m.studium.name unless m.studium.nil? %>)
+
+ + <% end %> + + |
+
<%= modul.name %> | <%= modul.desc %> | <%= link_to 'Show', modul_path(modul) %> |