immer show template mit unterschiedlichen partials statt komplett unterschiedlichen templates
26 lines
819 B
Plaintext
26 lines
819 B
Plaintext
<%= render 'studien/tabs' %>
|
|
<div class="content-wrap content-column">
|
|
<p id="notice"><%= notice %></p>
|
|
<h1><%= @studium.typ %> <%= @studium.name %> (<%= @studium.zahl %>)</h1>
|
|
<p>
|
|
<div class="pull-right">
|
|
<%= link_to @text, studium_path(@studium, :ansicht=>@flip), :class=>"btn" %>
|
|
<%= link_to "Infoansicht", studium_path(@studium, :ansicht=>"infoansicht"), :class=>"btn" %>
|
|
</div>
|
|
</p>
|
|
<% if params[:ansicht]=='modulgruppenansicht' %>
|
|
<%= render partial: 'modulgruppenansicht' %>
|
|
<% else if params[:ansicht]=='infoansicht' %>
|
|
<%= render partial: 'infoansicht' %>
|
|
<% else %>
|
|
<%= render partial: 'semesteransicht' %>
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= render :partial=>'layouts/pretty_toolbar', :object=>@toolbar_modulgruppen %><br>
|
|
<%= render 'layouts/pretty_toolbar' %>
|
|
</div>
|