Skip to content

Commit

Permalink
Additional message when filter is applied but no projects found
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius O committed Mar 8, 2016
1 parent eea7018 commit 76cb4bc
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions geokey_webresources/templates/wr_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,21 @@ <h3>
<p class="meta">Created by {{ project.creator }} {{ project.created_at|timesince }} ago</p>
</li>
{% empty %}
<li>
<div class="well empty-list">
<p class="lead">We couldn't find any projects you are eligible to manage.</p>
<p>You can create a new project if you want to add web resources to it.</p>
<a href="{% url 'admin:project_create' %}" class="btn btn-success">Create a new project</a>
</div>
</li>
{% if request.GET.filter %}
<li>
<div class="well empty-list">
<p class="lead">We couldn't find any projects matching the selected filter.</p>
</div>
</li>
{% else %}
<li>
<div class="well empty-list">
<p class="lead">We couldn't find any projects you are eligible to manage.</p>
<p>You can create a new project if you want to add web resources to it.</p>
<a href="{% url 'admin:project_create' %}" class="btn btn-success">Create a new project</a>
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
Expand Down

0 comments on commit 76cb4bc

Please sign in to comment.