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
Boxiang Sun
gitlab-ce
Commits
7652510c
Commit
7652510c
authored
Mar 29, 2015
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved download button into sidebar
Star and fork buttons moved up
parent
79bd8ca9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+5
-9
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+4
-1
No files found.
app/views/projects/_home_panel.html.haml
View file @
7652510c
...
@@ -14,11 +14,6 @@
...
@@ -14,11 +14,6 @@
–
–
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@repository
.
root_ref
,
readme
.
name
))
do
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@repository
.
root_ref
,
readme
.
name
))
do
=
readme
.
name
=
readme
.
name
.project-home-row.hidden-xs
-
if
current_user
&&
!
empty_repo
.project-home-dropdown
=
render
"dropdown"
%span
.star.pull-right.prepend-left-10.js-toggler-container
{
class:
@show_star
?
'on'
:
''
}
%span
.star.pull-right.prepend-left-10.js-toggler-container
{
class:
@show_star
?
'on'
:
''
}
-
if
current_user
-
if
current_user
=
link_to_toggle_star
(
'Star this project.'
,
false
,
true
)
=
link_to_toggle_star
(
'Star this project.'
,
false
,
true
)
...
@@ -33,8 +28,9 @@
...
@@ -33,8 +28,9 @@
-
else
-
else
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
"Fork project"
,
class:
'btn btn-default'
do
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
"Fork project"
,
class:
'btn btn-default'
do
=
link_to_toggle_fork
=
link_to_toggle_fork
-
unless
@project
.
empty_repo?
-
if
can?
current_user
,
:download_code
,
@project
.project-home-row.hidden-xs
.pull-right.prepend-left-10
-
if
current_user
&&
!
empty_repo
=
render
'projects/repositories/download_archive'
,
split_button:
true
.project-home-dropdown
=
render
"dropdown"
=
render
"shared/clone_panel"
=
render
"shared/clone_panel"
app/views/projects/show.html.haml
View file @
7652510c
...
@@ -87,6 +87,10 @@
...
@@ -87,6 +87,10 @@
-
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'
-
unless
@project
.
empty_repo?
-
if
can?
current_user
,
:download_code
,
@project
.pull-right.prepend-left-10
=
render
'projects/repositories/download_archive'
,
split_button:
true
-
if
readme
-
if
readme
.tab-pane
#tab-readme
.tab-pane
#tab-readme
...
@@ -97,4 +101,3 @@
...
@@ -97,4 +101,3 @@
=
readme
.
name
=
readme
.
name
.wiki
.wiki
=
render_readme
(
readme
)
=
render_readme
(
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