Font Awesome V5 Update

This commit is contained in:
Ariel Rin 2020-06-11 03:33:37 +00:00
parent 71fb19aa22
commit 35407a2108
16 changed files with 24 additions and 23 deletions

View File

@ -8,7 +8,7 @@ class CorpStats(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, MenuItemHook.__init__(self,
_('Corporation Stats'), _('Corporation Stats'),
'fa fa-share-alt fa-fw', 'fas fa-share-alt fa-fw',
'corputils:view', 'corputils:view',
navactive=['corputils:']) navactive=['corputils:'])

View File

@ -6,7 +6,7 @@ from allianceauth.services.hooks import MenuItemHook, UrlHook
@hooks.register('menu_item_hook') @hooks.register('menu_item_hook')
def register_menu(): def register_menu():
return MenuItemHook(_('Fleet Activity Tracking'), 'fa fa-users fa-lightbulb-o fa-fw', 'fatlink:view', return MenuItemHook(_('Fleet Activity Tracking'), 'fas fa-users fa-fw', 'fatlink:view',
navactive=['fatlink:']) navactive=['fatlink:'])

View File

@ -36,7 +36,7 @@
<tr> <tr>
<td class="text-right"> <td class="text-right">
{% if member.is_leader %} {% if member.is_leader %}
<i class="fa fa-star"></i>&nbsp; <i class="fas fa-star"></i>&nbsp;
{% endif %} {% endif %}
<img src="{{ member.main_char|character_portrait_url:32 }}" class="img-circle"> <img src="{{ member.main_char|character_portrait_url:32 }}" class="img-circle">
</td> </td>
@ -69,7 +69,7 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<p class="text-muted"><i class="fa fa-star"></i>: Group leader</p> <p class="text-muted"><i class="fas fa-star"></i>: Group leader</p>
</div> </div>
{% else %} {% else %}
<div class="alert alert-warning text-center"> <div class="alert alert-warning text-center">

View File

@ -8,7 +8,7 @@ class ApplicationsMenu(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, MenuItemHook.__init__(self,
_('Applications'), _('Applications'),
'fa fa-file-o fa-fw', 'far fa-file fa-fw',
'hrapplications:index', 'hrapplications:index',
navactive=['hrapplications:']) navactive=['hrapplications:'])

View File

@ -7,7 +7,7 @@ from . import urls
class OpTimerboardMenu(MenuItemHook): class OpTimerboardMenu(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, _('Fleet Operations'), MenuItemHook.__init__(self, _('Fleet Operations'),
'fa fa-exclamation fa-fw', 'fas fa-exclamation fa-fw',
'optimer:view', 'optimer:view',
navactive=['optimer:']) navactive=['optimer:'])

View File

@ -8,7 +8,7 @@ class PermissionsTool(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, MenuItemHook.__init__(self,
'Permissions Audit', 'Permissions Audit',
'fa fa-key fa-id-card', 'fas fa-id-card fa-fw',
'permissions_tool:overview', 'permissions_tool:overview',
order=400, order=400,
navactive=['permissions_tool:']) navactive=['permissions_tool:'])

View File

@ -41,7 +41,7 @@ class PermissionsToolViewsTestCase(WebTest):
response_content = response.content.decode('utf-8') response_content = response.content.decode('utf-8')
self.assertInHTML('<li><a class="active" href="/permissions/overview/">' self.assertInHTML('<li><a class="active" href="/permissions/overview/">'
'<i class="fa fa-key fa-id-card"></i> Permissions Audit</a></li>', response_content) '<i class="fas fa-id-card fa-fw"></i> Permissions Audit</a></li>', response_content)
def test_permissions_overview(self): def test_permissions_overview(self):
self.app.set_user(self.member) self.app.set_user(self.member)

View File

@ -9,7 +9,7 @@ class Services(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, MenuItemHook.__init__(self,
_('Services'), _('Services'),
'fa fa-cogs fa-fw', 'fas fa-cogs fa-fw',
'services:services', 100) 'services:services', 100)
def render(self, request): def render(self, request):

View File

@ -76,7 +76,7 @@ class JabberBroadcast(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, MenuItemHook.__init__(self,
_('Jabber Broadcast'), _('Jabber Broadcast'),
'fa fa-lock fa-fw fa-bullhorn', 'fas fa-bullhorn fa-fw',
'openfire:broadcast') 'openfire:broadcast')
def render(self, request): def render(self, request):
@ -89,7 +89,7 @@ class FleetBroadcastFormatter(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, MenuItemHook.__init__(self,
_('Fleet Broadcast Formatter'), _('Fleet Broadcast Formatter'),
'fa fa-lock fa-fw fa-space-shuttle', 'fas fa-space-shuttle fa-fw',
'services:fleet_format_tool') 'services:fleet_format_tool')
def render(self, request): def render(self, request):

View File

@ -7,7 +7,7 @@ from . import urls
class SrpMenu(MenuItemHook): class SrpMenu(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, _('Ship Replacement'), MenuItemHook.__init__(self, _('Ship Replacement'),
'fa fa-money fa-fw', 'far fa-money-bill-alt fa-fw',
'srp:management', 'srp:management',
navactive=['srp:']) navactive=['srp:'])

View File

@ -131,7 +131,7 @@ ESC to cancel{% endblocktrans %}"id="blah"></i></th>
<div class="checkbox"> <div class="checkbox">
<label style="font-size: 1.5em"> <label style="font-size: 1.5em">
<input type="checkbox" name="{{srpfleetrequest.id}}"> <input type="checkbox" name="{{srpfleetrequest.id}}">
<span class="cr"><i class="cr-icon fa fa-check"></i></span> <span class="cr"><i class="cr-icon fas fa-check"></i></span>
</label> </label>
</div> </div>
</td> </td>

