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
Tatuya Kamada
gitlab-ce
Commits
040ee6f8
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
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
47 deletions
+56
-47
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+11
-6
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+5
-0
app/views/projects/_aside.html.haml
app/views/projects/_aside.html.haml
+39
-35
app/views/projects/_dropdown.html.haml
app/views/projects/_dropdown.html.haml
+1
-1
app/views/projects/_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 @@
...
@@ -45,11 +45,6 @@
}
}
}
}
.project-home-dropdown
{
margin-left
:
10px
;
float
:
right
;
}
.project-home-row
{
.project-home-row
{
@extend
.clearfix
;
@extend
.clearfix
;
margin-bottom
:
15px
;
margin-bottom
:
15px
;
...
@@ -81,7 +76,7 @@
...
@@ -81,7 +76,7 @@
margin-top
:
-3px
;
margin-top
:
-3px
;
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
width
:
26
0
px
;
width
:
26
5
px
;
text-align
:
right
;
text-align
:
right
;
.btn
{
.btn
{
...
@@ -317,3 +312,13 @@ table.table.protected-branches-list tr.no-border {
...
@@ -317,3 +312,13 @@ table.table.protected-branches-list tr.no-border {
float
:
left
;
float
:
left
;
margin-right
:
10px
;
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 @@
...
@@ -12,6 +12,11 @@
.navbar-collapse.collapse
.navbar-collapse.collapse
%ul
.nav.navbar-nav
%ul
.nav.navbar-nav
-
if
@project
&&
@repository
%li
.project-home-dropdown
=
render
"projects/dropdown"
%li
.hidden-sm.hidden-xs
%li
.hidden-sm.hidden-xs
=
render
'layouts/search'
=
render
'layouts/search'
%li
.visible-sm.visible-xs
%li
.visible-sm.visible-xs
...
...
app/views/projects/_aside.html.haml
View file @
040ee6f8
.clearfix
.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?
-
unless
@project
.
empty_repo?
.well
.well
%h4
Contribute
%h4
Contribute
...
@@ -20,22 +40,7 @@
...
@@ -20,22 +40,7 @@
%i
.fa.fa-fw.fa-exclamation-circle
%i
.fa.fa-fw.fa-exclamation-circle
New issue
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?
-
if
@project
.
archived?
.alert.alert-warning
.alert.alert-warning
...
@@ -51,24 +56,23 @@
...
@@ -51,24 +56,23 @@
%br
%br
=
link_to
@project
.
forked_from_project
.
name_with_namespace
,
project_path
(
@project
.
forked_from_project
)
=
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
-
if
version
=
@repository
.
version
.prepend-top-10
.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
|
-
@project
.
ci_services
.
each
do
|
ci_service
|
-
if
ci_service
.
active?
&&
ci_service
.
respond_to?
(
:builds_path
)
-
if
ci_service
.
active?
&&
ci_service
.
respond_to?
(
:builds_path
)
%hr
-
if
ci_service
.
respond_to?
(
:status_img_path
)
-
if
ci_service
.
respond_to?
(
:status_img_path
)
=
link_to
ci_service
.
builds_path
,
:'data-no-turbolink'
=>
'data-no-turbolink'
do
=
link_to
ci_service
.
builds_path
,
:'data-no-turbolink'
=>
'data-no-turbolink'
do
=
image_tag
ci_service
.
status_img_path
,
alt:
"build status"
=
image_tag
ci_service
.
status_img_path
,
alt:
"build status"
-
else
-
else
%span
.light
CI provided by
%span
.light
CI provided by
=
link_to
ci_service
.
title
,
ci_service
.
builds_path
,
:'data-no-turbolink'
=>
'data-no-turbolink'
=
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
-
if
current_user
.dropdown.pull-right
.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
%i
.fa.fa-bars
%ul
.dropdown-menu
%ul
.dropdown-menu
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
...
...
app/views/projects/_home_panel.html.haml
View file @
040ee6f8
...
@@ -35,9 +35,4 @@
...
@@ -35,9 +35,4 @@
-
else
-
else
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
"Fork project"
,
class:
'btn btn-sm btn-default'
do
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
"Fork project"
,
class:
'btn btn-sm btn-default'
do
=
link_to_toggle_fork
=
link_to_toggle_fork
%hr
%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