Style wiki sub nav links

This commit is contained in:
Annabel Dunstone 2016-06-15 09:31:41 -05:00 committed by Jacob Schatz
parent 8e84153044
commit a4c9b4fbe9
7 changed files with 95 additions and 84 deletions

View file

@ -1,5 +1,5 @@
%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

View file

@ -1,5 +1,5 @@
.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'

View file

@ -1,3 +1,6 @@
- @no_container = true
%div{ class: (container_class) }
%div#modal-new-wiki.modal
.modal-dialog
.modal-content

View file

@ -1,6 +1,8 @@
- @no_container = true
- page_title "Edit", @page.title.capitalize, "Wiki"
= render 'nav'
%div{ class: (container_class) }
.top-area
.nav-text.wiki-page
%strong

View file

@ -1,6 +1,8 @@
- @no_container = true
- page_title "Git Access", "Wiki"
= render 'nav'
%div{ class: (container_class) }
.row-content-block
%span.oneline
Git access for

View file

@ -1,7 +1,9 @@
- @no_container = true
- page_title "Pages", "Wiki"
= render 'nav'
%div{ class: (container_class) }
%ul.content-list
- @wiki_pages.each do |wiki_page|
%li

View file

@ -1,6 +1,8 @@
- @no_container = true
- page_title @page.title.capitalize, "Wiki"
= render 'nav'
%div{ class: (container_class) }
.top-area
.nav-text
%strong= @page.title.capitalize