Skip to content

Commit

Permalink
Kategorie Layout berücksichtigen
Browse files Browse the repository at this point in the history
  • Loading branch information
janv committed Dec 3, 2009
1 parent 4c3cba8 commit 66c1c62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/controllers/categories_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ def show
format.html do
@documents = @category.documents.published
@page_title = @category.title
unless @category.template.empty?
render :template => @category.template
unless @category.template.blank?
if @category.layout.blank?
render :template => @category.template
else
render :template => @category.template, :layout => @category.layout
end
end
end
format.json do
Expand Down

0 comments on commit 66c1c62

Please sign in to comment.