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
040ee6f8
Unverified
Commit
040ee6f8
authored
May 05, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize elements in project sidebar
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7da7a790
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
39 deletions
+48
-39
projects.scss
app/assets/stylesheets/pages/projects.scss
+11
-6
_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+5
-0
_aside.html.haml
app/views/projects/_aside.html.haml
+31
-27
_dropdown.html.haml
app/views/projects/_dropdown.html.haml
+1
-1
_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+0
-5
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
040ee6f8
...
...
@@ -45,11 +45,6 @@
}
}
.project-home-dropdown
{
margin-left
:
10px
;
float
:
right
;
}
.project-home-row
{
@extend
.clearfix
;
margin-bottom
:
15px
;
...
...
@@ -81,7 +76,7 @@
margin-top
:
-3px
;
position
:
absolute
;
right
:
0
;
width
:
26
0
px
;
width
:
26
5
px
;
text-align
:
right
;
.btn
{
...
...
@@ -317,3 +312,13 @@ table.table.protected-branches-list tr.no-border {
float
:
left
;
margin-right
:
10px
;
}
.project-home-dropdown
{
margin-top
:
8px
;
a
{
padding
:
4px
10px
;
color
:
#888
;
border-color
:
#ddd
;
}
}
app/views/layouts/_head_panel.html.haml
View file @
040ee6f8
...
...
@@ -12,6 +12,11 @@
.navbar-collapse.collapse
%ul
.nav.navbar-nav
-
if
@project
&&
@repository
%li
.project-home-dropdown
=
render
"projects/dropdown"
%li
.hidden-sm.hidden-xs
=
render
'layouts/search'
%li
.visible-sm.visible-xs
...
...
app/views/projects/_aside.html.haml
View file @
040ee6f8
.clearfix
.append-bottom-20
=
render
"shared/clone_panel"
-
unless
@project
.
empty_repo?
.well
%h4
Repository
%ul
.nav.nav-pills
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
branch_names
.
count
),
'branch'
),
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
tag_names
.
count
),
'tag'
),
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
%hr
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
@ref
||
@repository
.
root_ref
),
class:
'btn btn-sm'
do
%i
.fa.fa-exchange
Compare code
-
if
can?
(
current_user
,
:download_code
,
@project
)
=
render
'projects/repositories/download_archive'
,
split_button:
true
,
btn_class:
'btn-group-sm'
-
unless
@project
.
empty_repo?
.well
%h4
Contribute
...
...
@@ -20,22 +40,7 @@
%i
.fa.fa-fw.fa-exclamation-circle
New issue
.well
%h4
Repository
%ul
.nav.nav-pills
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
branch_names
.
count
),
'branch'
),
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
%li
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
tag_names
.
count
),
'tag'
),
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
%hr
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
@ref
||
@repository
.
root_ref
),
class:
'btn btn-sm'
do
%i
.fa.fa-exchange
Compare code
-
if
can?
(
current_user
,
:download_code
,
@project
)
=
render
'projects/repositories/download_archive'
,
split_button:
true
,
btn_class:
'btn-group-sm'
.append-bottom-20
=
render
"shared/clone_panel"
-
if
@project
.
archived?
.alert.alert-warning
...
...
@@ -51,24 +56,23 @@
%br
=
link_to
@project
.
forked_from_project
.
name_with_namespace
,
project_path
(
@project
.
forked_from_project
)
-#- unless @project.empty_repo?
-#- if version = @repository.version
- detail_url = changelog_url(@project) || version_url(@project)
= link_to detail_url, class: 'btn btn-block' do
%i.fa.fa-file-text-o
Version:
%span.count
= @repository.blob_by_oid(version.id).data
.prepend-top-10
-
if
version
=
@repository
.
version
.well
%h4
Version
.pull-right
=
link_to
version_url
(
@project
)
do
=
@repository
.
blob_by_oid
(
version
.
id
).
data
.well
%h4
CI
.pull-right
-
@project
.
ci_services
.
each
do
|
ci_service
|
-
if
ci_service
.
active?
&&
ci_service
.
respond_to?
(
:builds_path
)
%hr
-
if
ci_service
.
respond_to?
(
:status_img_path
)
=
link_to
ci_service
.
builds_path
,
:'data-no-turbolink'
=>
'data-no-turbolink'
do
=
image_tag
ci_service
.
status_img_path
,
alt:
"build status"
-
else
%span
.light
CI provided by
=
link_to
ci_service
.
title
,
ci_service
.
builds_path
,
:'data-no-turbolink'
=>
'data-no-turbolink'
app/views/projects/_dropdown.html.haml
View file @
040ee6f8
-
if
current_user
.dropdown.pull-right
%a
.dropdown-toggle.btn.btn-
new
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%a
.dropdown-toggle.btn.btn-
sm
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.fa.fa-bars
%ul
.dropdown-menu
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
...
...
app/views/projects/_home_panel.html.haml
View file @
040ee6f8
...
...
@@ -35,9 +35,4 @@
-
else
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
"Fork project"
,
class:
'btn btn-sm btn-default'
do
=
link_to_toggle_fork
%hr
-#.project-home-row.hidden-xs
- if current_user && !empty_repo
.project-home-dropdown
= render "dropdown"
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