diff --git a/app/views/lvas/_lva_semester.html.erb b/app/views/lvas/_lva_semester.html.erb index f0c1bc6..bbdf7cc 100755 --- a/app/views/lvas/_lva_semester.html.erb +++ b/app/views/lvas/_lva_semester.html.erb @@ -1,6 +1,6 @@
- <%=lva.lvanr.to_s %> <%= link_to lva.full_name, lva_path(lva)%> + <%=lva.lvanr.to_s %> <%= link_to lva.full_name, lva_path(lva) %> <%= lva.ects %> ECTS / <%= lva.stunden %> Std diff --git a/app/views/lvas/show.html.erb b/app/views/lvas/show.html.erb index 5c50b7c..9dec3de 100755 --- a/app/views/lvas/show.html.erb +++ b/app/views/lvas/show.html.erb @@ -5,109 +5,109 @@ %> <%= display_meta_tags %> <% end %> - - - -
- <%= render 'studien/tabs'%> -

<%= notice %>

- -
-
- <%= render 'layouts/pretty_toolbar' %> +
+
+ <%= render 'studien/tabs'%> +

<%= notice %>

+ +
+
+ <%= render 'layouts/pretty_toolbar' %> +
-
-
-
-

<%= @lva.full_name %>

- - -

<%= I18n.t('lva.pruefungsinfo')%>

-
- <%= @lva.pruefungsinformation.to_s.html_safe %> -
- -

<%= I18n.t('lva.lernaufwand')%>

-
- <%= @lva.lernaufwand %> -
- -

<%= I18n.t('lva.desc')%>

-
- <%= @lva.desc.to_s.html_safe %> -
- -
-
-
-
    -
  • <%= I18n.t('lva.lvanr')%>: <%=@lva.lvanr %>
  • -
  • ECTS: <%=@lva.ects %>
  • -
  • <%= I18n.t('lva.stunden')%>: <%=@lva.stunden %>
  • -
-

<%= I18n.t('lva.module')%>

-
    - <% @lva.modul.each do |modul| %> -
  • <%= link_to modul.name , modul_path(modul)%> -
      - <% modul.modulgruppen.each do |g| %> - -
    • <%= link_to g.studium.title_context , studium_path(g.studium)%> (<%=link_to g.name, modulgruppe_path(g)%>)
    • - <% end %> -
    +
    +
    +

    <%= @lva.full_name %>

    + + -
    -
    -

    <%= I18n.t "lecturers.lecturers" %>

    - <% @lva.lecturers.each do |lec| %> - <%= render :partial=>'lecturers/lec_lva', :object=>lec %> +
    +

    <%= I18n.t('lva.pruefungsinfo')%>

    +
    + <%= @lva.pruefungsinformation.to_s.html_safe %> +
    +

    <%= I18n.t('lva.lernaufwand')%>

    +
    + <%= @lva.lernaufwand %> +
    + +

    <%= I18n.t('lva.desc')%>

    +
    + <%= @lva.desc.to_s.html_safe %> +
    +
    +
    +
    +
    +
      +
    • <%= I18n.t('lva.lvanr')%>: <%=@lva.lvanr %>
    • +
    • ECTS: <%=@lva.ects %>
    • +
    • <%= I18n.t('lva.stunden')%>: <%=@lva.stunden %>
    • +
    +

    <%= I18n.t('lva.module')%>

    +
      + <% @lva.modul.each do |modul| %> +
    • <%= link_to modul.name , modul_path(modul)%> +
        + <% modul.modulgruppen.each do |g| %> + +
      • <%= link_to g.studium.title_context , studium_path(g.studium)%> (<%=link_to g.name, modulgruppe_path(g)%>)
      • + <% end %> +
      +
    • + + <% end %> +
    +
    +
    +

    <%= I18n.t "lecturers.lecturers" %>

    + <% @lva.lecturers.each do |lec| %> + <%= render :partial=>'lecturers/lec_lva', :object=>lec %> + + <% end %> +
    +
    +
    + +
    +
    + +

    <%= I18n.t("lva.bspe") %>

    +

    <%= I18n.t("lva.ratebsp")%> <%= link_to ffi1_icon("facebook1") + I18n.t('home.fblogin'), user_omniauth_authorize_path(:facebook) ,class: :linkbox %> +

    + <%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %> + <% @lva.beispiele.order(:datum).each do |b| %> + <% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b)+"_"+can?(:edit,b) + "_" + b.updated_at.try(:utc).try(:to_s)) do %> + <%= render b%> + <% end %> <% end %>
    -
-
-
-

<%= I18n.t("lva.bspe") %>

-

<%= I18n.t("lva.ratebsp")%> <%= link_to ffi1_icon("facebook1") + I18n.t('home.fblogin'), user_omniauth_authorize_path(:facebook) ,class: :linkbox %> -

- <%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %> - <% @lva.beispiele.order(:datum).each do |b| %> - <% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b)+"_"+can?(:edit,b) + "_" + b.updated_at.try(:utc).try(:to_s)) do %> - <%= render b%> - <% end %> - <% end %> +
+
+ <% unless @lva.nlinks.empty? %> +

<%= I18n.t("rubrik.title") %>

+ <% @lva.nlinks.each do |l| %> + <%= render l.neuigkeit %> + <% end %> + <% end %> + +
-
- -
-
- <% unless @lva.nlinks.empty? %> -

<%= I18n.t("rubrik.title") %>

- <% @lva.nlinks.each do |l| %> - <%= render l.neuigkeit %> - <% end %> - <% end %> - + <% cache("lva_beispiel_form_bulk_"+@lva.id.to_s+I18n.locale.to_s+@lva.updated_at.to_i.to_s) do %> +
+
+ <%= render 'beispiele/form_bulk' %> +
+ <% end %> +
- -
-
- <%= render 'beispiele/form_bulk' %> -
-
- - -