Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OHR Support
Manage
Activity
Members
Labels
Plan
Issues
97
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
OHR Support
Commits
70c3e1c8
Commit
70c3e1c8
authored
13 years ago
by
Eric Davis
Browse files
Options
Downloads
Patches
Plain Diff
[#544] html_escape issue fields
parent
4bc5bc9f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/helpers/application_helper.rb
+1
-1
1 addition, 1 deletion
app/helpers/application_helper.rb
app/views/issues/show.rhtml
+4
-4
4 additions, 4 deletions
app/views/issues/show.rhtml
with
5 additions
and
5 deletions
app/helpers/application_helper.rb
+
1
−
1
View file @
70c3e1c8
...
...
@@ -81,7 +81,7 @@ module ApplicationHelper
subject
=
truncate
(
subject
,
:length
=>
options
[
:truncate
])
end
end
s
=
link_to
"
#{
issue
.
tracker
}
#
#{
issue
.
id
}
"
,
{
:controller
=>
"issues"
,
:action
=>
"show"
,
:id
=>
issue
},
s
=
link_to
"
#{
h
(
issue
.
tracker
)
}
#
#{
issue
.
id
}
"
,
{
:controller
=>
"issues"
,
:action
=>
"show"
,
:id
=>
issue
},
:class
=>
issue
.
css_classes
,
:title
=>
title
s
<<
":
#{
h
subject
}
"
if
subject
...
...
This diff is collapsed.
Click to expand it.
app/views/issues/show.rhtml
+
4
−
4
View file @
70c3e1c8
<%=
render
:partial
=>
'action_menu'
%>
<h2>
<%=
@issue
.
tracker
.
name
%>
#
<%=
@issue
.
id
%><%=
call_hook
(
:view_issues_show_identifier
,
:issue
=>
@issue
)
%>
</h2>
<h2>
<%=
h
(
@issue
.
tracker
.
name
)
%>
#
<%=
h
(
@issue
.
id
)
%><%=
call_hook
(
:view_issues_show_identifier
,
:issue
=>
@issue
)
%>
</h2>
<div
class=
"
<%=
@issue
.
css_classes
%>
details"
>
<%=
avatar
(
@issue
.
author
,
:size
=>
"50"
)
%>
...
...
@@ -17,11 +17,11 @@
<table
class=
"attributes"
>
<tr>
<th
class=
"status"
>
<%=
l
(
:field_status
)
%>
:
</th><td
class=
"status"
>
<%=
@issue
.
status
.
name
%>
</td>
<th
class=
"status"
>
<%=
l
(
:field_status
)
%>
:
</th><td
class=
"status"
>
<%=
h
(
@issue
.
status
.
name
)
%>
</td>
<th
class=
"start-date"
>
<%=
l
(
:field_start_date
)
%>
:
</th><td
class=
"start-date"
>
<%=
format_date
(
@issue
.
start_date
)
%>
</td>
</tr>
<tr>
<th
class=
"priority"
>
<%=
l
(
:field_priority
)
%>
:
</th><td
class=
"priority"
>
<%=
@issue
.
priority
.
name
%>
</td>
<th
class=
"priority"
>
<%=
l
(
:field_priority
)
%>
:
</th><td
class=
"priority"
>
<%=
h
(
@issue
.
priority
.
name
)
%>
</td>
<th
class=
"due-date"
>
<%=
l
(
:field_due_date
)
%>
:
</th><td
class=
"due-date"
>
<%=
format_date
(
@issue
.
due_date
)
%>
</td>
</tr>
<tr>
...
...
@@ -29,7 +29,7 @@
<th
class=
"progress"
>
<%=
l
(
:field_done_ratio
)
%>
:
</th><td
class=
"progress"
>
<%=
progress_bar
@issue
.
done_ratio
,
:width
=>
'80px'
,
:legend
=>
"
#{
@issue
.
done_ratio
}
%"
%>
</td>
</tr>
<tr>
<th
class=
"category"
>
<%=
l
(
:field_category
)
%>
:
</th><td
class=
"category"
>
<%=
h
@issue
.
category
?
@issue
.
category
.
name
:
"-"
%>
</td>
<th
class=
"category"
>
<%=
l
(
:field_category
)
%>
:
</th><td
class=
"category"
>
<%=
h
(
@issue
.
category
?
@issue
.
category
.
name
:
"-"
)
%>
</td>
<%
if
User
.
current
.
allowed_to?
(
:view_time_entries
,
@project
)
%>
<th
class=
"spent-time"
>
<%=
l
(
:label_spent_time
)
%>
:
</th>
<td
class=
"spent-time"
>
<%=
@issue
.
spent_hours
>
0
?
(
link_to
l_hours
(
@issue
.
spent_hours
),
{
:controller
=>
'timelog'
,
:action
=>
'index'
,
:project_id
=>
@project
,
:issue_id
=>
@issue
})
:
"-"
%>
</td>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment