diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-07-31 06:08:19 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-31 06:08:19 +0000 |
commit | ade320d2db05559e751197cbc73cabe67036b8f3 (patch) | |
tree | e3f0768738b9fd2172bb16fd1cd935fd3cfe62ae /app/views/projects/wikis/_main_links.html.haml | |
parent | 7758fdf1ad14d488fbbbe7c25d21d9d3bc0c82aa (diff) | |
download | gitlab-ce-ade320d2db05559e751197cbc73cabe67036b8f3.tar.gz |
Fix bug with Wiki pages encoding
Diffstat (limited to 'app/views/projects/wikis/_main_links.html.haml')
-rw-r--r-- | app/views/projects/wikis/_main_links.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/wikis/_main_links.html.haml b/app/views/projects/wikis/_main_links.html.haml index cadda0a33c2..8d91f411f89 100644 --- a/app/views/projects/wikis/_main_links.html.haml +++ b/app/views/projects/wikis/_main_links.html.haml @@ -4,6 +4,6 @@ = s_("Wiki|New page") = link_to project_wiki_history_path(@project, @page), class: "btn" do = s_("Wiki|Page history") - - if can?(current_user, :create_wiki, @project) && @page.latest? + - if can?(current_user, :create_wiki, @project) && @page.latest? && @valid_encoding = link_to project_wiki_edit_path(@project, @page), class: "btn js-wiki-edit" do = _("Edit") |