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)
|
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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user