Fix #386. File view defines its own layout.

This commit is contained in:
bootstraponline
2012-06-18 10:53:06 -06:00
parent e6d568fd49
commit 0f451d6833
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ module Precious
wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options) wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options)
@results = Gollum::FileView.new(wiki.pages).render_files @results = Gollum::FileView.new(wiki.pages).render_files
@ref = wiki.ref @ref = wiki.ref
mustache :file_view mustache :file_view, { :layout => false }
end end
get '/*' do get '/*' do
@@ -2,8 +2,11 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-type" content="text/html;charset=utf-8"> <meta http-equiv="Content-type" content="text/html;charset=utf-8">
<meta http-equiv="Content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css" href="/css/gollum.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/template.css" media="all">
<link rel="stylesheet" type="text/css" href="/css/_styles.css" media="all"> <link rel="stylesheet" type="text/css" href="/css/_styles.css" media="all">
<title>File View</title> <title>{{title}}</title>
</head> </head>
<body> <body>
+1 -1
View File
@@ -4,7 +4,7 @@ module Precious
attr_reader :results, :ref attr_reader :results, :ref
def title def title
"All pages in #{@ref}" "File view of #{@ref}"
end end
def has_results def has_results