From 0f451d683340d04b07fa208b5d47ba5aeb089228 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Mon, 18 Jun 2012 10:53:06 -0600 Subject: [PATCH] Fix #386. File view defines its own layout. --- lib/gollum/frontend/app.rb | 2 +- lib/gollum/frontend/templates/file_view.mustache | 5 ++++- lib/gollum/frontend/views/file_view.rb | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index dc5648cc..ace37248 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -230,7 +230,7 @@ module Precious wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options) @results = Gollum::FileView.new(wiki.pages).render_files @ref = wiki.ref - mustache :file_view + mustache :file_view, { :layout => false } end get '/*' do diff --git a/lib/gollum/frontend/templates/file_view.mustache b/lib/gollum/frontend/templates/file_view.mustache index 9b38b1c4..338f97c8 100644 --- a/lib/gollum/frontend/templates/file_view.mustache +++ b/lib/gollum/frontend/templates/file_view.mustache @@ -2,8 +2,11 @@ + + + - File View + {{title}} diff --git a/lib/gollum/frontend/views/file_view.rb b/lib/gollum/frontend/views/file_view.rb index 383fcad2..c1a582ab 100644 --- a/lib/gollum/frontend/views/file_view.rb +++ b/lib/gollum/frontend/views/file_view.rb @@ -4,7 +4,7 @@ module Precious attr_reader :results, :ref def title - "All pages in #{@ref}" + "File view of #{@ref}" end def has_results