diff options
Diffstat (limited to 'lib/srtgui/templates/defect.html')
-rw-r--r-- | lib/srtgui/templates/defect.html | 54 |
1 files changed, 50 insertions, 4 deletions
diff --git a/lib/srtgui/templates/defect.html b/lib/srtgui/templates/defect.html index aa13b0dd..ed00fd90 100644 --- a/lib/srtgui/templates/defect.html +++ b/lib/srtgui/templates/defect.html @@ -38,14 +38,30 @@ <dt>URL:</dt> <dd><a href="{{object.url}}" id="dataid_{{object.id}}" target="_blank">{{object.url}}</a></dd> - <dt>Priority:</dt> + <dt>Defect Priority:</dt> + <dd>{{object.get_defect_priority_text}}</dd> + + <dt>Defect Status:</dt> + <dd>{{object.get_defect_status_text}}</dd> + + <dt>Defect Resolution:</dt> + <dd>{{object.get_defect_resolution_text}}</dd> + + <dt>Duplicate Of:</dt> + <dd> + {% if object.duplicate_of %} + <a href="{% url 'defect_name' object.duplicate_of %}">{{object.duplicate_of}}</a> (<a href="{{SRTOOL_DEFECT_URLBASE}}/{{object.duplicate_of}}">{{SRTOOL_DEFECT_URLBASE}}/{{object.duplicate_of}}</a>) + {% endif %} + </dd> + + <dt>SRTool Priority:</dt> <dd>{{object.get_priority_text}}</dd> - <dt>Status:</dt> + <dt>SRTool Status:</dt> <dd>{{object.get_status_text}}</dd> - <dt>Resolution:</dt> - <dd>{{object.get_resolution_text}}</dd> + <dt>SRTool Outcome:</dt> + <dd>{{object.get_outcome_text}}</dd> <dt>Publish:</dt> <dd>{{object.publish}}</dd> @@ -74,6 +90,36 @@ </div> </div> +<div class="row" style="padding-left: 25px;"> + <h3>History</h3> + <table class="table table-striped table-condensed" data-testid="vuln-hyperlinks-table"> + <thead> + <tr> + <th>Comment</th> + <th>Date</th> + <th>Author</th> + </tr> + </thead> + {% if object.defect_history.all %} + {% for c in object.defect_history.all %} + <tr> + <td>{{ c.comment }}</td> + <td>{{ c.date }}</td> + <td>{{ c.author }}</td> + </tr> + {% endfor %} + {% else %} + <tr> + <td>No history found</td> + </tr> + {% endif %} + </table> +</div> + +<HR ALIGN="center" WIDTH="100%"> +Updated={{object.srt_updated}} + + <!-- Javascript support --> <script> |