Template tweaks.

This commit is contained in:
Pēteris Caune 2019-01-29 19:27:14 +02:00
parent 4ff1654806
commit 282c3d39cb
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
2 changed files with 9 additions and 13 deletions

View File

@ -69,27 +69,23 @@
<table id="my-projects" class="table"> <table id="my-projects" class="table">
<tr> <tr>
<th>Project</th> <th>Project</th>
<th>Checks</th> <th>My role</th>
<th>My Role</th>
<th></th> <th></th>
</tr> </tr>
{% for project in profile.projects %} {% for project in profile.projects %}
<tr> <tr>
<td> <td>
<div class="name">{{ project }}</div> <div class="name">
</td> <a href="{% url 'hc-checks' project.code %}">
<td> {{ project }}
<a class="num-checks" href="{% url 'hc-checks' project.code %}"> </a>
{% with project.check_set.count as n %} </div>
{{ n }} check{{ n|pluralize }}
{% endwith %}
</a>
</td> </td>
<td> <td>
{% if project.owner == request.user %} {% if project.owner == request.user %}
Owner Owner
{% else %} {% else %}
Member Collaborator
{% endif %} {% endif %}
</td> </td>
<td> <td>
@ -181,7 +177,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p> <p>
You are about to leave project <strong id="leave-project-name"></strong>. You are about to leave the project <strong id="leave-project-name"></strong>.
You will lose access to its checks and integrations. You will lose access to its checks and integrations.
</p> </p>
<p>Are you sure?</p> <p>Are you sure?</p>

View File

@ -19,7 +19,7 @@
{% if checks %} {% if checks %}
{% include "front/my_checks_desktop.html" %} {% include "front/my_checks_desktop.html" %}
{% else %} {% else %}
<div class="alert alert-info">You don't have any checks yet.</div> <div class="alert alert-info">The project <strong>{{ project }}</strong> does not have any checks yet.</div>
{% endif %} {% endif %}
</div> </div>
</div> </div>