View File

@ -20,7 +20,7 @@
</div> </div>
<div class="text-right" style="position:absolute;bottom:5px;right:5px;"> <div class="text-right" style="position:absolute;bottom:5px;right:5px;">
<a href="https://gitlab.com/allianceauth/allianceauth/issues"><span class="label" style="background-color:#e65328;"> <a href="https://gitlab.com/allianceauth/allianceauth/issues"><span class="label" style="background-color:#e65328;">
<i class="fa fa-gitlab" aria-hidden="true"></i> Powered by GitLab</span> <i class="fab fa-gitlab" aria-hidden="true"></i> Powered by GitLab</span>
</a> </a>
</div> </div>
</div> </div>
@ -40,7 +40,7 @@
<h5 class="list-group-item-heading">{% trans "Latest Stable" %}</h5> <h5 class="list-group-item-heading">{% trans "Latest Stable" %}</h5>
<p class="list-group-item-text"> <p class="list-group-item-text">
<a href="https://gitlab.com/allianceauth/allianceauth/tags" style="color:#000"> <a href="https://gitlab.com/allianceauth/allianceauth/tags" style="color:#000">
<i class="fa fa-gitlab hidden-xs" aria-hidden="true"></i> <i class="fab fa-gitlab hidden-xs" aria-hidden="true"></i>
{{ latest_patch_version }} {{ latest_patch_version }}
</a> </a>
{% if not latest_patch %}<br>{% trans "Update available" %}{% endif %} {% if not latest_patch %}<br>{% trans "Update available" %}{% endif %}
@ -51,7 +51,7 @@
<h5 class="list-group-item-heading">{% trans "Latest Pre-Release" %}</h5> <h5 class="list-group-item-heading">{% trans "Latest Pre-Release" %}</h5>
<p class="list-group-item-text"> <p class="list-group-item-text">
<a href="https://gitlab.com/allianceauth/allianceauth/tags" style="color:#000"> <a href="https://gitlab.com/allianceauth/allianceauth/tags" style="color:#000">
<i class="fa fa-gitlab hidden-xs" aria-hidden="true"></i> <i class="fab fa-gitlab hidden-xs" aria-hidden="true"></i>
{{ latest_beta_version }} {{ latest_beta_version }}
</a> </a>
<br>{% trans "Pre-Release available" %} <br>{% trans "Pre-Release available" %}

View File

@ -7,12 +7,12 @@
<li> <li>
<a class="{% navactive request 'authentication:dashboard' %}" <a class="{% navactive request 'authentication:dashboard' %}"
href="{% url 'authentication:dashboard' %}"> href="{% url 'authentication:dashboard' %}">
<i class="fa fa-dashboard fa-fw"></i> {% trans "Dashboard" %} <i class="fas fa-tachometer-alt fa-fw"></i> {% trans "Dashboard" %}
</a> </a>
</li> </li>
<li> <li>
<a class="{% navactive request 'groupmanagement:groups' %}" href="{% url 'groupmanagement:groups' %}"> <a class="{% navactive request 'groupmanagement:groups' %}" href="{% url 'groupmanagement:groups' %}">
<i class="fa fa-cogs fa-fw fa-sitemap"></i> {% trans "Groups" %} <i class="fas fa-sitemap fa-fw"></i> {% trans "Groups" %}
</a> </a>
</li> </li>
@ -20,7 +20,7 @@
<li> <li>
<a class="{% navactive request 'groupmanagement:management groupmanagement:membership groupmanagement:membership_list' %}" <a class="{% navactive request 'groupmanagement:management groupmanagement:membership groupmanagement:membership_list' %}"
href="{% url 'groupmanagement:management' %}"> href="{% url 'groupmanagement:management' %}">
<i class="fa fa-lock fa-sitemap fa-fw"></i> {% trans "Group Management" %} <i class="fas fa-sitemap fa-fw"></i> {% trans "Group Management" %}
</a> </a>
</li> </li>
{% endif %} {% endif %}

View File

@ -28,7 +28,7 @@
</li> </li>
{% else %} {% else %}
<li><a href="{% url 'notifications:list' %}"> <li><a href="{% url 'notifications:list' %}">
<i class="fa fa-bell-o"></i></a> <i class="far fa-bell"></i></a>
</li> </li>
{% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
@ -42,7 +42,7 @@
{% if user.is_superuser %} {% if user.is_superuser %}
<li> <li>
<a class="navbar-brand" style="margin-left: -4px;" href="https://allianceauth.readthedocs.io/" target="_blank"> <a class="navbar-brand" style="margin-left: -4px;" href="https://allianceauth.readthedocs.io/" target="_blank">
<i class="fa fa-question-circle fa-fw"></i> <i class="fas fa-question-circle fa-fw"></i>
</a> </a>
</li> </li>
{% endif %} {% endif %}

View File

@ -1,4 +1,5 @@
{% load staticfiles %} {% load staticfiles %}
<!-- Font Awesome Bundle --> <!-- Font Awesome Bundle -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/v4-shims.min.css" rel="stylesheet" type="text/css">
<!-- End Font Awesome Bundle --> <!-- End Font Awesome Bundle -->

View File

@ -7,7 +7,7 @@ from . import urls
class TimerboardMenu(MenuItemHook): class TimerboardMenu(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, 'Structure Timers', MenuItemHook.__init__(self, 'Structure Timers',
'fa fa-clock-o fa-fw', 'far fa-clock fa-fw',
'timerboard:view', 'timerboard:view',
navactive=['timerboard:']) navactive=['timerboard:'])