From 1257d55403eab13f628790d7ee6942d86304d8e4 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Mon, 24 Mar 2014 14:41:08 +0100 Subject: [PATCH] modul view fixed --- app/views/moduls/_modul.html.erb | 53 ++++++++++++++++---------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/app/views/moduls/_modul.html.erb b/app/views/moduls/_modul.html.erb index edaa5c6..4782baa 100755 --- a/app/views/moduls/_modul.html.erb +++ b/app/views/moduls/_modul.html.erb @@ -5,31 +5,32 @@
-

<%=I18n.t("modul.desc")%>

-

- <%= raw(@modul.desc) %> -

+

<%=I18n.t("modul.lvas")%>

+ <% @modul.lvas.each_slice(3) do |row| %> +
    + <% row.each do |lv| %> +
  • + <%= render 'lvas/lva_semester', :lva=>lv%> +
  • + <% end %> +
+ <% end %> +

<%=I18n.t("modul.desc")%>

+

+ <%= raw(@modul.desc) %> +

+
+
+
+

<%=I18n.t("modul.mgs")%>

+
    + <% @modul.modulgruppen.each do |mg| %> +
  • + <%= render 'modulgruppen/kurz', :modulgruppe=>mg %> +
  • + <% end %> +
+
+
-
-
-

<%=I18n.t("modul.mgs")%>

-
    -<% @modul.modulgruppen.each do |mg| %> -
  • -<%= render 'modulgruppen/kurz', :modulgruppe=>mg %> -
  • -<% end %> -
-

<%=I18n.t("modul.lvas")%>

-<% @modul.lvas.each_slice(3) do |row| %> -
    -<% row.each do |lv| %> -
  • -<%= render 'lvas/lva_semester', :lva=>lv%> -
  • -<% end %> -
-<% end %> -
-