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
Kazuhiko Shiozaki
gitlab-ce
Commits
0bc4ecfe
Commit
0bc4ecfe
authored
Sep 04, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change projects/empty to include the clone_panel partial instead of duplicating
parent
82a39968
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
19 deletions
+13
-19
app/views/projects/_clone_panel.html.haml
app/views/projects/_clone_panel.html.haml
+11
-11
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+2
-8
No files found.
app/views/projects/_clone_panel.html.haml
View file @
0bc4ecfe
...
@@ -8,14 +8,14 @@
...
@@ -8,14 +8,14 @@
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
.span4.right
.span4.right
.right
.right
-
if
can?
current_user
,
:download_code
,
@project
-
unless
@project
.
empty_repo?
=
link_to
archive_project_repository_path
(
@project
),
class:
"btn small grouped"
do
-
if
can?
current_user
,
:download_code
,
@project
%i
.icon-download-alt
=
link_to
archive_project_repository_path
(
@project
),
class:
"btn small grouped"
do
Download
%i
.icon-download-alt
-
if
@project
.
merge_requests_enabled
&&
can?
(
current_user
,
:write_merge_request
,
@project
)
Download
=
link_to
new_project_merge_request_path
(
@project
),
title:
"New Merge Request"
,
class:
"btn small grouped"
do
-
if
@project
.
merge_requests_enabled
&&
can?
(
current_user
,
:write_merge_request
,
@project
)
Merge Request
=
link_to
new_project_merge_request_path
(
@project
),
title:
"New Merge Request"
,
class:
"btn small grouped"
do
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
Merge Request
=
link_to
new_project_issue_path
(
@project
),
title:
"New Issue"
,
class:
"btn small grouped"
do
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
Issue
=
link_to
new_project_issue_path
(
@project
),
title:
"New Issue"
,
class:
"btn small grouped"
do
Issue
app/views/projects/empty.html.haml
View file @
0bc4ecfe
=
render
'shared/no_ssh'
=
render
'shared/no_ssh'
.project_clone_panel
=
render
'clone_panel'
.row
.span7
.form-horizontal
.input-prepend.project_clone_holder
=
link_to
"SSH"
,
"#"
,
class:
"btn small active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
=
link_to
"HTTP"
,
"#"
,
class:
"btn small"
,
:"data-clone"
=>
@project
.
http_url_to_repo
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select span5"
%div
.git-empty
%div
.git-empty
%h4
Git global setup:
%h4
Git global setup:
%pre
.dark
%pre
.dark
...
...
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