debian-mirror-gitlab/app/views/projects/wikis/edit.html.haml

26 lines
690 B
Text
Raw Normal View History

2016-06-22 15:30:34 +05:30
- @no_container = true
2015-12-23 02:04:40 +05:30
- page_title "Edit", @page.title.capitalize, "Wiki"
2014-09-02 18:07:02 +05:30
= render 'nav'
2016-04-02 18:10:28 +05:30
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
2016-06-22 15:30:34 +05:30
.top-area
.nav-text
%strong
- if @page.persisted?
= link_to @page.title.capitalize, namespace_project_wiki_path(@project.namespace, @project, @page)
- else
= @page.title.capitalize
%span.light
·
Edit Page
2016-04-02 18:10:28 +05:30
2016-06-22 15:30:34 +05:30
.nav-controls
2016-08-24 12:49:21 +05:30
- if !(@page && @page.persisted?)
- if can?(current_user, :create_wiki, @project)
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
New Page
2016-06-22 15:30:34 +05:30
= render 'main_links'
2015-12-23 02:04:40 +05:30
2014-09-02 18:07:02 +05:30
2016-06-22 15:30:34 +05:30
= render 'form'