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
04997592
Commit
04997592
authored
Nov 05, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issues & fixed layout
parent
31a9d653
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
58 deletions
+38
-58
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+9
-33
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+6
-0
app/views/issues/_show.html.haml
app/views/issues/_show.html.haml
+8
-6
app/views/issues/index.html.haml
app/views/issues/index.html.haml
+5
-5
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+10
-13
spec/requests/commits_notes_spec.rb
spec/requests/commits_notes_spec.rb
+0
-1
No files found.
app/assets/stylesheets/projects.css.scss
View file @
04997592
...
...
@@ -163,10 +163,6 @@ table.round-borders {
padding
:
20px
;
}
//body {
//background: #eaeaea;
//}
a
{
color
:
#111
;
}
...
...
@@ -232,43 +228,15 @@ input.ssh_project_url {
text-align
:center
;
}
.day-commits-table
li
.commit
{
cursor
:pointer
;
&
:hover
{
@include
hover-color
;
}
}
/*
#FFF6BF
#FFD324
*/
#tree-slider
tr
.tree-item
{
cursor
:pointer
;
&
:hover
{
@include
hover-color
;
td
{
@include
hover-color
;
}
}
}
#projects-list
.project
{
height
:
50px
;
}
#tree-slider
.tree-item
,
#projects-list
.project
,
#snippets-table
.snippet
,
#issues-table
.issue
{
cursor
:pointer
;
&
:hover
{
@include
hover-color
;
td
{
@include
hover-color
;
}
}
}
.clear
{
...
...
@@ -563,6 +531,7 @@ input.ssh_project_url {
@include
round-borders-all
(
4px
);
padding
:
2px
4px
;
border
:none
;
text-shadow
:none
;
&
.high
{
background
:
#D12F19
;
...
...
@@ -687,6 +656,13 @@ table.highlighttable pre{
width
:
200px
;
}
.issues_filter
{
margin-top
:
10px
;
.left
{
margin-right
:
15px
;
}
}
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
;}
...
...
app/controllers/application_controller.rb
View file @
04997592
...
...
@@ -82,6 +82,12 @@ class ApplicationController < ActionController::Base
elsif
params
[
:view_style
]
==
"fluid"
cookies
[
:view_style
]
=
""
end
@view_mode
=
if
cookies
[
:view_style
]
==
"collapsed"
:fixed
else
:fluid
end
end
def
respond_with_notes
...
...
app/views/issues/_show.html.haml
View file @
04997592
...
...
@@ -4,10 +4,11 @@
=
image_tag
"move.png"
,
:class
=>
[
:handle
,
:left
]
%td
=
image_tag
gravatar_icon
(
issue
.
assignee
.
email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding:0 5px;"
=
truncate
issue
.
assignee
.
name
,
:lenght
=>
20
=
issue
.
assignee
.
name
%td
##{issue.id}
%td
=
truncate
(
html_escape
(
issue
.
title
),
:length
=>
60
)
=
truncate
(
html_escape
(
issue
.
title
),
:length
=>
200
)
%br
%br
-
if
issue
.
critical
%span
.tag.high
critical
...
...
@@ -27,6 +28,7 @@
-
else
=
check_box_tag
"closed"
,
1
,
issue
.
closed
,
:disabled
=>
true
%td
-
if
@view_mode
==
:fluid
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
||
issue
.
author
==
current_user
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
issue
),
:class
=>
"lbutton positive"
,
:remote
=>
true
-
if
can?
(
current_user
,
:admin_issue
,
@project
)
||
issue
.
author
==
current_user
...
...
app/views/issues/index.html.haml
View file @
04997592
...
...
@@ -7,18 +7,18 @@
=
hidden_field_tag
:project_id
,
@project
.
id
,
{
:id
=>
'project_id'
}
=
search_field_tag
:issue_search
,
nil
,
{
:placeholder
=>
'Search'
,
:class
=>
'issue_search'
}
.right
.right
.issues_filter
=
form_tag
project_issues_path
(
@project
),
:method
=>
:get
do
.
span-2
.
left
=
radio_button_tag
:f
,
0
,
(
params
[
:f
]
||
"0"
)
==
"0"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"open_issues"
,
:class
=>
"status"
=
label_tag
"open_issues"
,
"Open"
.
span-2
.
left
=
radio_button_tag
:f
,
2
,
params
[
:f
]
==
"2"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"closed_issues"
,
:class
=>
"status"
=
label_tag
"closed_issues"
,
"Closed"
.
span-2
.
left
=
radio_button_tag
:f
,
3
,
params
[
:f
]
==
"3"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"my_issues"
,
:class
=>
"status"
=
label_tag
"my_issues"
,
"To Me"
.
span-2
.
left
=
radio_button_tag
:f
,
1
,
params
[
:f
]
==
"1"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"all_issues"
,
:class
=>
"status"
=
label_tag
"all_issues"
,
"All"
...
...
app/views/issues/show.html.haml
View file @
04997592
%h2
=
"Issue #
#{
@issue
.
id
}
-
#{
html_escape
(
@issue
.
title
)
}
"
%strong
Issue
=
"#
#{
@issue
.
id
}
"
–
=
html_escape
(
@issue
.
title
)
.left.width-65p
.issue_notes
=
render
"notes/notes"
...
...
@@ -8,14 +12,6 @@
.right.width-30p
.span-8
%table
.round-borders
%tr
%td
Title:
%td
=
truncate
html_escape
(
@issue
.
title
)
%tr
%td
Project
%td
%strong
=
@issue
.
project
.
name
%tr
%td
Author:
%td
...
...
@@ -39,7 +35,7 @@
%tr
%td
Closed?
%td
-
if
can?
current_user
,
:write_issue
,
@
project
-
if
can?
current_user
,
:write_issue
,
@
issue
=
form_for
([
@project
,
@issue
])
do
|
f
|
=
f
.
check_box
:closed
,
:onclick
=>
"$(this).parent().submit();"
=
hidden_field_tag
:status_only
,
true
...
...
@@ -47,8 +43,9 @@
=
check_box_tag
"closed"
,
1
,
@issue
.
closed
,
:disabled
=>
true
-
if
can?
(
current_user
,
:
admin
_issue
,
@issue
)
-
if
can?
(
current_user
,
:
write
_issue
,
@issue
)
.clear
%br
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"lbutton positive"
,
:remote
=>
true
.right
=
link_to
'Destroy'
,
[
@project
,
@issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"lbutton delete-issue negative"
,
:id
=>
"destroy_issue_
#{
@issue
.
id
}
"
.clear
spec/requests/commits_notes_spec.rb
View file @
04997592
...
...
@@ -12,7 +12,6 @@ describe "Issues" do
describe
"add new note"
,
:js
=>
true
do
before
do
visit
project_commit_path
(
project
,
commit
)
click_link
"Comments"
# notes tab
fill_in
"note_note"
,
:with
=>
"I commented this commit"
click_button
"Add note"
end
...
...
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