Commit cacc1a83 authored by ViolanteCodes's avatar ViolanteCodes
Browse files

added new {% if %} blocks to project_detail.html template that leverage the...

added new {% if %} blocks to project_detail.html template that leverage the new open_issues_flag and closed_issues_flag in the ProjectDetailView context
parent 6b41855d
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
<!-- Close out the h3 block from extended template to make smaller text on top first. -->
</h3>
<div class="row justify-content-between">
    <p class="col-auto mb-0 small pb-0 pt-0">{{object.name_with_namespace}} ({{object.gitlab_id}})</p>
    <p class="col-auto mb-0 small pb-0 pt-0">{{object.name_with_namespace}} (Project # {{object.gitlab_id}})</p>
    <p class="col-auto text-muted small mb-0 pb-0 pt-0 text-right"><a href="{{object.url}}">View this project on Gitlab</a></p>
</div>
<hr class="mt-0">
@@ -49,11 +49,11 @@
</div>

<!-- Create the Issues List Block For Open Issues-->
<div class="row mb-3">
  <div class="col-12">
    <p>Open Issues:</p>
<div class="row">
  <div class="col-12 mt-5">
    <h4 class="text-primary">Open Issues</h4>
    {% if issues_list %}
      <table class="table table-sm">
      <table class="table table-sm mt-3">
        {% for issue in issues_list %}
          {% if issue.state == "opened" %}
          <tr>
@@ -85,8 +85,9 @@
          {% endif %}
        {% endfor %}
      </table>
    {% else %}
      <p> No open issues at this time. </p>      
    {% endif %}
    {% if open_issues_flag == False %}
      <p class="ml-3 text-muted"> No open issues at this time. </p>      
    {% endif %}
  </div>
</div>
@@ -94,9 +95,9 @@
<!-- Create the Issues List Block for closed issues-->
<div class="row mt-5">
  <div class="col-12">
    <p>Closed Issues:</p>
    <h4 class="text-primary">Closed Issues:</h4>
    {% if issues_list %}
      <table class="table table-sm">
      <table class="table table-sm mt-3">
        {% for issue in issues_list %}
          {% if issue.state == "closed" %}
          <tr>
@@ -124,8 +125,9 @@
          {% endif %}
        {% endfor %}
      </table>
    {% else %}
      <p> No open issues at this time. </p>      
    {% endif %}
    {% if closed_issues_flag == False %}
    <p class="ml-3 text-muted"> No closed issues at this time. </p>      
    {% endif %}
  </div>
</div>