themen auf eigenen seiten anzeigen
This commit is contained in:
@@ -14,7 +14,7 @@ class ThemenController < ApplicationController
|
||||
|
||||
respond_to do |format|
|
||||
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
|
||||
end
|
||||
|
||||
@@ -1,8 +1,27 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
<%= link_to "Zurück", @thema.themengruppe %>
|
||||
<br>
|
||||
<div class="contentbox">
|
||||
<%= render :partial=>"themen/small", :object=>@thema %>
|
||||
<% thema=@thema %>
|
||||
<div class="contentbox">
|
||||
<%= render :partial => 'themen/small', :object => thema %>
|
||||
<ul class="unstyled">
|
||||
<% 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' %>
|
||||
|
||||
|
||||
|
||||
|
||||
<% # render :partial=>'layouts/pretty_toolbar' %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user