studienansicht zentralisisert

immer show template mit unterschiedlichen partials statt komplett
unterschiedlichen templates
This commit is contained in:
Andreas Stephanides
2014-03-23 21:02:16 +01:00
parent 82d591a116
commit 8f4528f994
10 changed files with 147 additions and 39 deletions

View File

@@ -1,6 +1,19 @@
<li><p>
<li>
<div class="contentbox">
<p>
<b><% if !modul.name.nil? %><%= link_to "Modul "+ modul.name , modul_path(modul) %> <%end%></b>
</p>
<ul>
<% modul.lvas.each do |lva| %>
<li> <%= render :partial=>'lvas/lva_semester', :locals =>{:lva => lva}%>
</li>
<% end %>
</ul>
<% link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
</div>
</li>