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
c07d3dfc
Commit
c07d3dfc
authored
Nov 07, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue restyle example
parent
06e91674
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
22 deletions
+53
-22
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+24
-0
app/views/issues/_issues.html.haml
app/views/issues/_issues.html.haml
+1
-6
app/views/issues/_show.html.haml
app/views/issues/_show.html.haml
+28
-16
No files found.
app/assets/stylesheets/projects.css.scss
View file @
c07d3dfc
...
...
@@ -679,6 +679,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
;}
...
...
app/views/issues/_issues.html.haml
View file @
c07d3dfc
%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?
%th
Issues
-
@issues
.
critical
.
each
do
|
issue
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:issue
=>
issue
})
...
...
app/views/issues/_show.html.haml
View file @
c07d3dfc
%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"
)
-
#-
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
=
"#
#{
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
.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"
,
: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
}
"
-#%td ##{issue.id}
-#%td
= truncate(html_escape(issue.title), :length => 200)
%br
%br
-#- if issue.author == current_user
-#%span.tag.yours yours
...
...
@@ -28,7 +40,7 @@
-#%span.tag.notes
-#= issue.notes.count
-#notes
%td
-#
%td
- if can? current_user, :write_issue, @project
= form_for([@project, issue], :remote => true) do |f|
= f.check_box :closed, :onclick => "$(this).parent().submit();"
...
...
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