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
iv
gitlab-ce
Commits
4e55cc67
Commit
4e55cc67
authored
Nov 25, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue show page restyled
parent
b7f4f67b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
64 deletions
+28
-64
app/views/issues/edit.html.haml
app/views/issues/edit.html.haml
+1
-1
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+27
-63
No files found.
app/views/issues/edit.html.haml
View file @
4e55cc67
...
...
@@ -15,7 +15,7 @@
%tr
%td
=
f
.
label
:assignee_id
%td
=
f
.
select
(
:assignee_id
,
@project
.
users
.
all
.
collect
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
:include_blank
=>
"Select user"
})
%tr
-#
%tr
%td= f.label :branch_name
%td= f.select(:branch_name, @project.heads.map(&:name), { :include_blank => "Select git branch" })
%tr
...
...
app/views/issues/show.html.haml
View file @
4e55cc67
%h2
.icon
%span
%d
.issue-show-holder.ui-box
%h3
=
"Issue #
#{
@issue
.
id
}
"
-
unless
@commits
.
blank?
.right
=
link_to
'Browse Code'
,
tree_project_ref_path
(
@project
,
@issue
.
branch_name
),
:class
=>
"browse-code button yellow"
,
:style
=>
"margin-right:10px;"
=
link_to
'Commits'
,
project_commits_path
(
@project
,
:ref
=>
@issue
.
branch_name
),
:class
=>
"browse-code button"
.clear
%h3
=
@issue
.
title
%table
.round-borders
%thead
%th
Assignee
%th
Status
%th
Opened
%th
Tags
%tr
%td
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
@issue
.
assignee_name
%td
-
if
@issue
.
closed
%span
.tag.high
Resolved
-
else
%span
.tag.today
Open
%td
=
@issue
.
created_at
.
stamp
(
"21 Aug 2011, 11:15pm"
)
%td
-
if
@issue
.
critical
%span
.tag.high
critical
-
else
%span
.tag.normal
normal
-
if
@issue
.
today?
%span
.tag.today
today
.clear
.data
%h4
=
@issue
.
title
-
if
@issue
.
author
==
@issue
.
assignee
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
20
,
:style
=>
"padding:0 5px;"
=
@issue
.
assignee_name
-
else
=
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;"
=
@issue
.
assignee_name
.right
%cite
.cgray
=
@issue
.
created_at
.
stamp
(
"21 Aug 2011, 11:15pm"
)
.clear
-
if
can?
current_user
,
:write_issue
,
@issue
.buttons
-
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
=>
"grey-button"
-
else
=
link_to
'Resolve'
,
project_issue_path
(
@project
,
@issue
,
:issue
=>
{
:closed
=>
true
},
:status_only
=>
true
),
:method
=>
:put
,
:class
=>
"grey-button"
.right
=
link_to
'Edit'
,
edit_project_issue_path
(
@project
,
@issue
),
:class
=>
"grey-button positive"
=
link_to
'Destroy'
,
[
@project
,
@issue
],
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"grey-button delete-issue negative"
,
:id
=>
"destroy_issue_
#{
@issue
.
id
}
"
.clear
%br
%br
-
unless
@commits
.
blank?
%table
.round-borders
%thead
%th
Unmerged Commits
-
@commits
.
each
do
|
commit
|
%tr
%td
=
image_tag
gravatar_icon
(
commit
.
author_email
),
:class
=>
"left"
,
:width
=>
20
,
:style
=>
"padding-right:5px;"
=
link_to
commit
.
id
.
to_s
,
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
.right
=
time_ago_in_words
(
commit
.
created_at
)
ago
.issue_notes
=
render
"notes/notes"
.loading
{
:style
=>
"display:none;"
}
%center
=
image_tag
"ajax-loader.gif"
.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