diff options
Diffstat (limited to 'lib/srtgui/templates/defect.html')
-rw-r--r-- | lib/srtgui/templates/defect.html | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/lib/srtgui/templates/defect.html b/lib/srtgui/templates/defect.html new file mode 100644 index 00000000..aa13b0dd --- /dev/null +++ b/lib/srtgui/templates/defect.html @@ -0,0 +1,86 @@ +{% extends "base.html" %} + +{% load projecttags %} + +{% block title %} {{object.name}} - SRTool {% endblock %} + +{% block pagecontent %} + +<div class="row"> + <!-- Breadcrumbs --> + <div class="col-md-12"> + <ul class="breadcrumb" id="breadcrumb"> + <li><a href="{% url 'landing' %}">Home</a></li><span class="divider">→</span> + <li><a href="{% url 'defects' %}">Defects</a></li><span class="divider">→</span> + <li>{{object.name}}</li> + </ul> + </div> +</div> + +<!-- Begin container --> + +<div class="row"> + <div class="col-md-12"> + <div class="page-header build-data"> + <h1>Defect {{object.name}} Detail</h1> + </div> + </div> +</div> + +<div class="row"> + <div class="col-md-5"> + <div class="well"> + <h2>Quick Info</h2> + <dl class="dl-horizontal"> + <dt>Summary:</dt> + <dd>{{object.summary}}</dd> + + <dt>URL:</dt> + <dd><a href="{{object.url}}" id="dataid_{{object.id}}" target="_blank">{{object.url}}</a></dd> + + <dt>Priority:</dt> + <dd>{{object.get_priority_text}}</dd> + + <dt>Status:</dt> + <dd>{{object.get_status_text}}</dd> + + <dt>Resolution:</dt> + <dd>{{object.get_resolution_text}}</dd> + + <dt>Publish:</dt> + <dd>{{object.publish}}</dd> + + <dt>Release Version:</dt> + <dd>{{object.release_version}}</dd> + + <dt>Investigations:</dt> + <dd> + {% for ji in object.defect_to_investigation.all %} + {% if not forloop.first %}| {% endif %}<a href="{% url 'investigation' ji.investigation.id %}" target="_blank">{{ji.investigation.name}} </a> + {% endfor %} + </dd> + + <dt>Product:</dt> + <dd><a href="{% url 'product' object.product.id %}">{{object.product.long_name}}</a></dd> + + <dt>date_created:</dt> + <dd>{{object.date_created}}</dd> + + <dt>date_updated:</dt> + <dd>{{object.date_updated}}</dd> + + </dl> + </div> + </div> +</div> + + +<!-- Javascript support --> +<script> + $(document).ready(function() { + /* Set the report link */ + $('#report_link').attr('href',"{% url 'report' request.resolver_match.url_name %}?record_list={{object.id}}"); + }); +</script> + +{% endblock %} |