diff --git a/lib/gollum/views/helpers.rb b/lib/gollum/views/helpers.rb index fecd46a1..20bf1a18 100644 --- a/lib/gollum/views/helpers.rb +++ b/lib/gollum/views/helpers.rb @@ -10,6 +10,7 @@ module Precious upload_file: 'uploadFile', create: 'create', delete: 'delete', + delete_file: 'deleteFile', edit: 'edit', pages: 'pages', history: 'history', diff --git a/lib/gollum/views/pages.rb b/lib/gollum/views/pages.rb index 80ae83a5..c7076957 100644 --- a/lib/gollum/views/pages.rb +++ b/lib/gollum/views/pages.rb @@ -12,14 +12,14 @@ module Precious def breadcrumb if @path path = Pathname.new(@path) - breadcrumb = [%{Home}] + breadcrumb = [%{Home}] path.descend do |crumb| title = crumb.basename if title == path.basename breadcrumb << title else - breadcrumb << %{#{title}} + breadcrumb << %{#{title}} end end @@ -31,7 +31,7 @@ module Precious def delete_file(url) - %Q(
) + %Q(
) end def files_folders diff --git a/test/test_pages_view.rb b/test/test_pages_view.rb index df927cb9..78d5f2c2 100644 --- a/test/test_pages_view.rb +++ b/test/test_pages_view.rb @@ -35,7 +35,7 @@ context "Precious::Views::Pages" do test "breadcrumb" do @page.instance_variable_set("@path", "Mordor/Eye-Of-Sauron/Saruman") @page.instance_variable_set("@base_url", "") - assert_equal 'Home / Mordor / Eye-Of-Sauron / Saruman', @page.breadcrumb + assert_equal 'Home / Mordor / Eye-Of-Sauron / Saruman', @page.breadcrumb end test "breadcrumb with no path" do