diff --git a/bin/gollum b/bin/gollum index 9216fd89..781f639b 100755 --- a/bin/gollum +++ b/bin/gollum @@ -147,12 +147,6 @@ MSG opts.on("--no-display-metadata", "Do not render metadata tables in pages.") do wiki_options[:display_metadata] = false end - opts.on("--show-all", "Also show files in the file view. By default, only valid pages are shown.") do - wiki_options[:show_all] = true - end - opts.on("--collapse-tree", "Collapse the tree, when file view is opened. By default, the tree is expanded.") do - wiki_options[:collapse_tree] = true - end opts.on("--user-icons [MODE]", [:gravatar, :identicon, :none], "Use specific user-icons for history view.", "Can be set to 'gravatar', 'identicon' or 'none'. Default: 'none'.") do |mode| wiki_options[:user_icons] = mode diff --git a/lib/gollum/app.rb b/lib/gollum/app.rb index 8d0269c9..42df9dea 100644 --- a/lib/gollum/app.rb +++ b/lib/gollum/app.rb @@ -475,25 +475,12 @@ module Precious wiki_options = settings.wiki_options.merge({ :page_file_dir => @path }) wiki = Gollum::Wiki.new(settings.gollum_path, wiki_options) @results = wiki.pages - @results += wiki.files if settings.wiki_options[:show_all] + @results += wiki.files @results = @results.sort_by { |p| p.name.downcase } # Sort Results alphabetically, fixes 922 @ref = wiki.ref mustache :pages end - get '/fileview' do - wiki = wiki_new - options = settings.wiki_options - content = wiki.pages - # if showing all files include wiki.files - content += wiki.files if options[:show_all] - - # must pass wiki_options to FileView - # --show-all and --collapse-tree can be set. - @results = Gollum::FileView.new(content, options).render_files - @ref = wiki.ref - mustache :file_view - end get '/*' do show_page_or_file(params[:splat].first) diff --git a/lib/gollum/templates/file_view.mustache b/lib/gollum/templates/file_view.mustache deleted file mode 100644 index c730b87a..00000000 --- a/lib/gollum/templates/file_view.mustache +++ /dev/null @@ -1,38 +0,0 @@ -{{#stylesheet_tag_mustache}}fileview media: :all{{/stylesheet_tag_mustache}} - -
- There are no pages in {{ref}}. -
- {{/no_results}} -