Skip to content

Commit

Permalink
Add missing row-cards-pf container
Browse files Browse the repository at this point in the history
b/c this is how the template is supposed to be designed
  • Loading branch information
atodorov committed Apr 15, 2020
1 parent 3945d73 commit 2bca80a
Showing 1 changed file with 63 additions and 61 deletions.
124 changes: 63 additions & 61 deletions tcms/testruns/templates/testruns/get.html
Expand Up @@ -18,72 +18,74 @@ <h1 class="col-md-12" style="margin-top: 0">
>TR-{{ object.pk }}:</span> {{ object.summary }}
</h1>

<div class="col-xs-12 col-sm-12 col-md-3">
<div class="card-pf card-pf-accented card-pf-aggregate-status">

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa pficon-topology"></span>{% trans 'Test plan' %}:
<a href="{% url 'test_plan_url_short' object.plan.pk %}">TP-{{ object.plan.pk }}: {{ object.plan.name }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-shopping-cart"></span>{% trans 'Product' %}:
<a href="{% url 'testruns-search' %}?product={{ object.product_version.product_id }}" title="Search test runs of {{ object.product_version.product }}">{{ object.product_version.product }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-random"></span>{% trans 'Version' %}:
<a href="{% url 'testruns-search' %}?product={{ object.plan.product_id }}&product_version={{ object.plan.product_version_id }}" title="Search test runs of {{ object.plan.product_version.value }}">{{ object.plan.product_version.value }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-wrench"></span>{% trans 'Build' %}:
<a href="{% url 'testruns-search' %}?product={{ object.plan.product_id }}&product_version={{ object.plan.product_version_id }}&build={{ object.build_id }}" title="Search test runs of {{ object.build_id }}">{{ object.build }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa pficon-user"></span>{% trans 'Manager' %}:
<a href="{% url 'tcms-profile' object.manager.username %}">{{ object.manager.username }}</a>
</h2>

{% if object.default_tester %}
<div class="row row-cards-pf">
<div class="col-xs-12 col-sm-12 col-md-3">
<div class="card-pf card-pf-accented card-pf-aggregate-status">

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa pficon-topology"></span>{% trans 'Test plan' %}:
<a href="{% url 'test_plan_url_short' object.plan.pk %}">TP-{{ object.plan.pk }}: {{ object.plan.name }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-shopping-cart"></span>{% trans 'Product' %}:
<a href="{% url 'testruns-search' %}?product={{ object.product_version.product_id }}" title="Search test runs of {{ object.product_version.product }}">{{ object.product_version.product }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-random"></span>{% trans 'Version' %}:
<a href="{% url 'testruns-search' %}?product={{ object.plan.product_id }}&product_version={{ object.plan.product_version_id }}" title="Search test runs of {{ object.plan.product_version.value }}">{{ object.plan.product_version.value }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-wrench"></span>{% trans 'Build' %}:
<a href="{% url 'testruns-search' %}?product={{ object.plan.product_id }}&product_version={{ object.plan.product_version_id }}&build={{ object.build_id }}" title="Search test runs of {{ object.build_id }}">{{ object.build }}</a>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-search"></span>{% trans 'Default tester' %}:
<a href="{% url 'tcms-profile' object.default_tester.username %}">{{ object.default_tester.username }}</a>
<span class="fa pficon-user"></span>{% trans 'Manager' %}:
<a href="{% url 'tcms-profile' object.manager.username %}">{{ object.manager.username }}</a>
</h2>
{% endif %}

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-spinner"></span>{% trans 'Status' %}:
<input class="bootstrap-switch" id="status_button" type="checkbox"
{% if not object.stop_date %}checked{% endif %}
{% if not perms.testruns.change_testrun %}disabled{% endif %}>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-calendar"></span>{% trans 'Started at' %}:
{{ object.start_date }}
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-calendar-check-o"></span>{% trans 'Finished at' %}:
{% if object.stop_date %}
{{ object.stop_date }}
{% else %}
-

{% if object.default_tester %}
<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-search"></span>{% trans 'Default tester' %}:
<a href="{% url 'tcms-profile' object.default_tester.username %}">{{ object.default_tester.username }}</a>
</h2>
{% endif %}
</h2>

<div class="card-pf-body"></div>
<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-spinner"></span>{% trans 'Status' %}:
<input class="bootstrap-switch" id="status_button" type="checkbox"
{% if not object.stop_date %}checked{% endif %}
{% if not perms.testruns.change_testrun %}disabled{% endif %}>
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-calendar"></span>{% trans 'Started at' %}:
{{ object.start_date }}
</h2>

<h2 class="card-pf-title" style="text-align: left">
<span class="fa fa-calendar-check-o"></span>{% trans 'Finished at' %}:
{% if object.stop_date %}
{{ object.stop_date }}
{% else %}
-
{% endif %}
</h2>

<div class="card-pf-body"></div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
{% include 'include/tags_card.html' with add_perm=perms.testruns.add_testruntag %}
</div>

<div class="col-xs-12 col-sm-6 col-md-6">
{% include 'include/attachments.html' %}
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
{% include 'include/tags_card.html' with add_perm=perms.testruns.add_testruntag %}
</div>

<div class="col-xs-12 col-sm-6 col-md-6">
{% include 'include/attachments.html' %}
</div>
</div> <!-- /row -->
</div>


Expand Down

0 comments on commit 2bca80a

Please sign in to comment.