Commit 0fe0c2fa authored by Alex Pyrgiotis's avatar Alex Pyrgiotis
Browse files

admin: Fix typo in deleted entries tooltip

Remove the "None." string that appeared on every category (besides
projects) due to a bad template tag. Also, add the tooltip in a
separate html file for easier editing.

Fixes apyrgio/synnefo#288
parent 45b6d887
......@@ -16,21 +16,9 @@
{{ type|display_list_type }}
<em> of '{{ main_item|repr }}'</em>
{% if association.excluded or association.excluded|add:association.showing < association.total %}
<span class="popover-dismiss"
data-html="true"
data-trigger="hover"
data-toggle="popover"
data-content="
{% if association.excluded %}
Excluding <b>{{ association.excluded }} {{ association|present_excluded }}</b> from the results.
<br>
{% endif %}
{% if association.excluded|add:association.showing < association.total %}
Showing <b>{{ association.showing }} out of {{ association.total }}</b> total entries.<br>
{% endif %}
To view all entries, visit the {{ type|display_list_type }} tab in navigation. {{ association|show_more_exception_message }}"
">
!
<span class="popover-dismiss" data-html="true" data-trigger="hover"
data-toggle="popover" data-content='{% include "admin/tooltip_associations.html" %}'>
!
</span>
{% endif %}
</h3>
......
{% load admin_tags %}
{% if association.excluded %}
Excluding <b>{{ association.excluded }} {{ association|present_excluded}}</b>
from the results.<br>
{% endif %}
{% if association.excluded|add:association.showing < association.total %}
Showing <b>{{ association.showing }} out of {{ association.total }}</b> total entries.<br>
{% endif %}
To view all entries, visit the {{ type|display_list_type }} tab in navigation.
{{ association|show_more_exception_message }}
......@@ -407,5 +407,5 @@ def label_to_icon(filter_name, filter_label):
def show_more_exception_message(assoc):
"""Show an extra message for an instance in the popover for "Show More"."""
if assoc.type == "user":
return """
</br>Alternatively, you may consult the "Members" tab of the project."""
return """</br>Alternatively, you may consult the "Members" tab of the project."""
return ""
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