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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
8513526b
Commit
8513526b
authored
Nov 09, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
0d4128bf
3f70316c
Changes
37
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
366 additions
and
334 deletions
+366
-334
app/assets/javascripts/note.js
app/assets/javascripts/note.js
+4
-2
app/assets/javascripts/projects.js
app/assets/javascripts/projects.js
+16
-0
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+59
-61
app/assets/stylesheets/style.scss
app/assets/stylesheets/style.scss
+11
-0
app/assets/stylesheets/tags.css.css
app/assets/stylesheets/tags.css.css
+14
-0
app/controllers/issues_controller.rb
app/controllers/issues_controller.rb
+1
-0
app/helpers/dashboard_helper.rb
app/helpers/dashboard_helper.rb
+2
-2
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+10
-0
app/helpers/tags_helper.rb
app/helpers/tags_helper.rb
+15
-0
app/views/admin/projects/_form.html.haml
app/views/admin/projects/_form.html.haml
+29
-20
app/views/admin/users/_form.html.haml
app/views/admin/users/_form.html.haml
+35
-37
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+1
-0
app/views/commits/_text_file.html.haml
app/views/commits/_text_file.html.haml
+1
-3
app/views/dashboard/index.html.haml
app/views/dashboard/index.html.haml
+1
-3
app/views/issues/_form.html.haml
app/views/issues/_form.html.haml
+5
-8
app/views/issues/_issues.html.haml
app/views/issues/_issues.html.haml
+4
-13
app/views/issues/_show.html.haml
app/views/issues/_show.html.haml
+22
-33
app/views/issues/create.js.haml
app/views/issues/create.js.haml
+1
-0
app/views/issues/index.html.haml
app/views/issues/index.html.haml
+33
-24
app/views/issues/index.js.haml
app/views/issues/index.js.haml
+1
-1
app/views/keys/_form.html.haml
app/views/keys/_form.html.haml
+3
-3
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+3
-1
app/views/notes/_form.html.haml
app/views/notes/_form.html.haml
+6
-3
app/views/profile/password.html.haml
app/views/profile/password.html.haml
+2
-2
app/views/profile/show.html.haml
app/views/profile/show.html.haml
+3
-3
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+10
-21
app/views/projects/_list.html.haml
app/views/projects/_list.html.haml
+2
-3
app/views/projects/_recent_commits.html.haml
app/views/projects/_recent_commits.html.haml
+31
-17
app/views/projects/_recent_messages.html.haml
app/views/projects/_recent_messages.html.haml
+22
-47
app/views/projects/_tile.html.haml
app/views/projects/_tile.html.haml
+1
-3
app/views/projects/new.html.erb
app/views/projects/new.html.erb
+0
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+8
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-18
app/views/tags/index.html.haml
app/views/tags/index.html.haml
+1
-1
public/.directory
public/.directory
+4
-0
spec/requests/issues_spec.rb
spec/requests/issues_spec.rb
+1
-1
vendor/assets/stylesheets/jquery-ui/jquery-ui.css
vendor/assets/stylesheets/jquery-ui/jquery-ui.css
+3
-3
No files found.
app/assets/javascripts/note.js
View file @
8513526b
...
...
@@ -42,8 +42,10 @@ replace:
prepend
:
function
(
id
,
html
)
{
if
(
id
!=
this
.
last_id
)
{
this
.
last_id
=
id
;
$
(
"
#notes-list
"
).
prepend
(
html
);
}
},
getNew
:
...
...
app/assets/javascripts/projects.js
View file @
8513526b
...
...
@@ -40,3 +40,19 @@ $(document).ready(function(){
function
focusSearch
()
{
$
(
"
#search
"
).
focus
();
}
function
taggifyForm
(){
var
tag_field
=
$
(
'
#tag_field
'
).
tagify
();
tag_field
.
tagify
(
'
inputField
'
).
autocomplete
({
source
:
'
/tags.json
'
});
$
(
'
form
'
).
submit
(
function
()
{
var
tag_field
=
$
(
'
#tag_field
'
)
tag_field
.
val
(
tag_field
.
tagify
(
'
serialize
'
)
);
return
true
;
});
}
app/assets/stylesheets/projects.css.scss
View file @
8513526b
...
...
@@ -276,6 +276,9 @@ input.ssh_project_url {
/** FORM INPUTS **/
.user_new
,
.new_key
,
.new_issue
,
.new_note
,
.edit_user
,
.new_project
,
.new_snippet
,
...
...
@@ -440,67 +443,6 @@ input.ssh_project_url {
padding
:
10px
;
}
.recent_message_parent
{
img
{
padding-right
:
10px
;
}
float
:
left
;
margin
:
0
20px
20px
0px
;
padding
:
5px
0px
;;
width
:
420px
;
&
.dash_wall
{
border-bottom
:
2px
solid
orange
;
span
{
background
:
orange
;
color
:black
;
}
}
&
.dash_issue
{
border-bottom
:
2px
solid
#ffbbbb
;
span
{
background
:
#ffbbbb
;
}
}
&
.dash_commit
{
border-bottom
:
2px
solid
#bbbbff
;
span
{
background
:
#bbbbff
;
}
}
&
.dash_snippet
{
border-bottom
:
2px
solid
#bbffbb
;
span
{
background
:
#bbffbb
;
}
}
span
{
border
:
1px
solid
#aaa
;
color
:black
;
padding
:
1px
4px
;
}
h4
{
margin-bottom
:
3px
;
}
}
.commit
,
.message
{
.author
{
background
:
#eaeaea
;
color
:
#333
;
border
:
1px
solid
#aaa
;
padding
:
1px
2px
;
margin-right
:
5px
;
}
}
/* Note textare */
#note_note
{
...
...
@@ -662,6 +604,8 @@ table.highlighttable pre{
margin-right
:
15px
;
}
}
.filter
.left
{
margin-right
:
15px
;
}
.cgray
{
color
:gray
;
}
.cred
{
color
:
#D12F19
;
}
...
...
@@ -676,6 +620,30 @@ body.project-page table .commit {
}
}
#notes-list
.note
.delete-note
{
display
:none
;
}
#notes-list
.note
:hover
.delete-note
{
display
:block
;
}
#issues-table-holder
.issue
.action-links
{
display
:none
;
a
{
margin-left
:
10px
;
}
}
.issue-number
{
float
:
left
;
border-radius
:
5px
;
text-shadow
:
none
;
background
:
rgba
(
0
,
0
,
0
,
0
.12
);
text-align
:
center
;
padding
:
14px
8px
;
width
:
40px
;
margin-right
:
10px
;
color
:
#444
;
}
#issues-table-holder
.issue
:hover
.action-links
{
display
:block
;
}
body
.project-page
#notes-list
.note
{
padding
:
10px
;
border-bottom
:
1px
solid
#eee
;
overflow
:
hidden
;
display
:
block
;}
body
.project-page
#notes-list
.note
{
padding
:
10px
;
border-bottom
:
1px
solid
#eee
;
overflow
:
hidden
;
display
:
block
;}
body
.project-page
#notes-list
.note
img
{
float
:
left
;
margin-right
:
10px
;}
...
...
@@ -683,3 +651,33 @@ body.project-page #notes-list .note span.note-title{display: block;}
body
.project-page
#notes-list
.note
span
.note-title
{
margin-bottom
:
10px
}
body
.project-page
#notes-list
.note
span
.note-author
{
color
:
#999
;
font-weight
:
normal
;
font-style
:
italic
;}
body
.project-page
#notes-list
.note
span
.note-author
strong
{
font-weight
:
bold
;
font-style
:
normal
;}
/** NEW PROJECT **/
.new-project-hodler
{
.icon
span
{
background-position
:
-31px
-70px
;
}
td
{
border-bottom
:
1px
solid
#DEE2E3
;
}
}
//.message .note-title p { margin-bottom:0px; }
.commit
,
.message
{
.title
{
color
:
#666
;
a
{
color
:
#666
!
important
;
}
p
{
margin-top
:
0px
;
}
}
.author
{
color
:
#999
}
}
app/assets/stylesheets/style.scss
View file @
8513526b
...
...
@@ -87,6 +87,17 @@ h2{margin: 1.5em 0}
/* Forms */
input
[
type
=
"text"
]
:focus
,
input
[
type
=
"password"
]
:focus
{
outline
:
none
;
}
input
.text
{
border
:
1px
solid
#ccc
;
border-radius
:
4px
;
display
:
block
;
padding
:
10px
}
.form-row
{
padding
:
0px
0px
10px
0px
;
}
.form-row
label
{
font-weight
:bold
;
display
:
inline-block
;
padding
:
0px
0px
5px
0px
;
}
/* eo Forms */
/* Tables */
...
...
app/assets/stylesheets/tags.css.css
View file @
8513526b
...
...
@@ -28,3 +28,17 @@
text-shadow
:
none
;
font-weight
:
bold
;
}
.medium-tags
a
{
font-size
:
12px
;
display
:
inline-block
;
padding
:
3px
4px
2px
4px
;
margin
:
0px
7px
8px
0px
;
border-radius
:
3px
;
background-color
:
#72bbdf
;
color
:
#FFF
;
text-shadow
:
none
;
font-weight
:
bold
;
}
\ No newline at end of file
app/controllers/issues_controller.rb
View file @
8513526b
...
...
@@ -47,6 +47,7 @@ class IssuesController < ApplicationController
def
create
@issue
=
@project
.
issues
.
new
(
params
[
:issue
])
@issue
.
author
=
current_user
if
@issue
.
save
&&
@issue
.
assignee
!=
current_user
Notify
.
new_issue_email
(
@issue
).
deliver
end
...
...
app/helpers/dashboard_helper.rb
View file @
8513526b
...
...
@@ -12,7 +12,7 @@ module DashboardHelper
when
"Commit"
then
project_commit_path
(
project
,
:id
=>
note
.
noteable_id
)
else
wall_project_path
(
project
)
end
else
"#"
else
wall_project_path
(
project
)
end
rescue
"#"
...
...
@@ -23,7 +23,7 @@ module DashboardHelper
when
"Note"
then
markdown
(
object
.
note
)
when
"Issue"
then
object
.
title
when
"Grit::Commit"
then
object
.
safe_message
else
"
"
else
return
"Project Wall
"
end
"[
#{
object
.
class
.
name
}
]
#{
truncate
(
sanitize
(
title
,
:tags
=>
[]),
:length
=>
60
)
}
"
end
...
...
app/helpers/issues_helper.rb
View file @
8513526b
module
IssuesHelper
def
sort_class
if
can?
(
current_user
,
:admin_issue
,
@project
)
&&
(
!
params
[
:f
]
||
params
[
:f
]
==
"0"
)
"handle"
end
end
def
project_issues_filter_path
project
,
params
=
{}
params
[
:f
]
||=
cookies
[
'issue_filter'
]
project_issues_path
project
,
params
end
end
app/helpers/tags_helper.rb
0 → 100644
View file @
8513526b
module
TagsHelper
def
tag_path
tag
"/tags/
#{
tag
}
"
end
def
tag_list
project
html
=
''
project
.
tag_list
.
each
do
|
tag
|
html
+=
link_to
tag
,
tag_path
(
tag
)
end
html
.
html_safe
end
end
app/views/admin/projects/_form.html.haml
View file @
8513526b
...
...
@@ -6,25 +6,34 @@
-
@admin_project
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.span-24
.span-12
.field
.form-row
=
f
.
label
:name
%br
=
f
.
text_field
:name
.field
.form-row
=
f
.
label
:code
%br
=
f
.
text_field
:code
.field
.form-row
=
f
.
label
:path
%br
=
f
.
text_field
:path
.span-10
.field
.form-row
=
f
.
label
:tag_list
%br
=
f
.
text_area
:tag_list
,
:placeholder
=>
"project tags"
,
:style
=>
"height:50px"
,
:id
=>
:tag_field
.form-row
=
f
.
label
:description
%br
=
f
.
text_area
:description
.clear
.actions
=
f
.
submit
'Save'
,
:class
=>
"lbutton"
:javascript
$
(
function
(){
taggifyForm
();
})
app/views/admin/users/_form.html.haml
View file @
8513526b
...
...
@@ -7,41 +7,39 @@
-
@admin_user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.span-24
.span-11.colborder
.field
.form-row
=
f
.
label
:name
%br
=
f
.
text_field
:name
.field
.form-row
=
f
.
label
:email
%br
=
f
.
text_field
:email
.field
.form-row
=
f
.
label
:password
%br
=
f
.
password_field
:password
.field
.form-row
=
f
.
label
:password_confirmation
%br
=
f
.
password_field
:password_confirmation
.field.prepend-top
.form-row
=
f
.
check_box
:admin
=
f
.
label
:admin
.span-11
.field.prepend-top
.form-row
=
f
.
text_field
:projects_limit
,
:class
=>
"small_input"
=
f
.
label
:projects_limit
.field
.form-row
=
f
.
label
:skype
%br
=
f
.
text_field
:skype
.field
.form-row
=
f
.
label
:linkedin
%br
=
f
.
text_field
:linkedin
.field
.form-row
=
f
.
label
:twitter
%br
=
f
.
text_field
:twitter
...
...
app/views/admin/users/index.html.haml
View file @
8513526b
...
...
@@ -21,4 +21,5 @@
%br
=
paginate
@admin_users
=
link_to
'New User'
,
new_admin_user_path
app/views/commits/_text_file.html.haml
View file @
8513526b
...
...
@@ -13,10 +13,8 @@
=
diff_line
(
line
,
line_new
,
line_old
)
-
if
line
[
0
]
==
"+"
-
line_new
+=
1
-
elsif
-
line
[
0
]
==
"-"
-
elsif
line
[
0
]
==
"-"
-
line_old
+=
1
-
else
-
line_new
+=
1
-
line_old
+=
1
app/views/dashboard/index.html.haml
View file @
8513526b
...
...
@@ -23,7 +23,7 @@
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
%h3
=
project
.
name
.data
-
project
.
updates
.
each
do
|
update
|
-
project
.
updates
(
4
)
.
each
do
|
update
|
%a
.project-update
{
:href
=>
dashboard_feed_path
(
project
,
update
)}
=
image_tag
gravatar_icon
(
update
.
author_email
),
:class
=>
"left"
,
:width
=>
40
%span
.update-title
...
...
@@ -34,7 +34,5 @@
=
time_ago_in_words
(
update
.
created_at
)
ago
%br
/ .project-update
/ .project-updates
/ #news-feed
/ #dashboard-content
app/views/issues/_form.html.haml
View file @
8513526b
...
...
@@ -5,24 +5,21 @@
-
@issue
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.
span-8
.
form-row
=
f
.
label
:title
=
f
.
text_area
:title
,
:style
=>
"width:450px; height:100px"
,
:maxlength
=>
255
-#.span-8
-#= f.label :content
-#= f.text_area :content, :style => "width:450px; height:130px"
.span-8.append-bottom
.form-row
=
f
.
label
:assignee_id
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Select user"
})
.
span-1
.
form-row
=
f
.
label
:critical
,
"Critical"
%br
=
f
.
check_box
:critical
-
unless
@issue
.
new_record?
.
span-2.right
.
form-row
=
f
.
label
:closed
%br
=
f
.
check_box
:closed
%hr
.
span-6
.
form-row
=
f
.
submit
'Save'
,
:class
=>
"lbutton vm"
app/views/issues/_issues.html.haml
View file @
8513526b
%table
.round-borders
#issues-table
%thead
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
&&
!
params
[
:f
]
||
params
[
:f
]
==
"0"
%th
%th
Assignee
%th
ID
%th
Title
%th
Closed?
-
@issues
.
critical
.
each
do
|
issue
|
-
@issues
.
critical
.
each
do
|
issue
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:issue
=>
issue
})
-
@issues
.
non_critical
.
each
do
|
issue
|
-
@issues
.
non_critical
.
each
do
|
issue
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:issue
=>
issue
})
app/views/issues/_show.html.haml
View file @
8513526b
%tr
{
:id
=>
dom_id
(
issue
),
:class
=>
"issue #{issue.critical ? "
critical
" : ""}"
,
:url
=>
project_issue_path
(
@project
,
issue
)
}
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
&&
(
!
params
[
:f
]
||
params
[
:f
]
==
"0"
)
%td
=
image_tag
"move.png"
,
:class
=>
[
:handle
,
:left
]
%td
=
image_tag
gravatar_icon
(
issue
.
assignee
.
email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding:0 5px;"
=
issue
.
assignee
.
name
%td
##{issue.id}
%td
=
truncate
(
html_escape
(
issue
.
title
),
:length
=>
200
)
%strong
.issue-number
{
:class
=>
sort_class
}=
"#
#{
issue
.
id
}
"
%span
=
truncate
(
html_escape
(
issue
.
title
),
:length
=>
fixed_mode?
?
100
:
200
)
%br
%br
%div
.note-author
%strong
=
issue
.
assignee
.
name
%cite
.cgray
=
time_ago_in_words
(
issue
.
updated_at
)
ago
-
if
issue
.
critical
%span
.tag.high
critical
-
if
issue
.
today?
%span
.tag.today
today
.right
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
||
issue
.
author
==
current_user
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
issue
),
:class
=>
"cgray"
,
:remote
=>
true
.right.action-links
-
if
can?
current_user
,
:write_issue
,
issue
-
if
issue
.
closed
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
issue
,
:issue
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"cgray"
,
:remote
=>
true
-
else
=
link_to
'Resolve'
,
project_issue_path
(
@project
,
issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"cgray"
,
:remote
=>
true
-
if
can?
current_user
,
:write_issue
,
issue
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
issue
),
:class
=>
"cgray edit-issue-link"
,
:remote
=>
true
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
||
issue
.
author
==
current_user
=
link_to
'Destroy'
,
[
@project
,
issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:remote
=>
true
,
:class
=>
"cred delete-issue negative"
,
:id
=>
"destroy_issue_
#{
issue
.
id
}
"
-#- if issue.author == current_user
-#%span.tag.yours yours
-#- if issue.notes.count > 0
-#%span.tag.notes
-#= issue.notes.count
-#notes
%td
-
if
can?
current_user
,
:write_issue
,
@project
=
form_for
([
@project
,
issue
],
:remote
=>
true
)
do
|
f
|
=
f
.
check_box
:closed
,
:onclick
=>
"$(this).parent().submit();"
=
hidden_field_tag
:status_only
,
true
-
else
=
check_box_tag
"closed"
,
1
,
issue
.
closed
,
:disabled
=>
true
app/views/issues/create.js.haml
View file @
8513526b
-
if
@issue
.
valid?
:plain
$("#new_issue_dialog").dialog("close");
$("#issues-table").prepend("
#{
escape_javascript
(
render
(
:partial
=>
'show'
,
:locals
=>
{
:issue
=>
@issue
}
))
}
");
$.ajax({type: "GET", url: location.href, dataType: "script"});
-
else
:plain
...
...
app/views/issues/index.html.haml
View file @
8513526b
%div
%div
#issues-table-holder
%table
.round-borders
#issues-table
%thead
%th
.top_panel_issues
-
if
can?
current_user
,
:write_issue
,
@project
%div
{
:class
=>
"left"
,
:style
=>
"margin-right: 10px;"
}
...
...
@@ -10,24 +13,30 @@
.right.issues_filter
=
form_tag
project_issues_path
(
@project
),
:method
=>
:get
do
.left
=
radio_button_tag
:f
,
0
,
(
params
[
:f
]
||
"0"
)
==
"0"
,
:onclick
=>
"this.form.submit(
)"
,
:id
=>
"open_issues"
,
:class
=>
"status"
=
radio_button_tag
:f
,
0
,
(
params
[
:f
]
||
"0"
)
==
"0"
,
:onclick
=>
"setIssueFilter(this.form, 0
)"
,
:id
=>
"open_issues"
,
:class
=>
"status"
=
label_tag
"open_issues"
,
"Open"
.left
=
radio_button_tag
:f
,
2
,
params
[
:f
]
==
"2"
,
:onclick
=>
"this.form.submit(
)"
,
:id
=>
"closed_issues"
,
:class
=>
"status"
=
radio_button_tag
:f
,
2
,
params
[
:f
]
==
"2"
,
:onclick
=>
"setIssueFilter(this.form, 2
)"
,
:id
=>
"closed_issues"
,
:class
=>
"status"
=
label_tag
"closed_issues"
,
"Closed"
.left
=
radio_button_tag
:f
,
3
,
params
[
:f
]
==
"3"
,
:onclick
=>
"this.form.submit(
)"
,
:id
=>
"my_issues"
,
:class
=>
"status"
=
radio_button_tag
:f
,
3
,
params
[
:f
]
==
"3"
,
:onclick
=>
"setIssueFilter(this.form, 3
)"
,
:id
=>
"my_issues"
,
:class
=>
"status"
=
label_tag
"my_issues"
,
"To Me"
.left
=
radio_button_tag
:f
,
1
,
params
[
:f
]
==
"1"
,
:onclick
=>
"this.form.submit(
)"
,
:id
=>
"all_issues"
,
:class
=>
"status"
=
radio_button_tag
:f
,
1
,
params
[
:f
]
==
"1"
,
:onclick
=>
"setIssueFilter(this.form, 1
)"
,
:id
=>
"all_issues"
,
:class
=>
"status"
=
label_tag
"all_issues"
,
"All"
#issues-table-holder
=
render
"issues"
=
render
"issues"
%br
:javascript
var
href
=
$
(
'
.issue_search
'
).
parent
().
attr
(
'
action
'
);
var
last_terms
=
''
;
var
setIssueFilter
=
function
(
form
,
value
){
$
.
cookie
(
'
issue_filter
'
,
value
,
{
expires
:
140
});
form
.
submit
();
}
$
(
'
.issue_search
'
).
keyup
(
function
()
{
var
terms
=
$
(
this
).
val
();
var
project_id
=
$
(
'
#project_id
'
).
val
();
...
...
@@ -37,7 +46,7 @@
if
(
terms
.
length
>=
2
||
terms
.
length
==
0
)
{
$
.
get
(
href
,
{
'
status
'
:
status
,
'
terms
'
:
terms
,
project
:
project_id
},
function
(
response
)
{
$
(
'
#issues-table
'
).
html
(
response
);
$
(
'
#issues-table
tbody
'
).
html
(
response
);
setSortable
();
});
}
...
...
app/views/issues/index.js.haml
View file @
8513526b
:plain
$('#issues-table
-holder
').html("
#{
escape_javascript
(
render
(
'issues'
))
}
");
$('#issues-table
tbody
').html("
#{
escape_javascript
(
render
(
'issues'
))
}
");
setSortable();
app/views/keys/_form.html.haml
View file @
8513526b
...
...
@@ -5,12 +5,12 @@
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.
span-6
.
form-row
=
f
.
label
:title
=
f
.
text_field
:title
,
:style
=>
"width:300px"
.
span-6
.
form-row
=
f
.
label
:key
=
f
.
text_area
:key
,
:style
=>
"width:300px; height:130px"
.
span-6
.
form-row
=
f
.
submit
'Save'
,
:class
=>
"lbutton vm"
app/views/layouts/project.html.haml
View file @
8513526b
...
...
@@ -25,7 +25,7 @@
Team
-
if
@project
.
users_projects
.
count
>
0
%span
{
:class
=>
"number"
}=
@project
.
users_projects
.
count
=
link_to
project_issues_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
=
link_to
project_issues_
filter_
path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
Issues
-
if
@project
.
issues
.
opened
.
count
>
0
%span
{
:class
=>
"number"
}=
@project
.
issues
.
opened
.
count
...
...
@@ -40,5 +40,7 @@
-
if
@commit
=
link_to
truncate
(
commit_name
(
@project
,
@commit
),
:length
=>
15
),
project_commit_path
(
@project
,
:id
=>
@commit
.
id
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"show"
,
:project_id
=>
@project
,
:id
=>
@commit
.
id
)
?
"current"
:
nil
.medium-tags
{
:style
=>
'padding: 10px 0 0 10px; width: 210px;'
}=
tag_list
@project
.project-content
=
yield
app/views/notes/_form.html.haml
View file @
8513526b
...
...
@@ -10,13 +10,16 @@
%div
=
f
.
label
:note
%cite
%cite
.cgray
markdown supported
%br
%br
=
f
.
text_area
:note
,
:size
=>
255
%div
.attach_holder
%br
=
f
.
label
:attachment
%cite
(less than 10 MB)
%cite
.cgray
(less than 10 MB)
%br
%br
=
f
.
file_field
:attachment
...
...
app/views/profile/password.html.haml
View file @
8513526b
...
...
@@ -7,11 +7,11 @@
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.
div
.
form-row
=
f
.
label
:password
%br
=
f
.
password_field
:password
.
div
.
form-row
=
f
.
label
:password_confirmation
%br
=
f
.
password_field
:password_confirmation
...
...
app/views/profile/show.html.haml
View file @
8513526b
...
...
@@ -16,15 +16,15 @@
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
.
div
.
form-row
=
f
.
label
:skype
%br
=
f
.
text_field
:skype
.
div
.
form-row
=
f
.
label
:linkedin
%br
=
f
.
text_field
:linkedin
.
div
.
form-row
=
f
.
label
:twitter
%br
=
f
.
text_field
:twitter
...
...
app/views/projects/_form.html.haml
View file @
8513526b
=
form_for
(
@project
,
:remote
=>
true
)
do
|
f
|
%div
.form_content
-
unless
@project
.
new_record?
%h1
Edit Project
%h2
.icon
%span
=
@project
.
name
-
if
@project
.
errors
.
any?
#error_explanation
%h2
...
...
@@ -10,7 +12,7 @@
%ul
-
@project
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%table
.round-borders
%table
%tr
%td
=
f
.
label
:name
%td
=
f
.
text_field
:name
,
:placeholder
=>
"Example Project"
...
...
@@ -29,15 +31,13 @@
%tr
%td
=
f
.
label
:tag_list
%td
=
f
.
text_area
:tag_list
,
:placeholder
=>
"project tags"
,
:style
=>
"height:50px"
,
:id
=>
:tag_field
%tr
%td
=
f
.
label
:description
%td
=
f
.
text_area
:description
,
:placeholder
=>
"project description"
,
:style
=>
"height:50px"
.field
=
f
.
label
:description
%br
/
=
f
.
text_area
:description
,
:style
=>
"height:140px;width:932px;"
.clear
%hr
.prepend-top
%br
.actions
=
f
.
submit
:class
=>
"
lbutton vm
"
=
f
.
submit
:class
=>
"
button
"
%div
{
:class
=>
"ajax_loader"
,
:style
=>
"display:none;height:200px;"
}
%center
...
...
@@ -55,16 +55,5 @@
:javascript
$
(
function
(){
var
tag_field
=
$
(
'
#tag_field
'
).
tagify
();
tag_field
.
tagify
(
'
inputField
'
).
autocomplete
({
source
:
'
/tags.json
'
});
$
(
'
form
'
).
submit
(
function
()
{
var
tag_field
=
$
(
'
#tag_field
'
)
tag_field
.
val
(
tag_field
.
tagify
(
'
serialize
'
)
);
return
true
;
});
taggifyForm
();
})
app/views/projects/_list.html.haml
View file @
8513526b
...
...
@@ -12,9 +12,8 @@
%tr
{
:class
=>
"project"
,
:url
=>
project_path
(
project
)
}
%td
=
project
.
name
.small-tags
-
project
.
tag_list
.
each
do
|
tag
|
=
link_to
tag
,
"/tags/
#{
tag
}
"
.small-tags
=
tag_list
project
%td
=
truncate
project
.
url_to_repo
%td
=
project
.
code
...
...
app/views/projects/_recent_commits.html.haml
View file @
8513526b
-
@commits
.
each
do
|
commit
|
%table
%thead
%th
Commits
.filter.right
=
form_tag
project_path
(
@project
),
:method
=>
:get
,
:class
=>
"right"
do
.left
=
radio_button_tag
:view
,
"recent"
,
(
params
[
:view
]
||
"recent"
)
==
"recent"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"recent_view"
=
label_tag
"recent_view"
,
"Recent"
.left
=
radio_button_tag
:view
,
"day"
,
params
[
:view
]
==
"day"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"day_view"
=
label_tag
"day_view"
,
"Today"
.left
=
radio_button_tag
:view
,
"week"
,
params
[
:view
]
==
"week"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"week_view"
=
label_tag
"week_view"
,
"Week"
-
@commits
.
each
do
|
commit
|
%tr
%td
%div
.commit
-
if
commit
.
author
.
email
=
image_tag
gravatar_icon
(
commit
.
author
.
email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
-
else
=
image_tag
"no_avatar.png"
,
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
%p
{
:style
=>
"margin-bottom: 3px;"
}
%strong
=
link_to
truncate
(
commit
.
safe_message
,
:length
=>
60
),
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
.title
%p
=
link_to
truncate
(
commit
.
safe_message
,
:length
=>
fixed_mode?
?
40
:
100
),
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
%span
%span
.author
=
commit
.
author
.
name
.
force_encoding
(
"UTF-8"
)
%cite
%strong
=
commit
.
author
.
name
.
force_encoding
(
"UTF-8"
)
%cite
.cgray
=
time_ago_in_words
(
commit
.
committed_date
)
ago
%br
app/views/projects/_recent_messages.html.haml
View file @
8513526b
...
...
@@ -3,50 +3,25 @@
-
parent
=
load_note_parent
(
id
,
type
,
@project
)
-
next
unless
parent
-
case
type
-
when
"Issue"
-
css_class
=
"dash_issue"
-
issue
=
parent
-
item_code
=
issue
.
author
.
email
-
link_item_name
=
truncate
(
issue
.
title
,
:length
=>
50
)
-
link_to_item
=
project_issue_path
(
@project
,
issue
)
-
when
"Snippet"
-
css_class
=
"dash_snippet"
-
item_code
=
parent
.
author
.
email
-
link_item_name
=
parent
.
title
-
link_to_item
=
project_snippet_path
(
@project
,
parent
)
-
when
"Commit"
-
css_class
=
"dash_commit"
-
commit
=
parent
-
item_code
=
commit
.
author
.
email
-
link_item_name
=
truncate
(
commit
.
safe_message
,
:length
=>
50
)
-
link_to_item
=
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
-
else
-
css_class
=
"dash_wall"
-
item_code
=
@project
.
name
-
link_item_name
=
"Project Wall"
-
link_to_item
=
wall_project_path
(
@project
)
%div
{
:class
=>
"recent_message_parent #{css_class}"
}
=
image_tag
gravatar_icon
(
item_code
),
:class
=>
"left"
,
:width
=>
40
%h4
=
link_to
(
link_item_name
,
link_to_item
)
%span
=
type
.clear
-
notes
.
sort
{
|
x
,
y
|
x
.
updated_at
<=>
y
.
updated_at
}.
each
do
|
note
|
%table
%thead
%th
%div
{
:class
=>
"recent_message_parent"
}
=
link_to
(
truncate
(
dashboard_feed_title
(
parent
),
:length
=>
fixed_mode?
?
40
:
100
),
dashboard_feed_path
(
@project
,
parent
))
-
notes
.
sort
{
|
x
,
y
|
y
.
updated_at
<=>
x
.
updated_at
}.
each
do
|
note
|
%tr
%td
%div
.message
=
image_tag
gravatar_icon
(
note
.
author
.
email
),
:class
=>
"left"
,
:width
=>
24
,
:style
=>
"padding-right:5px;"
%p
{
:style
=>
"margin-bottom: 3px;"
}
%span
.author
=
note
.
author
.
name
=
link_to
markdown
(
truncate
(
note
.
note
,
:length
=>
200
)),
link_to_item
+
"#note_
#{
note
.
id
}
"
=
image_tag
gravatar_icon
(
note
.
author_email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
%div
.title
=
link_to
markdown
(
truncate
(
note
.
note
,
:length
=>
fixed_mode?
?
40
:
100
)),
dashboard_feed_path
(
@project
,
parent
)
+
"#note_
#{
note
.
id
}
"
-
if
note
.
attachment
.
url
%br
Attachment:
=
link_to
note
.
attachment_identifier
,
note
.
attachment
.
url
%div
.author
%strong
=
note
.
author_name
%cite
.cgray
=
time_ago_in_words
(
note
.
updated_at
)
ago
%br
%br
.append-bottom
.clear
app/views/projects/_tile.html.haml
View file @
8513526b
...
...
@@ -13,9 +13,7 @@
-
last_note
=
project
.
notes
.
last
=
last_note
?
last_note
.
created_at
.
stamp
(
"24 Aug, 2011"
)
:
"Never"
%p
.small-tags
-
project
.
tag_list
.
each
do
|
tag
|
=
link_to
tag
,
"/tags/
#{
tag
}
"
%p
.small-tags
=
tag_list
project
.buttons
%a
.browse-code.button.yellow
{
:href
=>
tree_project_path
(
project
)}
Browse code
...
...
app/views/projects/new.html.erb
deleted
100644 → 0
View file @
0d4128bf
<%=
render
'form'
%>
app/views/projects/new.html.haml
0 → 100644
View file @
8513526b
.new-project-hodler
.container_4
%h2
.icon
%span
New Project
%div
.clear
=
render
'form'
app/views/projects/show.html.haml
View file @
8513526b
%div
%h2
.left
History
.right
=
form_tag
project_path
(
@project
),
:method
=>
:get
do
.span-2
=
radio_button_tag
:view
,
"recent"
,
(
params
[
:view
]
||
"recent"
)
==
"recent"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"recent_view"
=
label_tag
"recent_view"
,
"Recent"
.span-2
=
radio_button_tag
:view
,
"day"
,
params
[
:view
]
==
"day"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"day_view"
=
label_tag
"day_view"
,
"Today"
.span-2
=
radio_button_tag
:view
,
"week"
,
params
[
:view
]
==
"week"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"week_view"
=
label_tag
"week_view"
,
"Week"
.clear
%hr
.left.width-49p
%h3
Commits
=
render
"projects/recent_commits"
.right.width-49p
%h3
Talk
=
render
"projects/recent_messages"
:javascript
function
updateDashboard
(){
$
(
'
#content-container
'
).
load
(
"
#{
escape_javascript
(
project_path
(
@project
))
}
#content-container
>*
"
);
$
(
'
.project-content
'
).
load
(
"
#{
escape_javascript
(
project_path
(
@project
))
}
.project-content
>*
"
);
}
setInterval
(
"
updateDashboard()
"
,
300000
);
app/views/tags/index.html.haml
View file @
8513526b
...
...
@@ -7,5 +7,5 @@
.tags-list
-
@tags
.
all
.
each
do
|
tag
|
=
link_to
"
#{
tag
.
name
}
(
#{
tag
.
count
}
)"
,
"/tags/
#{
tag
.
name
}
"
=
link_to
"
#{
tag
.
name
}
(
#{
tag
.
count
}
)"
,
tag_path
(
name
)
public/.directory
0 → 100644
View file @
8513526b
[Dolphin]
ShowPreview=true
Timestamp=2011,11,6,21,7,47
Version=2
spec/requests/issues_spec.rb
View file @
8513526b
...
...
@@ -158,7 +158,6 @@ describe "Issues" do
it
"should have valid show page for issue"
do
page
.
should
have_content
@issue
.
title
page
.
should
have_content
@user
.
name
page
.
should
have_content
"today"
end
end
...
...
@@ -169,6 +168,7 @@ describe "Issues" do
:assignee
=>
@user
,
:project
=>
project
visit
project_issues_path
(
project
)
page
.
execute_script
(
"$('.action-links').css('display', 'block');"
)
click_link
"Edit"
end
...
...
vendor/assets/stylesheets/jquery-ui/jquery-ui.css
View file @
8513526b
...
...
@@ -59,7 +59,7 @@
.ui-widget
{
font-family
:
"Helvetica Neue"
,
Arial
,
Helvetica
,
sans-serif
;
font-size
:
1.1em
;
}
.ui-widget
.ui-widget
{
font-size
:
1em
;
}
.ui-widget
input
,
.ui-widget
select
,
.ui-widget
textarea
,
.ui-widget
button
{
font-family
:
Verdana
,
Arial
,
sans-serif
;
font-size
:
1em
;
}
.ui-widget-content
{
border
:
1px
solid
#
dddddd
;
background
:
#ffffff
url(ui-bg_flat_75_ffffff_40x100.png)
50%
50%
repeat-x
;
color
:
#222222
;
}
.ui-widget-content
{
border
:
1px
solid
#
474D57
;
background
:
#ffffff
url(ui-bg_flat_75_ffffff_40x100.png)
50%
50%
repeat-x
;
color
:
#222222
;
}
.ui-widget-content
a
{
color
:
#222222
;
}
.ui-widget-header
{
color
:
#222222
;
font-weight
:
bold
;
}
.ui-widget-header
a
{
color
:
#222222
;
}
...
...
@@ -445,8 +445,8 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
* http://docs.jquery.com/UI/Dialog#theming
*/
.ui-dialog
{
position
:
absolute
;
padding
:
0
;
width
:
300px
;
overflow
:
hidden
;
}
.ui-dialog
.ui-dialog-titlebar
{
padding
:
.4em
1em
;
position
:
relative
;
background
:
#
F7F7F7
;
color
:
#555
;
}
.ui-dialog
.ui-dialog-title
{
float
:
left
;
margin
:
.1em
16px
.1em
0
;}
.ui-dialog
.ui-dialog-titlebar
{
padding
:
.4em
1em
;
position
:
relative
;
background
:
#
474D57
;
color
:
#eee
;
}
.ui-dialog
.ui-dialog-title
{
float
:
left
;
margin
:
.1em
16px
.1em
0
;
text-shadow
:
none
;
}
.ui-dialog
.ui-dialog-titlebar-close
{
position
:
absolute
;
right
:
.3em
;
top
:
50%
;
width
:
19px
;
margin
:
-10px
0
0
0
;
padding
:
1px
;
height
:
18px
;
background
:
#eaeaea
}
.ui-dialog
.ui-dialog-titlebar-close
span
{
display
:
block
;
margin
:
1px
;
}
.ui-dialog
.ui-dialog-titlebar-close
:hover
,
.ui-dialog
.ui-dialog-titlebar-close
:focus
{
padding
:
0
;
}
...
...
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