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
a022fd41
Commit
a022fd41
authored
Apr 26, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle clone panel on project show page
parent
9ef5573c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
7 deletions
+34
-7
blocks.scss
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
+5
-0
common.scss
app/assets/stylesheets/gitlab_bootstrap/common.scss
+6
-0
_clone_panel.html.haml
app/views/projects/_clone_panel.html.haml
+21
-4
show.html.haml
app/views/projects/show.html.haml
+1
-2
_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+1
-1
No files found.
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
View file @
a022fd41
...
...
@@ -171,3 +171,8 @@
margin
:
3px
3px
25px
3px
;
}
}
.light-well
{
background
:
#f9f9f9
;
padding
:
15px
;
}
app/assets/stylesheets/gitlab_bootstrap/common.scss
View file @
a022fd41
...
...
@@ -74,3 +74,9 @@ fieldset legend { font-size: 17px; }
.tab-content
{
overflow
:
visible
;
}
@media
(
max-width
:
1200px
)
{
.only-wide
{
display
:
none
;
}
}
app/views/projects/_clone_panel.html.haml
View file @
a022fd41
.project_clone_panel
.row
.span
7
.span
8
.form-horizontal
=
render
"shared/clone_panel"
.span
4
.pull-right
.span
3
.pull-right
.pull-right
-
unless
@project
.
empty_repo?
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_project_repository_path
(
@project
),
class:
"btn grouped"
do
%i
.icon-download-alt
Download
=
link_to
tags_project_repository_path
(
@project
),
class:
"btn grouped only-wide"
,
title:
'Git Tags'
do
%i
.icon-tags
.dropdown.pull-right
%a
.dropdown-toggle.btn
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
%i
.icon-plus
Add new
%b
.caret
%ul
.dropdown-menu
-
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 grouped"
do
%li
=
link_to
new_project_merge_request_path
(
@project
),
title:
"New Merge Request"
do
Merge Request
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
=
link_to
url_for_new_issue
,
title:
"New Issue"
,
class:
"btn grouped"
do
%li
=
link_to
url_for_new_issue
,
title:
"New Issue"
do
Issue
-
if
@project
.
snippets_enabled
&&
can?
(
current_user
,
:write_snippet
,
@project
)
%li
=
link_to
new_project_snippet_path
(
@project
),
title:
"New Snippet"
do
Snippet
app/views/projects/show.html.haml
View file @
a022fd41
...
...
@@ -6,8 +6,7 @@
.content_list
=
render
@events
.loading.hide
.span3
.ui-box.white
.padded
.light-well
%h3
.page_title
=
@project
.
name
-
if
@project
.
description
.
present?
...
...
app/views/shared/_clone_panel.html.haml
View file @
a022fd41
.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
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
class:
"one_click_select
span7
"
,
readonly:
true
%span
.add-on
-
if
@project
.
public
.cblue
...
...
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