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
478a4b19
Unverified
Commit
478a4b19
authored
May 05, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn sidebar in sections with contribute and repository
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3ce0557a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
37 deletions
+39
-37
projects.scss
app/assets/stylesheets/pages/projects.scss
+0
-9
_aside.html.haml
app/views/projects/_aside.html.haml
+39
-9
show.html.haml
app/views/projects/show.html.haml
+0
-19
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
478a4b19
...
...
@@ -99,15 +99,6 @@
}
}
.project-home-links
{
padding
:
10px
0px
;
float
:
right
;
a
{
margin-left
:
10px
;
font-weight
:
500
;
}
}
.git-clone-holder
{
.project-home-dropdown
+
&
{
margin-right
:
45px
;
...
...
app/views/projects/_aside.html.haml
View file @
478a4b19
.clearfix
-
unless
@project
.
empty_repo?
.well
%h4
Contribute
%ul
.nav.nav-pills
-
if
@repository
.
changelog
%li
.hidden-xs
=
link_to
changelog_url
(
@project
)
do
Changelog
-
if
@repository
.
contribution_guide
%li
.hidden-xs
=
link_to
contribution_guide_url
(
@project
)
do
Contribution guide
-
if
@repository
.
license
%li
=
link_to
license_url
(
@project
)
do
License
%hr
=
link_to
url_for_new_issue
(
@project
,
only_path:
true
),
title:
"New Issue"
,
class:
'btn btn-sm'
do
%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'
-#%li
%span.light.prepend-left-20= repository_size
-
if
@project
.
archived?
.alert.alert-warning
%h4
...
...
@@ -13,15 +50,8 @@
%br
=
link_to
@project
.
forked_from_project
.
name_with_namespace
,
project_path
(
@project
.
forked_from_project
)
-
unless
@project
.
empty_repo?
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
@ref
||
@repository
.
root_ref
),
class:
'btn btn-block'
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-block'
-
if
version
=
@repository
.
version
-#- 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
...
...
app/views/projects/show.html.haml
View file @
478a4b19
...
...
@@ -7,25 +7,6 @@
=
render
'shared/no_password'
=
render
"home_panel"
-
if
@repository
.
changelog
%li
.hidden-xs
=
link_to
changelog_url
(
@project
)
do
Changelog
-
if
@repository
.
contribution_guide
%li
.hidden-xs
=
link_to
contribution_guide_url
(
@project
)
do
Contribution guide
-
if
@repository
.
license
%li
=
link_to
license_url
(
@project
)
do
License
.project-home-links
-
unless
@project
.
empty_repo?
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
branch_names
.
count
),
'branch'
),
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
tag_names
.
count
),
'tag'
),
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
%span
.light.prepend-left-20
=
repository_size
=
render
'shared/show_aside'
...
...
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