debian-mirror-gitlab/app/views/projects/wikis/edit.html.haml
2016-08-24 12:49:21 +05:30

25 lines
690 B
Text

- @no_container = true
- page_title "Edit", @page.title.capitalize, "Wiki"
= render 'nav'
%div{ class: container_class }
.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
.nav-controls
- 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
= render 'main_links'
= render 'form'