diff options
Diffstat (limited to 'app/helpers/wiki_helper.rb')
-rw-r--r-- | app/helpers/wiki_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb index 647f34e57ed..9f346f1c818 100644 --- a/app/helpers/wiki_helper.rb +++ b/app/helpers/wiki_helper.rb @@ -10,13 +10,13 @@ module WikiHelper # Returns a String composed of the capitalized name of each directory and the # capitalized name of the page itself. def breadcrumb(page_slug) - page_slug.split('/') + page_slug.split("/") .map { |dir_or_page| WikiPage.unhyphenize(dir_or_page).capitalize } - .join(' / ') + .join(" / ") end def wiki_breadcrumb_dropdown_links(page_slug) - page_slug_split = page_slug.split('/') + page_slug_split = page_slug.split("/") page_slug_split.pop(1) current_slug = "" page_slug_split @@ -29,12 +29,12 @@ module WikiHelper def wiki_page_errors(error) return unless error - content_tag(:div, class: 'alert alert-danger') do + content_tag(:div, class: "alert alert-danger") do case error when WikiPage::PageChangedError page_link = link_to s_("WikiPageConflictMessage|the page"), project_wiki_path(@project, @page), target: "_blank" concat( - (s_("WikiPageConflictMessage|Someone edited the page the same time you did. Please check out %{page_link} and make sure your changes will not unintentionally remove theirs.") % { page_link: page_link }).html_safe + (s_("WikiPageConflictMessage|Someone edited the page the same time you did. Please check out %{page_link} and make sure your changes will not unintentionally remove theirs.") % {page_link: page_link}).html_safe ) when WikiPage::PageRenameError s_("WikiEdit|There is already a page with the same title in that path.") |