forked from bofh/fetsite
Semesteransicht auf RESTful routes aufgebaut
This commit is contained in:
10
app/views/studien/_navigation.html.erb
Executable file
10
app/views/studien/_navigation.html.erb
Executable file
@@ -0,0 +1,10 @@
|
||||
<%= link_to '<i class="icon-list"></i>'.html_safe+ I18n.t("studien.allestudien"), studien_path,:raw=>true %> /
|
||||
<% Studium.all.each do |s| %>
|
||||
<% if @sem=='true' %>
|
||||
<%= link_to s.name + " / ", studium_semesteransicht_path(s) %>
|
||||
<% else %>
|
||||
<%= link_to s.name + " / ", studium_path(s) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to @text, @path%>
|
||||
Reference in New Issue
Block a user