Commit a4c9b4fb authored by Annabel Dunstone's avatar Annabel Dunstone Committed by Jacob Schatz

Style wiki sub nav links

parent 8e841530
%ul.nav-links.sub-nav
%div{ class: (container_class) }
.nav-links.sub-nav
%ul{ class: (container_class) }
- page_specific_javascripts asset_path("graphs/application.js")
= nav_link(action: :show) do
......
.top-area
%ul.nav-links
.nav-links.sub-nav
%ul{ class: (container_class) }
= nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do
= link_to 'Home', namespace_project_wiki_path(@project.namespace, @project, :home)
......@@ -10,9 +10,9 @@
= link_to namespace_project_wikis_git_access_path(@project.namespace, @project) do
Git Access
.nav-controls
- if can?(current_user, :create_wiki, @project)
= link_to '#modal-new-wiki', class: "add-new-wiki btn btn-new", "data-toggle" => "modal" do
= nav_link do
= link_to '#modal-new-wiki', "data-toggle" => "modal" do
New Page
= render 'projects/wikis/new'
= render 'projects/wikis/new'
%div#modal-new-wiki.modal
- @no_container = true
%div{ class: (container_class) }
%div#modal-new-wiki.modal
.modal-dialog
.modal-content
.modal-header
......
- @no_container = true
- page_title "Edit", @page.title.capitalize, "Wiki"
= render 'nav'
.top-area
%div{ class: (container_class) }
.top-area
.nav-text.wiki-page
%strong
- if @page.persisted?
......@@ -16,4 +18,4 @@
= render 'main_links'
= render 'form'
= render 'form'
- @no_container = true
- page_title "Git Access", "Wiki"
= render 'nav'
.row-content-block
%div{ class: (container_class) }
.row-content-block
%span.oneline
Git access for
%strong= @project_wiki.path_with_namespace
......@@ -9,7 +11,7 @@
.pull-right
= render "shared/clone_panel", project: @project_wiki
.git-empty.prepend-top-default
.git-empty.prepend-top-default
%fieldset
%legend Install Gollum:
%pre.dark
......
- @no_container = true
- page_title "Pages", "Wiki"
= render 'nav'
%ul.content-list
%div{ class: (container_class) }
%ul.content-list
- @wiki_pages.each do |wiki_page|
%li
= link_to wiki_page.title, namespace_project_wiki_path(@project.namespace, @project, wiki_page)
%small (#{wiki_page.format})
.pull-right
%small Last edited #{time_ago_with_tooltip(wiki_page.commit.authored_date)}
= paginate @wiki_pages, theme: 'gitlab'
= paginate @wiki_pages, theme: 'gitlab'
- @no_container = true
- page_title @page.title.capitalize, "Wiki"
= render 'nav'
.top-area
%div{ class: (container_class) }
.top-area
.nav-text
%strong= @page.title.capitalize
......@@ -12,13 +14,13 @@
.nav-controls
= render 'main_links'
- if @page.historical?
- if @page.historical?
.warning_message
This is an old version of this page.
You can view the #{link_to "most recent version", namespace_project_wiki_path(@project.namespace, @project, @page)} or browse the #{link_to "history", namespace_project_wiki_history_path(@project.namespace, @project, @page)}.
.wiki-holder.prepend-top-default.append-bottom-default
.wiki-holder.prepend-top-default.append-bottom-default
.wiki
= preserve do
= render_wiki_content(@page)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment