diff options
Diffstat (limited to 'pydis_site/templates/wiki/includes/searchresult.html')
-rw-r--r-- | pydis_site/templates/wiki/includes/searchresult.html | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/pydis_site/templates/wiki/includes/searchresult.html b/pydis_site/templates/wiki/includes/searchresult.html index 350280a0..897ee4a6 100644 --- a/pydis_site/templates/wiki/includes/searchresult.html +++ b/pydis_site/templates/wiki/includes/searchresult.html @@ -1,22 +1,32 @@ -{% load wiki_tags i18n humanize %} - +{% load humanize %} <tr> <td> {% for urlpath in article.urlpath_set.all %} - <a href="{% url 'wiki:get' path=urlpath.path %}">{{ article.current_revision.title }}<br /><small class="has-text-grey">Slug: /{{ urlpath.path }}</small></a> + <a href="{% url 'wiki:get' path=urlpath.path %}"> + {{ article.current_revision.title }} + <br /> + <small class="has-text-grey">Slug: /{{ urlpath.path }}</small> + </a> {% empty %} - <a href="{% url 'wiki:get' article_id=article.id %}">{{ article.current_revision.title }}</a> + <a href="{% url 'wiki:get' article_id=article.id %}"> + {{ article.current_revision.title }} + </a> {% endfor %} {% if article.current_revision.deleted %} - <span class="fa fa-trash"></span> + <span class="icon"> + <i class="fas fa-trash"></i> + </span> {% endif %} {% if article.current_revision.locked %} - <span class="fa fa-lock"></span> + <span class="icon"> + <i class="fas fa-lock"></i> + </span> {% endif %} </td> + <td class="has-text-right"> {{ article.current_revision.created|naturaltime }} </td> |