0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-11 15:51:19 +00:00

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
templates

View file

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

View file

@ -19,7 +19,7 @@
{% if checks %}
{% include "front/my_checks_desktop.html" %}
{% 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 %}
</div>
</div>