diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-01 17:57:56 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-01 23:29:27 -0700 |
commit | fbb891c8f3818b9aa17fadbb984ff7d33053c819 (patch) | |
tree | 4b4f76be3d2d7748973d200783da5ed6a457dc1b /app/views/projects/wikis/_main_links.html.haml | |
parent | 308c6428aef2a46b0370a24d85a97b0e133283a8 (diff) | |
download | gitlab-ce-fbb891c8f3818b9aa17fadbb984ff7d33053c819.tar.gz |
Fix broken Wiki Page History
Closes #2104
Closes #1751
Closes #1592
Closes https://github.com/gitlabhq/gitlabhq/issues/9399
Diffstat (limited to 'app/views/projects/wikis/_main_links.html.haml')
-rw-r--r-- | app/views/projects/wikis/_main_links.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/wikis/_main_links.html.haml b/app/views/projects/wikis/_main_links.html.haml index 788bb8cf1e2..acc2c8b2f7f 100644 --- a/app/views/projects/wikis/_main_links.html.haml +++ b/app/views/projects/wikis/_main_links.html.haml @@ -1,8 +1,8 @@ %span.pull-right - if (@page && @page.persisted?) - = link_to history_namespace_project_wiki_path(@project.namespace, @project, @page), class: "btn btn-grouped" do + = link_to namespace_project_wiki_history_path(@project.namespace, @project, @page), class: "btn btn-grouped" do Page History - if can?(current_user, :create_wiki, @project) - = link_to edit_namespace_project_wiki_path(@project.namespace, @project, @page), class: "btn btn-grouped" do + = link_to namespace_project_wiki_edit_path(@project.namespace, @project, @page), class: "btn btn-grouped" do %i.fa.fa-pencil-square-o Edit |