diff options
Diffstat (limited to 'lib/srtgui/templates/product.html')
-rw-r--r-- | lib/srtgui/templates/product.html | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/lib/srtgui/templates/product.html b/lib/srtgui/templates/product.html new file mode 100644 index 00000000..e26bb2fe --- /dev/null +++ b/lib/srtgui/templates/product.html @@ -0,0 +1,84 @@ +{% 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 'products' %}">Products</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>Product {{object.long_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>Name:</dt> + <dd>{{object.name}}</dd> + + <dt>Version:</dt> + <dd>{{object.version}}</dd> + + <dt>Profile:</dt> + <dd>{{object.profile}}</dd> + + <dt>Cpe:</dt> + <dd>{{object.cpe}}</dd> + + <dt>Srt Cpe:</dt> + <dd>{{object.srt_cpe}}</dd> + + <dt>Defect Prefix:</dt> + <dd>{{object.defect_prefix }}</dd> + + <dt>Investigations Count/Link:</dt> + <dd> + {% if object.product_investigation.all.count %} + <a href="{% url 'investigations' %}?filter=is_product:{{object.defect_prefix}}&" class="btn btn-info" > + {{object.product_investigation.all.count}} + </a> + {% else %}0{% endif %} + </dd> + + <dt>Defects Count/Link:</dt> + <dd> + {% if object.product_defect.all.count %} + <a href="{% url 'defects' %}?filter=is_product:{{object.defect_prefix}}&" class="btn btn-info" > + {{object.product_defect.all.count}} + </a> + {% else %}0{% endif %} + </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 %} |