Fix #386. File view defines its own layout.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -2,8 +2,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<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">
|
||||
<title>File View</title>
|
||||
<title>{{title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ module Precious
|
||||
attr_reader :results, :ref
|
||||
|
||||
def title
|
||||
"All pages in #{@ref}"
|
||||
"File view of #{@ref}"
|
||||
end
|
||||
|
||||
def has_results
|
||||
|
||||
Reference in New Issue
Block a user