mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
gitweb: Use inline SVG icons
Tests: - All the icons appear as before in both light/dark themes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
d8909277a5
commit
a2c362a1b3
@ -6,6 +6,7 @@
|
|||||||
{% load bootstrap %}
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
{% load plinth_extras %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -15,7 +16,7 @@
|
|||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<a href="{% url 'gitweb:create' %}" class="btn btn-default"
|
<a href="{% url 'gitweb:create' %}" class="btn btn-default"
|
||||||
role="button" title="{% trans 'Create repository' %}">
|
role="button" title="{% trans 'Create repository' %}">
|
||||||
<span class="fa fa-plus" aria-hidden="true"></span>
|
{% icon 'plus' %}
|
||||||
{% trans 'Create repository' %}
|
{% trans 'Create repository' %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -44,20 +45,19 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if repo.access == 'private' %}
|
{% if repo.access == 'private' %}
|
||||||
<span class="repo-private-icon fa fa-lock secondary"
|
{% icon 'lock' class='svg-icon repo-private-icon secondary' %}
|
||||||
aria-label="private"></span>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="repo-edit btn btn-sm btn-default secondary {% if 'clone_progress' in repo %} disabled {% endif %}"
|
<a class="repo-edit btn btn-sm btn-default secondary {% if 'clone_progress' in repo %} disabled {% endif %}"
|
||||||
href="{% url 'gitweb:edit' repo.name %}">
|
href="{% url 'gitweb:edit' repo.name %}">
|
||||||
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
|
{% icon 'pencil-square-o' %}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="{% url 'gitweb:delete' repo.name %}"
|
<a href="{% url 'gitweb:delete' repo.name %}"
|
||||||
class="btn btn-default btn-sm secondary {% if 'clone_progress' in repo %} disabled {% endif %}"
|
class="btn btn-default btn-sm secondary {% if 'clone_progress' in repo %} disabled {% endif %}"
|
||||||
role="button"
|
role="button"
|
||||||
title="{% blocktrans %}Delete repository {{ repo.name }}{% endblocktrans %}">
|
title="{% blocktrans %}Delete repository {{ repo.name }}{% endblocktrans %}">
|
||||||
<span class="fa fa-trash-o" aria-hidden="true"></span>
|
{% icon 'trash-o' %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user