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 @@ -

Alle Module der Elektrotechnik

+

<%= I18n.t("modul.show.title") %>

- - + @@ -13,10 +12,17 @@ <% @moduls.each do |modul| %> - - + +
StudiumModulgruppeModulgruppe (Studium) Name Desc
<%= %><%= 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) %>