Actions
Defect #20116
closedThe HTML symbols are escaped
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Gantt
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
when i load the Roadmap, it's looks below.
the html code below:
<div class="gantt_subjects"> <div class="project-name" style="position: absolute;top:44px;left:4px;width:326px;"><span class="icon icon-projects "> <a href="/projects/lailaihui">test</a></span></div><div class="issue-subject" id="issue-3" style="position: absolute;top:64px;left:24px;width:306px;" title="test"> <span class=" icon icon-issue"><img alt="Person" class="gravatar" height="10" src="/plugin_assets/redmine_people/images/person.png?1434458109" title="Assignee: test" width="10" /> <a href="/issues/3" class="issue tracker-1 status-1 priority-2 priority-default">tttt #3</a>: tttttttttttttttt</span> </div><div class="milestones-label" style="position: absolute;top:84px;left:24px;width:306px;"> <span class='icon icon-milestones'>Milestones</span> </div><div class="milestone-name" style="position: absolute;top:104px;left:44px;width:286px;"> <span class='icon icon-milestone'><a href="/milestones/3">testtestetest</a></span> </div><div class="version-name" id="version-1" style="position: absolute;top:124px;left:24px;width:306px;"><span
i think the problem is : & lt; and & gt; symbols is escaped?
Files
Updated by jonathan ben over 10 years ago
- Status changed from New to Resolved
just fixed it.
the problem from plugin
advanced_roadmap_v2
/redmine/web/plugins/advanced_roadmap_v2/lib/advanced_roadmap/redmine_helpers_gantt_patch.rb
def subject_for_milestone(milestone, options)
case options[:format]
when :html
#subject = "<span class='icon icon-milestone'>"
#subject = ""
#subject << view.link_to_milestone(milestone)
#subject << "</span>"
#html_subject(options, subject, :css => "milestone-name")
html_class = ""
html_class << 'icon icon-milestone'
subject = view.link_to_milestone(milestone).html_safe
subject = view.content_tag(:span, subject,
:class => html_class).html_safe
html_subject(options, subject, :css => "milestone-name")
when :image
image_subject(options, milestone.to_s)
when :pdf
pdf_new_page?(options)
pdf_subject(options, milestone.to_s)
end
end
Updated by Jean-Philippe Lang over 10 years ago
- Status changed from Resolved to Closed
- Resolution set to Invalid
OK, thanks for the feedback.
Actions
