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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
87d9e0d8
Commit
87d9e0d8
authored
Dec 13, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue show page restyled
parent
6f32ccf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
35 deletions
+42
-35
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+42
-35
No files found.
app/views/issues/show.html.haml
View file @
87d9e0d8
.issue-show-holder.ui-box
%div
%h3
%span
.entity-info
=
"Issue #
#{
@issue
.
id
}
"
-
if
can?
(
current_user
,
:admin_project
,
@project
)
||
@issue
.
author
==
current_user
.right
=
link_to
edit_project_issue_path
(
@project
,
@issue
)
do
-
if
@issue
.
closed
.entity-button
%span
.tag.closed
Closed
Edit Issue
-
else
%i
%span
.tag.open
Open
=
image_tag
gravatar_icon
(
@issue
.
author_email
),
:class
=>
"left"
,
:width
=>
40
,
:style
=>
"padding-right:5px;"
%span
.commit-title
.data
%strong
%p
=
@issue
.
title
=
"Issue #
#{
@issue
.
id
}
:"
%span
.commit-author
-
if
@issue
.
author
==
@issue
.
assignee
%strong
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
link_to
project_team_member_path
(
@project
,
@project
.
team_member_by_id
(
@issue
.
author
.
id
))
do
=
@issue
.
assignee_name
%span
.author
=
@issue
.
author_name
-
else
-
if
@issue
.
author
!=
@issue
.
assignee
=
image_tag
gravatar_icon
(
@issue
.
author_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
@issue
.
author_name
→
→
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
link_to
project_team_member_path
(
@project
,
@project
.
team_member_by_id
(
@issue
.
assignee
.
id
))
do
=
@issue
.
assignee_name
%span
.author
=
@issue
.
assignee_name
.right
%cite
.cgray
=
@issue
.
created_at
.
stamp
(
"21 Aug 2011, 11:15pm"
)
.clear
.buttons
-
if
can?
current_user
,
:write_issue
,
@issue
=
@issue
.
created_at
.
stamp
(
"Aug 21, 2011 9:23pm"
)
-
if
@issue
.
closed
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"grey-button"
%hr
-
else
%br
=
link_to
'Close'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"grey-button"
%h3
.right
=
simple_format
@issue
.
title
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"grey-button positive"
.clear
.clear
%br
%br
%br
%br
.issue_notes
=
render
"notes/notes"
.merge-tabs
.loading
{
:style
=>
"display:none;"
}
=
link_to
"#notes"
,
:class
=>
"merge-notes-tab active tab"
do
%span
Notes
.right
-
if
@issue
.
closed
=
link_to
'Reopen'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
false
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"red-button"
-
else
=
link_to
'Close'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"positive-button"
.merge-request-notes
.issue_notes
=
render
"notes/notes"
.loading
{
:style
=>
"display:none;"
}
%center
=
image_tag
"ajax-loader.gif"
%center
=
image_tag
"ajax-loader.gif"
.clear
.clear
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