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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cd3d50ca
Commit
cd3d50ca
authored
Aug 30, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed colors for buttons. Imporved preview area. Added clone panel to empty project
parent
5b88c1e3
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
113 additions
and
69 deletions
+113
-69
app/assets/javascripts/note.js
app/assets/javascripts/note.js
+3
-1
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
+26
-9
app/assets/stylesheets/sections/notes.scss
app/assets/stylesheets/sections/notes.scss
+34
-30
app/views/commits/compare.html.haml
app/views/commits/compare.html.haml
+1
-1
app/views/notes/_form.html.haml
app/views/notes/_form.html.haml
+3
-3
app/views/projects/_clone_panel.html.haml
app/views/projects/_clone_panel.html.haml
+21
-0
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+21
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+3
-24
app/views/search/show.html.haml
app/views/search/show.html.haml
+1
-1
No files found.
app/assets/javascripts/note.js
View file @
cd3d50ca
...
...
@@ -45,7 +45,9 @@ init:
$
(
"
#note_note
"
).
live
(
"
focus
"
,
function
(){
$
(
this
).
css
(
"
height
"
,
"
80px
"
);
$
(
'
.note_advanced_opts
'
).
show
();
$
(
this
).
closest
(
"
form
"
).
find
(
"
.submit_note
"
).
attr
(
"
disabled
"
,
"
disabled
"
);
if
(
$
(
this
).
val
()
==
""
)
{
$
(
this
).
closest
(
"
form
"
).
find
(
"
.submit_note
"
).
attr
(
"
disabled
"
,
"
disabled
"
).
addClass
(
"
disabled
"
);
}
});
$
(
"
#note_attachment
"
).
change
(
function
(
e
){
...
...
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
View file @
cd3d50ca
.btn
{
@include
bg-dark-gray-gradient
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
26
,
color-stop
(
0
.076
,
#f7f7f7
)
,
to
(
#d5d5d5
));
background-image
:
-webkit-linear-gradient
(
#f7f7f7
7
.6%
,
#d5d5d5
);
background-image
:
-moz-linear-gradient
(
#f7f7f7
7
.6%
,
#d5d5d5
);
background-image
:
-o-linear-gradient
(
#f7f7f7
7
.6%
,
#d5d5d5
);
border-color
:
#aaa
;
&
:hover
{
@include
bg-gray-gradient
;
...
...
@@ -7,28 +10,42 @@
color
:
#333
;
}
&
.
btn-
primary
{
&
.primary
{
background
:
#2a79A3
;
border-color
:
#2A79A3
;
background-image
:
-webkit-linear-gradient
(
#47A7b7
7
.6%
,
#2585b5
);
background-image
:
-moz-linear-gradient
(
#47A7b7
7
.6%
,
#2585b5
);
background-image
:
-o-linear-gradient
(
#47A7b7
7
.6%
,
#2585b5
);
color
:
#fff
;
text-shadow
:
0
1px
1px
#268
;
&
:hover
{
background
:
$blue_link
;
color
:
#fff
;
}
&
.disabled
{
color
:
#fff
;
background
:
#29B
;
}
&
.primary
{
@extend
.btn-primary
;
}
&
.success
{
border-color
:
#4A4
;
background-image
:
-webkit-linear-gradient
(
#82D482
7
.6%
,
#22B442
);
background-image
:
-moz-linear-gradient
(
#82D482
7
.6%
,
#22B442
);
background-image
:
-o-linear-gradient
(
#82D482
7
.6%
,
#22B442
);
color
:
#fff
;
text-shadow
:
0
0
1px
#111
;
background
:
#5bb75b
;;
font-weight
:
bold
;
text-shadow
:
0
1px
1px
#141
;
&
:hover
{
background
-color
:
#51a351
;
background
:
#6C6
;
color
:
#fff
;
}
&
.disabled
{
color
:
#fff
;
background
:
#2b2
;
}
}
&
.save-btn
{
...
...
app/assets/stylesheets/sections/notes.scss
View file @
cd3d50ca
...
...
@@ -38,8 +38,12 @@
}
}
#preview-note
{
margin-bottom
:
0
;
.preview_note
{
margin
:
2px
;
border
:
1px
solid
#ddd
;
padding
:
10px
;
min-height
:
60px
;
background
:
#f5f5f5
;
}
.note
{
...
...
app/views/commits/compare.html.haml
View file @
cd3d50ca
...
...
@@ -20,7 +20,7 @@
=
"..."
=
text_field_tag
:to
,
params
[
:to
],
placeholder:
"aa8b4ef"
,
class:
"xlarge"
.actions
=
submit_tag
"Compare"
,
class:
"btn
btn-
primary"
=
submit_tag
"Compare"
,
class:
"btn primary"
-
unless
@commits
.
empty?
...
...
app/views/notes/_form.html.haml
View file @
cd3d50ca
...
...
@@ -8,14 +8,14 @@
=
f
.
hidden_field
:noteable_id
=
f
.
hidden_field
:noteable_type
=
f
.
text_area
:note
,
size:
255
#preview-note
.
well
.hide
#preview-note
.
preview_note
.hide
.hint
.right
Comments are parsed with
#{
link_to
"Gitlab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
.clearfix
.row.note_advanced_opts.hide
.span3
=
f
.
submit
'Add Comment'
,
class:
"btn
primary
submit_note grouped"
,
id:
"submit_note"
=
f
.
submit
'Add Comment'
,
class:
"btn
success
submit_note grouped"
,
id:
"submit_note"
=
link_to
'Preview'
,
preview_project_notes_path
(
@project
),
class:
'btn grouped'
,
id:
'preview-link'
.span4.notify_opts
%h6
.left
Notify via email:
...
...
app/views/projects/_clone_panel.html.haml
0 → 100644
View file @
cd3d50ca
.project_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"
.span4.right
.right
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_project_repository_path
(
@project
),
class:
"btn small 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 grouped"
do
Merge Request
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
=
link_to
new_project_issue_path
(
@project
),
title:
"New Issue"
,
class:
"btn small grouped"
do
Issue
app/views/projects/empty.html.haml
View file @
cd3d50ca
=
render
'shared/no_ssh'
.project_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
%h4
Git global setup:
%pre
.dark
...
...
@@ -28,3 +36,16 @@
-
if
can?
current_user
,
:admin_project
,
@project
.prepend-top-20
=
link_to
'Remove project'
,
@project
,
confirm:
'Are you sure?'
,
method: :delete
,
class:
"btn danger right"
:javascript
$
(
function
(){
var
link_sel
=
"
.project_clone_holder a
"
;
$
(
link_sel
).
bind
(
"
click
"
,
function
()
{
$
(
link_sel
).
removeClass
(
"
active
"
);
$
(
this
).
addClass
(
"
active
"
);
$
(
"
#project_clone
"
).
val
(
$
(
this
).
attr
(
"
data-clone
"
));
})
})
app/views/projects/show.html.haml
View file @
cd3d50ca
=
render
"project_head"
.project_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"
.span4.right
.right
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_project_repository_path
(
@project
),
class:
"btn small 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 grouped"
do
Merge Request
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
=
link_to
new_project_issue_path
(
@project
),
title:
"New Issue"
,
class:
"btn small grouped"
do
Issue
=
render
'clone_panel'
=
render
"events/event_last_push"
,
event:
@last_push
.content_list
=
render
@events
...
...
app/views/search/show.html.haml
View file @
cd3d50ca
...
...
@@ -4,7 +4,7 @@
%strong
Looking for
.input
=
text_field_tag
:search
,
params
[
:search
],
placeholder:
"issue 143"
,
class:
"input-xxlarge"
,
id:
"dashboard_search"
=
submit_tag
'Search'
,
class:
"btn
btn-
primary"
=
submit_tag
'Search'
,
class:
"btn primary"
-
if
params
[
:search
].
present?
%br
%h3
...
...
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