Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Replace some glyphicons with font awesome

Roland Geider4a9622c373d0
diff --git a/wger/config/templates/language/view.html b/wger/config/templates/language/view.html
index 274fcb479..bcad9bd0a 100644
--- a/wger/config/templates/language/view.html
+++ b/wger/config/templates/language/view.html
@@ -86,7 +86,7 @@ in A).{% endblocktrans %}</p>
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/core/templates/license/list.html b/wger/core/templates/license/list.html
index 82069da5d..984bbefd5 100644
--- a/wger/core/templates/license/list.html
+++ b/wger/core/templates/license/list.html
@@ -10,7 +10,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/core/templates/misc/fragments/shariff_modal.html b/wger/core/templates/misc/fragments/shariff_modal.html
index 8a77312cf..273a49de5 100644
--- a/wger/core/templates/misc/fragments/shariff_modal.html
+++ b/wger/core/templates/misc/fragments/shariff_modal.html
@@ -14,7 +14,7 @@
<p>{% blocktrans %}Before you share links on social media you need to allow external access.{% endblocktrans %}</p>
<p>
<a href="{% url 'core:user:preferences' %}" id="toggle-ro-access" class="btn btn-success btn-sm">
- <span class="glyphicon glyphicon-ok"></span>
+ <span class="{% fa_class 'check' %}"></span>
{% trans "That's done here" %}
</a>
</p>
diff --git a/wger/core/templates/repetition_unit/list.html b/wger/core/templates/repetition_unit/list.html
index 52b73b17d..46a56b007 100644
--- a/wger/core/templates/repetition_unit/list.html
+++ b/wger/core/templates/repetition_unit/list.html
@@ -11,7 +11,7 @@
{% if unit.id != 1 and unit.id != 2 %}
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/core/templates/template.html b/wger/core/templates/template.html
index f305a5d44..0084f3c6c 100644
--- a/wger/core/templates/template.html
+++ b/wger/core/templates/template.html
@@ -123,7 +123,7 @@
<li class="divider"></li>
<li>
<a href="https://www.transifex.com/rge/wger-workout-manager/">
- <span class="glyphicon glyphicon-plus"></span>
+ <span class="{% fa_class 'plus' %}"></span>
{% trans "Translate" %}
</a>
</li>
diff --git a/wger/core/templates/user/overview.html b/wger/core/templates/user/overview.html
index 7ae6daeb4..b8cfbf708 100644
--- a/wger/core/templates/user/overview.html
+++ b/wger/core/templates/user/overview.html
@@ -486,9 +486,9 @@
<td>{% trans 'Include in inactive overview' %}</td>
<td style="text-align: right;">
{% if current_user.gymuserconfig.include_inactive %}
- <span class="glyphicon glyphicon-ok"></span>
+ <span class="{% fa_class 'check' %}"></span>
{% else %}
- <span class="glyphicon glyphicon-remove"></span>
+ <span class="{% fa_class 'times' %}"></span>
{% endif %}
</td>
</tr>
diff --git a/wger/core/templates/user/preferences.html b/wger/core/templates/user/preferences.html
index 5d05356ba..eef8e069e 100644
--- a/wger/core/templates/user/preferences.html
+++ b/wger/core/templates/user/preferences.html
@@ -118,7 +118,7 @@ $(function() {
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/core/templates/weight_unit/list.html b/wger/core/templates/weight_unit/list.html
index 651cb29ec..f825a6676 100644
--- a/wger/core/templates/weight_unit/list.html
+++ b/wger/core/templates/weight_unit/list.html
@@ -11,7 +11,7 @@
{% if unit.id != 1 and unit.id != 2 %}
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/exercises/templates/categories/admin-overview.html b/wger/exercises/templates/categories/admin-overview.html
index a70d03584..b2d2f99a8 100644
--- a/wger/exercises/templates/categories/admin-overview.html
+++ b/wger/exercises/templates/categories/admin-overview.html
@@ -10,7 +10,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/exercises/templates/equipment/list.html b/wger/exercises/templates/equipment/list.html
index a41ff3509..8fc9b1d8e 100644
--- a/wger/exercises/templates/equipment/list.html
+++ b/wger/exercises/templates/equipment/list.html
@@ -10,7 +10,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/exercises/templates/exercise/view.html b/wger/exercises/templates/exercise/view.html
index 228c85fd0..8bfdd455a 100644
--- a/wger/exercises/templates/exercise/view.html
+++ b/wger/exercises/templates/exercise/view.html
@@ -358,7 +358,7 @@ $(document).ready(function() {
{% if perms.exercises.change_exercise %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/exercises/templates/muscles/admin-overview.html b/wger/exercises/templates/muscles/admin-overview.html
index 86aaa3efe..81c3e6809 100644
--- a/wger/exercises/templates/muscles/admin-overview.html
+++ b/wger/exercises/templates/muscles/admin-overview.html
@@ -10,7 +10,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/gym/templates/admin_notes/list.html b/wger/gym/templates/admin_notes/list.html
index 2b13fbffb..ec1c6c99b 100644
--- a/wger/gym/templates/admin_notes/list.html
+++ b/wger/gym/templates/admin_notes/list.html
@@ -23,7 +23,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
{% if perms.gym.change_adminusernote %}
diff --git a/wger/gym/templates/contract/list.html b/wger/gym/templates/contract/list.html
index 30e469ae0..8739d764c 100644
--- a/wger/gym/templates/contract/list.html
+++ b/wger/gym/templates/contract/list.html
@@ -22,7 +22,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
{% if perms.gym.change_contract %}
diff --git a/wger/gym/templates/contract/view.html b/wger/gym/templates/contract/view.html
index bc470b145..245e2226f 100644
--- a/wger/gym/templates/contract/view.html
+++ b/wger/gym/templates/contract/view.html
@@ -24,9 +24,9 @@
<th style="width: 20%;">{% trans 'Contract is active' %}</th>
<td colspan="3">
{% if object.is_active %}
- <span class="glyphicon glyphicon-ok"></span>
+ <span class="{% fa_class 'check' %}"></span>
{% else %}
- <span class="glyphicon glyphicon-remove"></span>
+ <span class="{% fa_class 'times' %}"></span>
{% endif %}
</td>
</tr>
diff --git a/wger/gym/templates/contract_option/list.html b/wger/gym/templates/contract_option/list.html
index 3f308ffbc..873b0b7d7 100644
--- a/wger/gym/templates/contract_option/list.html
+++ b/wger/gym/templates/contract_option/list.html
@@ -22,7 +22,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
{% if perms.gym.change_contracttype %}
diff --git a/wger/gym/templates/contract_type/list.html b/wger/gym/templates/contract_type/list.html
index de02bff08..91ef22a38 100644
--- a/wger/gym/templates/contract_type/list.html
+++ b/wger/gym/templates/contract_type/list.html
@@ -22,7 +22,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
{% if perms.gym.change_contracttype %}
diff --git a/wger/gym/templates/document/list.html b/wger/gym/templates/document/list.html
index 6cfb6ce26..1f7cabd36 100644
--- a/wger/gym/templates/document/list.html
+++ b/wger/gym/templates/document/list.html
@@ -23,7 +23,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/gym/templates/gym/list.html b/wger/gym/templates/gym/list.html
index b4bb831fd..653960ff6 100644
--- a/wger/gym/templates/gym/list.html
+++ b/wger/gym/templates/gym/list.html
@@ -13,7 +13,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/gym/templates/gym/member_list.html b/wger/gym/templates/gym/member_list.html
index ca812bcca..a6b2bdf9f 100644
--- a/wger/gym/templates/gym/member_list.html
+++ b/wger/gym/templates/gym/member_list.html
@@ -59,7 +59,7 @@
{% if perms.gym.manage_gym or perms.gym.manage_gyms %}
<td style="text-align: right;">
<a href="{% url 'gym:gym:edit-user-permission' current_user.obj.pk %}" class="btn btn-default btn-xs wger-modal-dialog">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</a>
</td>
{% endif %}
@@ -192,9 +192,9 @@
<td>{% trans "Overview of inactive members" %}</td>
<td style="text-align: right;">
{% if user.gymadminconfig.overview_inactive %}
- <span class="glyphicon glyphicon-ok"></span>
+ <span class="{% fa_class 'check' %}"></span>
{% else %}
- <span class="glyphicon glyphicon-remove"></span>
+ <span class="{% fa_class 'times' %}"></span>
{% endif %}
</td>
</tr>
diff --git a/wger/manager/templates/calendar/day.html b/wger/manager/templates/calendar/day.html
index ec8637fe4..b9def611a 100644
--- a/wger/manager/templates/calendar/day.html
+++ b/wger/manager/templates/calendar/day.html
@@ -60,7 +60,7 @@
<span class="editoptions">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/manager/templates/calendar/month.html b/wger/manager/templates/calendar/month.html
index 788f166e8..36c94b21f 100644
--- a/wger/manager/templates/calendar/month.html
+++ b/wger/manager/templates/calendar/month.html
@@ -73,7 +73,7 @@ $(document).ready(function() {
<span class="editoptions">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/manager/templates/calendar/partial_overview_table.html b/wger/manager/templates/calendar/partial_overview_table.html
index 5abddfc7c..de39086d8 100644
--- a/wger/manager/templates/calendar/partial_overview_table.html
+++ b/wger/manager/templates/calendar/partial_overview_table.html
@@ -14,19 +14,19 @@
<ul class="dropdown-menu">
<li>
<a href="{% url 'manager:session:edit' value.session.pk %}" class="wger-modal-dialog">
- <span class="glyphicon glyphicon-pencil"></span>
+ <span class="{% fa_class 'pencil-square-o' %}"></span>
{% trans "Edit" %}
</a>
</li>
<li>
<a href="{% url 'manager:session:delete' value.session.pk %}" class="wger-modal-dialog">
- <span class="glyphicon glyphicon-trash"></span>
+ <span class="{% fa_class 'trash' %}"></span>
{% trans "Delete" %}
</a>
</li>
<li>
<a href="{% url 'manager:session:delete' value.session.pk 'logs' %}" class="wger-modal-dialog">
- <span class="glyphicon glyphicon-trash"></span>
+ <span class="{% fa_class 'trash' %}"></span>
{% trans "Delete with logs" %}
</a>
</li>
diff --git a/wger/manager/templates/mobile/schedule/view.html b/wger/manager/templates/mobile/schedule/view.html
index d9b8164cd..caa4cd32c 100644
--- a/wger/manager/templates/mobile/schedule/view.html
+++ b/wger/manager/templates/mobile/schedule/view.html
@@ -98,7 +98,7 @@
</a>
{% endfor %}
<a href="{% url 'manager:step:add' schedule.id %}" class="list-group-item list-group-item-success wger-modal-dialog">
- <span class="glyphicon glyphicon-plus"></span>
+ <span class="{% fa_class 'plus' %}"></span>
{% trans "Add workout" %}
</a>
</div>
@@ -247,7 +247,7 @@ an appointment for each training day with the appropriate exercises.{% endblockt
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/manager/templates/mobile/workout/view.html b/wger/manager/templates/mobile/workout/view.html
index c1a3a90a3..205e5c603 100644
--- a/wger/manager/templates/mobile/workout/view.html
+++ b/wger/manager/templates/mobile/workout/view.html
@@ -214,7 +214,7 @@ an appointment for each training day with the appropriate exercises.{% endblockt
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/manager/templates/schedule/view.html b/wger/manager/templates/schedule/view.html
index 1b85b4adb..77a10f284 100644
--- a/wger/manager/templates/schedule/view.html
+++ b/wger/manager/templates/schedule/view.html
@@ -308,7 +308,7 @@ an appointment for each training day with the appropriate exercises.{% endblockt
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/manager/templates/workout/view.html b/wger/manager/templates/workout/view.html
index 0f81b5801..9e8704589 100644
--- a/wger/manager/templates/workout/view.html
+++ b/wger/manager/templates/workout/view.html
@@ -209,7 +209,7 @@ an appointment for each training day with the appropriate exercises.{% endblockt
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/nutrition/templates/ingredient/view.html b/wger/nutrition/templates/ingredient/view.html
index 8c623ddf3..0aea53d28 100644
--- a/wger/nutrition/templates/ingredient/view.html
+++ b/wger/nutrition/templates/ingredient/view.html
@@ -203,7 +203,7 @@ the search.{% endblocktrans %}
{{unit.amount}} {{unit.unit.name}} = {{unit.gram}}g
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
@@ -236,7 +236,7 @@ the search.{% endblocktrans %}
{% if perms.nutrition.delete_ingredient %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/nutrition/templates/mobile/plan/view.html b/wger/nutrition/templates/mobile/plan/view.html
index 62e8413c8..e6fb9f012 100644
--- a/wger/nutrition/templates/mobile/plan/view.html
+++ b/wger/nutrition/templates/mobile/plan/view.html
@@ -178,7 +178,7 @@ $(document).ready(function() {
{% if forloop.last and is_owner %}
<a href="{% url 'nutrition:meal_item:add' meal.id %}"
class="list-group-item list-group-item-success">
- <span class="glyphicon glyphicon-plus"></span>
+ <span class="{% fa_class 'plus' %}"></span>
{% trans "Add item to meal" %}
</a>
{% endif %}
@@ -342,7 +342,7 @@ $(document).ready(function() {
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.html
index 9b7058ede..dc9f952c8 100644
--- a/wger/nutrition/templates/plan/view.html
+++ b/wger/nutrition/templates/plan/view.html
@@ -285,7 +285,7 @@ function custom_modal_init()
{% block options %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
diff --git a/wger/nutrition/templates/units/list.html b/wger/nutrition/templates/units/list.html
index d6b4d140d..44e19b02d 100644
--- a/wger/nutrition/templates/units/list.html
+++ b/wger/nutrition/templates/units/list.html
@@ -12,7 +12,7 @@
<li class="list-group-item ">
<div class="btn-group pull-right">
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
diff --git a/wger/weight/templates/overview.html b/wger/weight/templates/overview.html
index eeb3ed469..4ef398c3b 100644
--- a/wger/weight/templates/overview.html
+++ b/wger/weight/templates/overview.html
@@ -99,7 +99,7 @@
{% if is_owner %}
<div class="btn-group">
<button type="button" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="glyphicon glyphicon-cog"></span>
+ <span class="{% fa_class 'cog' %}"></span>
{% trans "Options" %}
</button>
<ul class="dropdown-menu">