forked from bofh/fetsite
links in studienansicht fixed
This commit is contained in:
@@ -40,17 +40,9 @@ class StudienController < ApplicationController
|
||||
{:hicon=>'icon-list', :text => I18n.t('modulgruppe.list'), :path=>modulgruppen_path}]
|
||||
case params[:ansicht]
|
||||
when 'semesteransicht'
|
||||
@text = 'Zu Modulansicht wechseln'
|
||||
@flip = 'modulgruppenansicht'
|
||||
# render 'semesteransicht'
|
||||
|
||||
when 'infoansicht'
|
||||
@text = 'Zu Modulansicht wechseln'
|
||||
@flip = 'modulgruppenansicht'
|
||||
|
||||
else
|
||||
@text = 'Zu Semesteransicht wechseln'
|
||||
@flip = 'semesteransicht'
|
||||
params[:ansicht]="modulgruppenansicht"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
<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" %>
|
||||
<%= link_to "Semesteransicht", studium_path(@studium, :ansicht=>"semesteransicht"), :class=>"btn" unless params[:ansicht]=='semesteransicht' %>
|
||||
<%= link_to "Modulgruppenansicht", studium_path(@studium, :ansicht=>"modulgruppenansicht"), :class=>"btn" unless params[:ansicht]=='modulgruppenansicht' %>
|
||||
<%= link_to "Infoansicht", studium_path(@studium, :ansicht=>"infoansicht"), :class=>"btn" unless params[:ansicht]=='infoansicht' %>
|
||||
</div>
|
||||
</p>
|
||||
<% if params[:ansicht]=='modulgruppenansicht' %>
|
||||
|
||||
Reference in New Issue
Block a user