BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
48f4f76c
Commit
48f4f76c
authored
Nov 15, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add active states to sidebar nav
parent
a167897b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
wiki.scss
app/assets/stylesheets/pages/wiki.scss
+8
-1
_sidebar.html.haml
app/views/projects/wikis/_sidebar.html.haml
+5
-3
No files found.
app/assets/stylesheets/pages/wiki.scss
View file @
48f4f76c
...
...
@@ -59,14 +59,21 @@
}
}
.active
>
a
{
color
:
$black
;
}
ul
.wiki-pages
,
ul
.wiki-pages
li
{
list-style
:
none
;
display
:
block
;
padding
:
0
;
margin
:
0
;
}
ul
.wiki-pages
li
{
margin
:
5px
0
10px
;
}
.wiki-sidebar-header
{
padding
:
0
$gl-padding
$gl-padding
;
...
...
app/views/projects/wikis/_sidebar.html.haml
View file @
48f4f76c
...
...
@@ -3,7 +3,8 @@
%a
.gutter-toggle.pull-right.visible-xs-block.visible-sm-block.js-sidebar-wiki-toggle
{
href:
"#"
}
=
icon
(
'angle-double-right'
)
=
link_to
namespace_project_wikis_git_access_path
(
@project
.
namespace
,
@project
)
do
-
git_access_url
=
namespace_project_wikis_git_access_path
(
@project
.
namespace
,
@project
)
=
link_to
git_access_url
,
class:
active_nav_link?
(
path:
'wikis#git_access'
)
?
'active'
:
''
do
=
succeed
' '
do
=
icon
(
'cloud-download'
)
Clone repository
...
...
@@ -11,9 +12,10 @@
.blocks-container
.block.block-first
%ul
.wiki-pages
%li
%li
{
class:
params
[
:id
]
==
'home'
?
'active'
:
''
}
=
link_to
'Home'
,
namespace_project_wiki_path
(
@project
.
namespace
,
@project
,
:home
)
%li
%li
{
class:
active_nav_link?
(
path:
'wikis#pages'
)
?
'active'
:
''
}
=
link_to
'Pages'
,
namespace_project_wikis_pages_path
(
@project
.
namespace
,
@project
)
=
render
'projects/wikis/new'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment