diff --git a/app/views/modulgruppen/index.html.erb b/app/views/modulgruppen/index.html.erb index 871c406..fb37c87 100755 --- a/app/views/modulgruppen/index.html.erb +++ b/app/views/modulgruppen/index.html.erb @@ -1,29 +1,9 @@
| Type | -Phase | -Studium | -Name | -- | - | - |
|---|---|---|---|---|---|---|
| <%= modulgruppe.typ %> | -<%= modulgruppe.phase %> | -<%= modulgruppe.studium.name unless modulgruppe.studium.nil? %> | -<%= modulgruppe.name %> | -<%= link_to 'Show', modulgruppe %> | -<%= link_to 'Edit', edit_modulgruppe_path(modulgruppe) %> | -<%= link_to 'Destroy', modulgruppe, method: :delete, data: { confirm: 'Are you sure?' } %> | -
+ <%= +if modul.name.nil? +name="" +else +name=modul.name +end +link_to "Modul "+name , modul_path(modul) %> +
++ <%= raw(modul.desc) %> +
+LVAs: + +| Modulgruppe (Studium) | -Name | -Desc | -- | - | - |
|---|---|---|---|---|---|
|
- <%modul.modulgruppen.sort_by{|n| n[:name]}.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) %> | -<%= link_to 'Edit', edit_modul_path(modul) %> | -<%= link_to 'Destroy', [modul], method: :delete, data: { confirm: 'Are you sure?' } %> | -