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
2be5e6d4
Commit
2be5e6d4
authored
Dec 02, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
35f0566e
f2e1c8b7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
23 deletions
+15
-23
main.js.coffee
app/assets/javascripts/main.js.coffee
+5
-0
common.scss
app/assets/stylesheets/common.scss
+3
-1
note.rb
app/models/note.rb
+2
-3
_diffs.html.haml
app/views/commits/_diffs.html.haml
+1
-1
_flash.html.haml
app/views/layouts/_flash.html.haml
+3
-17
devise.html.haml
app/views/layouts/devise.html.haml
+1
-1
No files found.
app/assets/javascripts/main.js.coffee
View file @
2be5e6d4
...
...
@@ -33,6 +33,11 @@ $ ->
# Bottom tooltip
$
(
'.has_bottom_tooltip'
).
tooltip
(
placement
:
'bottom'
)
# Flash
if
(
flash
=
$
(
"#flash-container"
)).
length
>
0
flash
.
click
->
$
(
@
).
slideUp
(
"slow"
)
flash
.
slideDown
"slow"
setTimeout
(
->
flash
.
slideUp
(
"slow"
)),
3000
# Disable form buttons while a form is submitting
$
(
'body'
).
on
'ajax:complete, ajax:beforeSend, submit'
,
'form'
,
(
e
)
->
...
...
app/assets/stylesheets/common.scss
View file @
2be5e6d4
...
...
@@ -68,7 +68,7 @@ table a code {
}
/** FLASH message **/
#flash
_
container
{
#flash
-
container
{
height
:
50px
;
position
:
fixed
;
z-index
:
10001
;
...
...
@@ -79,6 +79,8 @@ table a code {
background
:
white
;
cursor
:
pointer
;
border-bottom
:
1px
solid
#ccc
;
text-align
:
center
;
display
:
none
;
h4
{
color
:
#666
;
...
...
app/models/note.rb
View file @
2be5e6d4
...
...
@@ -32,11 +32,10 @@ class Note < ActiveRecord::Base
delegate
:name
,
to: :project
,
prefix:
true
delegate
:name
,
:email
,
to: :author
,
prefix:
true
validates
:project
,
presence:
true
validates
:note
,
presence:
true
,
length:
{
within:
0
..
5000
}
validates
:note
,
:project
,
presence:
true
validates
:attachment
,
file_size:
{
maximum:
10
.
megabytes
.
to_i
}
mount_uploader
:attachment
,
AttachmentUploader
mount_uploader
:attachment
,
AttachmentUploader
# Scopes
scope
:common
,
->
{
where
(
noteable_id:
nil
)
}
...
...
app/views/commits/_diffs.html.haml
View file @
2be5e6d4
...
...
@@ -43,7 +43,7 @@
-
if
file
.
text?
=
render
"commits/text_file"
,
diff:
diff
,
index:
i
-
elsif
file
.
image?
-
old_file
=
(
@commit
.
prev_commit
.
tree
/
diff
.
old_path
)
-
old_file
=
(
@commit
.
prev_commit
.
tree
/
diff
.
old_path
)
if
!
@commit
.
prev_commit
.
nil?
-
if
diff
.
renamed_file
||
diff
.
new_file
||
diff
.
deleted_file
.diff_file_content_image
.image
{
class:
image_diff_class
(
diff
)}
...
...
app/views/layouts/_flash.html.haml
View file @
2be5e6d4
-
if
alert
||
notice
-
text
=
alert
||
notice
%div
{
style:
"display:none"
,
id:
"flash_container"
}
%center
%h4
=
text
:javascript
$
(
function
(){
$
(
"#flash_container"
).
slideDown
(
"slow"
);
$
(
"#flash_container"
).
click
(
function
(){
$
(
this
).
slideUp
(
"slow"
);
});
setTimeout
(
"hideFlash()"
,
3000
);
});
function
hideFlash
(){
$
(
"#flash_container"
).
slideUp
(
"slow"
);
}
-
if
text
=
alert
||
notice
#flash-container
%h4
=
text
app/views/layouts/devise.html.haml
View file @
2be5e6d4
...
...
@@ -2,5 +2,5 @@
%html
{
lang:
"en"
}
=
render
"layouts/head"
%body
.ui_basic.login-page
=
render
partial:
"layouts/flash"
=
render
"layouts/flash"
.container
=
yield
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