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
Léo-Paul Géneau
gitlab-ce
Commits
9ef5573c
Commit
9ef5573c
authored
Apr 26, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show project access level right to clone panel
parent
b8f965a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
22 deletions
+13
-22
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+0
-8
app/views/projects/_clone_panel.html.haml
app/views/projects/_clone_panel.html.haml
+3
-3
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+0
-10
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+10
-1
No files found.
app/assets/stylesheets/sections/projects.scss
View file @
9ef5573c
...
...
@@ -33,14 +33,6 @@
}
.project_clone_holder
{
input
[
type
=
"text"
],
.btn
{
font-size
:
12px
;
line-height
:
18px
;
margin
:
0
;
padding
:
3px
10px
;
}
input
[
type
=
"text"
]
{
@extend
.monospace
;
border
:
1px
solid
#BBB
;
...
...
app/views/projects/_clone_panel.html.haml
View file @
9ef5573c
...
...
@@ -6,12 +6,12 @@
.pull-right
-
unless
@project
.
empty_repo?
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_project_repository_path
(
@project
),
class:
"btn
-small btn
grouped"
do
=
link_to
archive_project_repository_path
(
@project
),
class:
"btn grouped"
do
%i
.icon-download-alt
Download
-
if
@project
.
merge_requests_enabled
&&
can?
(
current_user
,
:write_merge_request
,
@project
)
=
link_to
new_project_merge_request_path
(
@project
),
title:
"New Merge Request"
,
class:
"btn
-small btn
grouped"
do
=
link_to
new_project_merge_request_path
(
@project
),
title:
"New Merge Request"
,
class:
"btn grouped"
do
Merge Request
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
=
link_to
url_for_new_issue
,
title:
"New Issue"
,
class:
"btn
-small btn
grouped"
do
=
link_to
url_for_new_issue
,
title:
"New Issue"
,
class:
"btn grouped"
do
Issue
app/views/projects/show.html.haml
View file @
9ef5573c
...
...
@@ -15,16 +15,6 @@
%hr
%p
Access level:
-
if
@project
.
public
%span
.cblue
%i
.icon-share
Public
-
else
%span
.cgreen
%i
.icon-lock
Private
%p
Repo Size:
#{
@project
.
repository
.
size
}
MB
%p
Created at:
#{
@project
.
created_at
.
stamp
(
'Aug 22, 2013'
)
}
%p
Owner:
#{
link_to
@project
.
owner_name
,
@project
.
owner
}
...
...
app/views/shared/_clone_panel.html.haml
View file @
9ef5573c
.input-prepend.project_clone_holder
.input-prepend.
input-append.
project_clone_holder
%button
{
class:
"btn active"
,
:"data-clone"
=>
@project
.
ssh_url_to_repo
}
SSH
%button
{
class:
"btn"
,
:"data-clone"
=>
@project
.
http_url_to_repo
}=
Gitlab
.
config
.
gitlab
.
protocol
.
upcase
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select input-xxlarge"
,
readonly:
true
%span
.add-on
-
if
@project
.
public
.cblue
%i
.icon-share
public
-
else
.cgreen
%i
.icon-lock
private
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