forked from kiwitcms/Kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert rich HTML bug details for internal bug-tracker
Since we started HTML-escaping all strings returned via JSON-RPC in order to stop XSS vulnerabilities there's no good & secure way to return HTML from the BE directly to the browser. This commit makes the tooltip less verbose which makes it display better in the browser but is just a workaround!
- Loading branch information
Showing
1 changed file
with
9 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,17 @@ | ||
{% load i18n %} | ||
|
||
<div> | ||
<div> | ||
<span class="fa {% if object.status %}fa-envelope-open-o{% else %}fa-times{% endif %}"></span> | ||
{% trans 'Status' %}: | ||
{% if object.status %} | ||
{% trans 'Open' %} | ||
{% else %} | ||
{% trans 'Closed' %} | ||
{% endif %} | ||
</div> | ||
{% trans 'Status' %}: {% if object.status %}{% trans 'Open' %}{% else %}{% trans 'Closed' %}{% endif %} | ||
|
||
<div> | ||
<span class="fa fa-calendar"></span> | ||
{{ object.created_at }} | ||
</div> | ||
{% trans 'Created at' %}: {{ object.created_at }} | ||
|
||
<div> | ||
<span class="fa pficon-user"></span> | ||
{% trans 'Reporter' %}: | ||
<a href="{% url "tcms-profile" object.reporter.username %}">{{ object.reporter.username }}</a> | ||
</div> | ||
{% trans 'Reporter' %}: {{ object.reporter.username }} | ||
|
||
<div> | ||
<span class="fa pficon-user"></span> | ||
{% trans 'Assignee' %}: | ||
{% if object.assignee %} | ||
<a href="{% url "tcms-profile" object.assignee.username %}">{{ object.assignee.username }}</a> | ||
{% else %} | ||
- | ||
{% endif %} | ||
</div> | ||
{% if object.assignee %} | ||
{% trans 'Assignee' %}: {{ object.assignee.username }} | ||
{% endif %} | ||
|
||
<div> | ||
<span id="product_pk" class="fa fa-shopping-cart"></span> | ||
{% trans 'Product' %}: | ||
{{ object.product }} | ||
</div> | ||
{% trans 'Product' %}: {{ object.product }} | ||
|
||
<div> | ||
<span class="fa fa-refresh"></span> | ||
{% trans 'Version' %}: | ||
{{ object.version }} | ||
</div> | ||
{% trans 'Version' %}: {{ object.version }} | ||
|
||
<div> | ||
<span class="fa fa-wrench"></span> | ||
{% trans 'Build' %}: | ||
{{ object.build }} | ||
</div> | ||
</div> | ||
{% trans 'Build' %}: {{ object.build }} |