themen auf eigenen seiten anzeigen
This commit is contained in:
@@ -14,7 +14,7 @@ class ThemenController < ApplicationController
|
|||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
redirect_to :controller=>'themengruppen', :id=>@thema.themengruppe.id, :action=>:show, :anchor=> "thema_"+params[:id].to_s
|
# redirect_to :controller=>'themengruppen', :id=>@thema.themengruppe.id, :action=>:show, :anchor=> "thema_"+params[:id].to_s
|
||||||
}
|
}
|
||||||
format.js
|
format.js
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,8 +1,27 @@
|
|||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
<%= link_to "Zurück", @thema.themengruppe %>
|
<%= link_to "Zurück", @thema.themengruppe %>
|
||||||
<br>
|
<br>
|
||||||
|
<% thema=@thema %>
|
||||||
<div class="contentbox">
|
<div class="contentbox">
|
||||||
<%= render :partial=>"themen/small", :object=>@thema %>
|
<%= render :partial => 'themen/small', :object => thema %>
|
||||||
</div>
|
<ul class="unstyled">
|
||||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
<% unless thema.gremium.nil? %>
|
||||||
|
<li>
|
||||||
|
<%= link_to fa_icon("users 2x")+thema.gremium.name , thema.gremium,:class=>"linkbox" %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% thema.nlinks.each do |l| %>
|
||||||
|
<li>
|
||||||
|
<%= render l.neuigkeit if can? :show, l.neuigkeit%>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<% # render :partial=>'layouts/pretty_toolbar' %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user