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
iv
gitlab-ce
Commits
04e365eb
Commit
04e365eb
authored
May 05, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move project sidebar to separate partial
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
3ccdc02b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
53 deletions
+55
-53
app/views/projects/_aside.html.haml
app/views/projects/_aside.html.haml
+54
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-53
No files found.
app/views/projects/_aside.html.haml
0 → 100644
View file @
04e365eb
.clearfix
-
if
@project
.
archived?
.alert.alert-warning
%h4
%i
.fa.fa-exclamation-triangle
Archived project!
%p
Repository is read-only
-
if
@project
.
forked_from_project
.well
%i
.fa.fa-code-fork.project-fork-icon
Forked from:
%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
-
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.append-bottom-10
%p
%span
.light
Created on
#{
@project
.
created_at
.
stamp
(
'Aug 22, 2013'
)
}
%p
%span
.light
Owned by
#{
@project
.
group
?
"the"
:
nil
}
-
if
@project
.
group
#{
link_to
@project
.
group
.
name
,
@project
.
group
}
group
-
else
#{
link_to
@project
.
owner_name
,
@project
.
owner
}
.prepend-top-10
-
@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/show.html.haml
View file @
04e365eb
...
@@ -56,59 +56,7 @@
...
@@ -56,59 +56,7 @@
.content_list
.content_list
=
spinner
=
spinner
%aside
.col-md-3.project-side
%aside
.col-md-3.project-side
.clearfix
=
render
'aside'
-
if
@project
.
archived?
.alert.alert-warning
%h4
%i
.fa.fa-exclamation-triangle
Archived project!
%p
Repository is read-only
-
if
@project
.
forked_from_project
.well
%i
.fa.fa-code-fork.project-fork-icon
Forked from:
%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
-
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.append-bottom-10
%p
%span
.light
Created on
#{
@project
.
created_at
.
stamp
(
'Aug 22, 2013'
)
}
%p
%span
.light
Owned by
#{
@project
.
group
?
"the"
:
nil
}
-
if
@project
.
group
#{
link_to
@project
.
group
.
name
,
@project
.
group
}
group
-
else
#{
link_to
@project
.
owner_name
,
@project
.
owner
}
.prepend-top-10
-
@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'
-
if
readme
=
@repository
.
readme
-
if
readme
=
@repository
.
readme
.tab-pane
#tab-readme
.tab-pane
#tab-readme
...
...
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