diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 15:59:42 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 15:59:42 +0300 |
commit | 275c2a3161ac4d5638b8fa39a7355bbd9fc3cf46 (patch) | |
tree | af29ac754eab345c98bf3bf41e1195cd73d5c0b5 /app/views/projects/wikis/edit.html.haml | |
parent | 09e712c0fb721059e4b2619eb9fc104257fc492d (diff) |
Use new style for wiki
Diffstat (limited to 'app/views/projects/wikis/edit.html.haml')
-rw-r--r-- | app/views/projects/wikis/edit.html.haml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/views/projects/wikis/edit.html.haml b/app/views/projects/wikis/edit.html.haml index 0b709c3695b..23f64fbbd10 100644 --- a/app/views/projects/wikis/edit.html.haml +++ b/app/views/projects/wikis/edit.html.haml @@ -1,16 +1,16 @@ -- page_title "Edit", @page.title, "Wiki" +- page_title "Edit", @page.title.capitalize, "Wiki" = render "header_title" = render 'nav' -.pull-right - = render 'main_links' -%h3.page-title - Editing - - %span.light #{@page.title} -%hr -= render 'form' +.gray-content-block + .pull-right + = render 'main_links' + + %h3.page-title.oneline + %span.light Edit Page + - if @page.persisted? + = link_to @page.title, namespace_project_wiki_path(@project.namespace, @project, @page) + - else + = @page.title -.pull-right - - if @page.persisted? && can?(current_user, :admin_wiki, @project) - = link_to namespace_project_wiki_path(@project.namespace, @project, @page), data: { confirm: "Are you sure you want to delete this page?"}, method: :delete, class: "btn btn-sm btn-remove" do - Delete this page += render 'form' |