Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
664afebb
Commit
664afebb
authored
Jun 03, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start styling sub nav
parent
3fd0b364
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
52 deletions
+80
-52
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+21
-0
app/views/projects/commits/_head.html.haml
app/views/projects/commits/_head.html.haml
+20
-19
app/views/projects/commits/show.html.haml
app/views/projects/commits/show.html.haml
+28
-25
app/views/projects/tree/show.html.haml
app/views/projects/tree/show.html.haml
+11
-8
No files found.
app/assets/stylesheets/framework/nav.scss
View file @
664afebb
...
@@ -67,6 +67,27 @@
...
@@ -67,6 +67,27 @@
color
:
#78a
;
color
:
#78a
;
}
}
}
}
&
.sub-nav
{
background-color
:
$background-color
;
.container-fluid
{
background-color
:
$background-color
;
}
li
{
a
{
margin
:
0
;
padding
:
11px
10px
9px
;
}
&
.active
a
{
border-bottom
:
none
;
color
:
$link-underline-blue
;
}
}
}
}
}
.top-area
{
.top-area
{
...
...
app/views/projects/commits/_head.html.haml
View file @
664afebb
%ul
.nav-links
%ul
.nav-links.sub-nav
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file)
)
do
%div
{
class:
(
container_class
)
}
=
link_to
project_files_path
(
@project
)
do
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file)
)
do
Files
=
link_to
project_files_path
(
@project
)
do
Files
=
nav_link
(
controller:
[
:commit
,
:commits
])
do
=
nav_link
(
controller:
[
:commit
,
:commits
])
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
Commits
Commits
=
nav_link
(
controller:
%w(network)
)
do
=
nav_link
(
controller:
%w(network)
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
Network
Network
=
nav_link
(
controller: :compare
)
do
=
nav_link
(
controller: :compare
)
do
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
current_ref
)
do
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
current_ref
)
do
Compare
Compare
=
nav_link
(
html_options:
{
class:
branches_tab_class
})
do
=
nav_link
(
html_options:
{
class:
branches_tab_class
})
do
=
link_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
do
Branches
Branches
=
nav_link
(
controller:
[
:tags
,
:releases
])
do
=
nav_link
(
controller:
[
:tags
,
:releases
])
do
=
link_to
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
do
Tags
Tags
app/views/projects/commits/show.html.haml
View file @
664afebb
-
@no_container
=
true
-
page_title
"Commits"
,
@ref
-
page_title
"Commits"
,
@ref
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
-
if
current_user
-
if
current_user
...
@@ -5,37 +7,38 @@
...
@@ -5,37 +7,38 @@
=
render
"head"
=
render
"head"
.row-content-block.second-block
%div
{
class:
(
container_class
)
}
.tree-ref-holder
.row-content-block.second-block
=
render
'shared/ref_switcher'
,
destination:
'commits'
.tree-ref-holder
=
render
'shared/ref_switcher'
,
destination:
'commits'
.block-controls.hidden-xs.hidden-sm
-
if
@merge_request
.
present?
.control
=
link_to
"View Open Merge Request"
,
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
class:
'btn'
-
elsif
create_mr_button?
(
@repository
.
root_ref
,
@ref
)
.control
=
link_to
create_mr_path
(
@repository
.
root_ref
,
@ref
),
class:
'btn btn-success'
do
=
icon
(
'plus'
)
Create Merge Request
.block-controls.hidden-xs.hidden-sm
-
if
@merge_request
.
present?
.control
=
link_to
"View Open Merge Request"
,
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
class:
'btn'
-
elsif
create_mr_button?
(
@repository
.
root_ref
,
@ref
)
.control
.control
=
link_to
create_mr_path
(
@repository
.
root_ref
,
@ref
),
class:
'btn btn-success'
do
=
form_tag
(
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@id
),
method: :get
,
class:
'pull-left commits-search-form'
)
do
=
icon
(
'plus'
)
=
search_field_tag
:search
,
params
[
:search
],
{
placeholder:
'Filter by commit message'
,
id:
'commits-search'
,
class:
'form-control search-text-input'
,
spellcheck:
false
}
Create Merge Request
.control
-
if
current_user
&&
current_user
.
private_token
=
form_tag
(
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@id
),
method: :get
,
class:
'pull-left commits-search-form'
)
do
.control
=
search_field_tag
:search
,
params
[
:search
],
{
placeholder:
'Filter by commit message'
,
id:
'commits-search'
,
class:
'form-control search-text-input'
,
spellcheck:
false
}
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
,
{
format: :atom
,
private_token:
current_user
.
private_token
}),
title:
"Commits Feed"
,
class:
'btn'
do
=
icon
(
"rss"
)
-
if
current_user
&&
current_user
.
private_token
.control
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
,
{
format: :atom
,
private_token:
current_user
.
private_token
}),
title:
"Commits Feed"
,
class:
'btn'
do
=
icon
(
"rss"
)
%ul
.breadcrumb.repo-breadcrumb
%ul
.breadcrumb.repo-breadcrumb
=
commits_breadcrumbs
=
commits_breadcrumbs
%div
{
id:
dom_id
(
@project
)}
%div
{
id:
dom_id
(
@project
)}
#commits-list
.content_list
=
render
"commits"
,
project:
@project
#commits-list
.content_list
=
render
"commits"
,
project:
@project
.clear
.clear
=
spinner
=
spinner
:javascript
:javascript
CommitsList
.
init
(
#{
@limit
}
);
CommitsList
.
init
(
#{
@limit
}
);
app/views/projects/tree/show.html.haml
View file @
664afebb
-
@no_container
=
true
-
page_title
@path
.
presence
||
"Files"
,
@ref
-
page_title
@path
.
presence
||
"Files"
,
@ref
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
-
if
current_user
-
if
current_user
...
@@ -5,13 +7,14 @@
...
@@ -5,13 +7,14 @@
=
render
'projects/last_push'
=
render
'projects/last_push'
=
render
"projects/commits/head"
=
render
"projects/commits/head"
.tree-controls
%div
{
class:
(
container_class
)
}
=
render
'projects/find_file_link'
.tree-controls
-
if
can?
current_user
,
:download_code
,
@project
=
render
'projects/find_file_link'
=
render
'projects/repositories/download_archive'
,
ref:
@ref
,
btn_class:
'hidden-xs hidden-sm btn-grouped'
,
split_button:
true
-
if
can?
current_user
,
:download_code
,
@project
=
render
'projects/repositories/download_archive'
,
ref:
@ref
,
btn_class:
'hidden-xs hidden-sm btn-grouped'
,
split_button:
true
#tree-holder
.tree-holder.clearfix
#tree-holder
.tree-holder.clearfix
.nav-block
.nav-block
=
render
'projects/tree/tree_header'
,
tree:
@tree
=
render
'projects/tree/tree_header'
,
tree:
@tree
=
render
'projects/tree/tree_content'
,
tree:
@tree
=
render
'projects/tree/tree_content'
,
tree:
@tree
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