Commit 59d6e489 authored by ViolanteCodes's avatar ViolanteCodes
Browse files

added conditional logic (required updated_at date) to display summary block

parent 04de1056
...@@ -21,7 +21,10 @@ ...@@ -21,7 +21,10 @@
({{results.project.id}}) / issues / #{{results.issue.iid}} ({{results.project.id}}) / issues / #{{results.issue.iid}}
</p> </p>
<p class="col-auto text-muted small mb-0 pb-0 pt-0 text-right"> <p class="col-auto text-muted small mb-0 pb-0 pt-0 text-right">
{% if results.issue.create_at %}
Created {{results.issue.created_at|pretty_datetime}} by @{{results.issue.author.username}} Created {{results.issue.created_at|pretty_datetime}} by @{{results.issue.author.username}}
{% else %}
{% endif %}
</p> </p>
</div> </div>
<hr class="mb-0 mt-0"> <hr class="mb-0 mt-0">
...@@ -75,7 +78,7 @@ ...@@ -75,7 +78,7 @@
{% block content %} {% block content %}
<!-- Issue Summary Block --> <!-- Issue Summary Block -->
{% if results.issue %} {% if results.issue.updated_at %}
<div class="row mt-3"> <div class="row mt-3">
<div class="col-12"> <div class="col-12">
<h4 class="card-title">Issue Summary</h4> <h4 class="card-title">Issue Summary</h4>
...@@ -86,6 +89,7 @@ ...@@ -86,6 +89,7 @@
</ul> </ul>
</div> </div>
</div> </div>
{% else %}
{% endif %} {% endif %}
<!-- Generate a Back to Landing URL Link --> <!-- Generate a Back to Landing URL Link -->
{% url 'user-landing' results.user_identifier as go_back_url %} {% url 'user-landing' results.user_identifier as go_back_url %}
...@@ -101,7 +105,7 @@ ...@@ -101,7 +105,7 @@
<!-- Note Header Block --> <!-- Note Header Block -->
<div class="row mt-5"> <div class="row mt-5">
<div class="col-12 p-2"> <div class="col-12 p-2">
<h4 class="card-title">Project Notes</h4> <h4 class="card-title">Issue Notes</h4>
</div> </div>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment