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 .nav-links.sub-nav
%div{ class: (container_class) } %ul{ class: (container_class) }
- page_specific_javascripts asset_path("graphs/application.js") - page_specific_javascripts asset_path("graphs/application.js")
= nav_link(action: :show) do = nav_link(action: :show) do

View file

@ -1,5 +1,5 @@
.top-area .nav-links.sub-nav
%ul.nav-links %ul{ class: (container_class) }
= nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do = nav_link(html_options: {class: params[:id] == 'home' ? 'active' : '' }) do
= link_to 'Home', namespace_project_wiki_path(@project.namespace, @project, :home) = 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 = link_to namespace_project_wikis_git_access_path(@project.namespace, @project) do
Git Access Git Access
.nav-controls
- if can?(current_user, :create_wiki, @project) - 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 New Page
= render 'projects/wikis/new' = render 'projects/wikis/new'

View file

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

View file

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

View file

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

View file

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

View file

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