Replace fontawesome with latest version 6.5.2 (#116)
This commit is contained in:
parent
46c950dc37
commit
44682900e1
2100 changed files with 20227 additions and 7902 deletions
|
@ -51,7 +51,8 @@
|
|||
{% compress css %}
|
||||
<link rel="stylesheet" href="{{ static('style.css') }}">
|
||||
{% if INLINE_FONTAWESOME %}
|
||||
<link rel="stylesheet" href="{{ static('libs/fontawesome/font-awesome.css') }}">{% endif %}
|
||||
<link rel="stylesheet" href="{{ static('fontawesome/css/all.min.css') }}">
|
||||
{% endif %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ static('libs/featherlight/featherlight.min.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ static('libs/clipboard/tooltip.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ static('libs/select2/select2.css') }}">
|
||||
|
@ -120,11 +121,11 @@
|
|||
<li>
|
||||
<a href="{{ node.path }}" id="fa-icon-links" class="normal-text nav-{{ node.key }}{% if node.key in nav_tab %} active{% endif %}">
|
||||
<span class="nav-fa-icon{{'-active' if node.key in nav_tab else''}}">
|
||||
{% if node.key == "problems" %} <i class="fa fa-pencil"></i> {% endif %}
|
||||
{% if node.key == "problems" %} <i class="fa fa-puzzle-piece"></i> {% endif %}
|
||||
{% if node.key == "submit" %} <i class="fa fa-code"></i> {% endif %}
|
||||
{% if node.key == "user" %} <i class="fa fa-user"></i> {% endif %}
|
||||
{% if node.key == "contest" %} <i class="fa fa-graduation-cap"></i> {% endif %}
|
||||
{% if node.key == "group" %} <i class="fa fa-group"></i> {% endif %}
|
||||
{% if node.key == "contest" %} <i class="fa fa-ranking-star"></i> {% endif %}
|
||||
{% if node.key == "group" %} <i class="fa fa-building-columns"></i> {% endif %}
|
||||
{% if node.key == "about" %} <i class="fa fa-at"></i> {% endif %}
|
||||
</span>
|
||||
{{ user_trans(node.label) }}
|
||||
|
@ -142,7 +143,7 @@
|
|||
<div style="display: flex; font-size: larger; align-items: center; height: 100%; gap: 1em;">
|
||||
{% if request.user.is_authenticated %}
|
||||
<span title="{{_('Chat')}}">
|
||||
<a id="chat-icon" href="{{ url('chat', '') }}" class="fa fa-wechat navbar-icon" aria-hidden="true" style="font-size: 22.5px;">
|
||||
<a id="chat-icon" href="{{ url('chat', '') }}" class="fab fa-weixin navbar-icon" aria-hidden="true" style="font-size: 22.5px;">
|
||||
{% set unread_chat = request.profile.count_unread_chat_boxes %}
|
||||
{% if unread_chat %}
|
||||
<sub class="unread_boxes">{{unread_chat}}</sub>
|
||||
|
@ -152,7 +153,7 @@
|
|||
|
||||
{% set unseen_cnt = request.profile.count_unseen_notifications %}
|
||||
<span title="{{_('Notification')}}" class="{{ 'notification-open' if unseen_cnt > 0 }}">
|
||||
<a href="{{ url('notification') }}" class="fa fa-bell-o navbar-icon" id="notification" aria-hidden="true" style="font-size: 22.5px;">
|
||||
<a href="{{ url('notification') }}" class="far fa-bell navbar-icon" id="notification" aria-hidden="true" style="font-size: 22.5px;">
|
||||
{% if unseen_cnt > 0 %}
|
||||
<sub class="unread_boxes">{{unseen_cnt}}</sub>
|
||||
{% endif %}
|
||||
|
@ -179,7 +180,7 @@
|
|||
</div>
|
||||
</span>
|
||||
<span title="{{_('Dark Mode')}}">
|
||||
<a class="fa fa-moon-o navbar-icon black" id="nav-darkmode-icon" aria-hidden="true" href="?darkmode=1" style="font-size: 22.5px;"></a>
|
||||
<a class="far fa-moon navbar-icon black" id="nav-darkmode-icon" aria-hidden="true" href="?darkmode=1" style="font-size: 22.5px;"></a>
|
||||
</span>
|
||||
{% if request.user.is_authenticated %}
|
||||
<span id="user-links">
|
||||
|
@ -189,34 +190,34 @@
|
|||
<div class="dropdown" id="userlink_dropdown" role="tooptip">
|
||||
<div class="popper-arrow" data-popper-arrow></div>
|
||||
<a href="{{ url('user_page') }}">
|
||||
<div class="dropdown-item">{{ _('Profile') }}</div>
|
||||
<div class="dropdown-item"><i class="fa fa-user"></i> {{ _('Profile') }}</div>
|
||||
</a>
|
||||
{% if request.user.is_staff or request.user.is_superuser %}
|
||||
<a href="{{ url('admin:index') }}">
|
||||
<div class="dropdown-item">{{ _('Admin') }}</div>
|
||||
<div class="dropdown-item"><i class="fa fa-user-shield"></i> {{ _('Admin') }}</div>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if request.user.is_superuser %}
|
||||
<a href="{{ url('internal_problem') }}">
|
||||
<div class="dropdown-item">{{ _('Internal') }}</div>
|
||||
<div class="dropdown-item"><i class="fa fa-circle-info"></i> {{ _('Internal') }}</div>
|
||||
</a>
|
||||
<a href="{{ url('site_stats') }}">
|
||||
<div class="dropdown-item">{{ _('Stats') }}</div>
|
||||
<div class="dropdown-item"><i class="fa fa-chart-pie"></i> {{ _('Stats') }}</div>
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="{{ url('user_bookmark') }}">
|
||||
<div class="dropdown-item">{{ _('Bookmarks') }}</div>
|
||||
<div class="dropdown-item"><i class="fa fa-bookmark"></i> {{ _('Bookmarks') }}</div>
|
||||
</a>
|
||||
<a href="{{ url('user_edit_profile') }}">
|
||||
<div class="dropdown-item">{{ _('Edit profile') }}</div>
|
||||
<div class="dropdown-item"><i class="fa fa-gear"></i> {{ _('Settings') }}</div>
|
||||
</a>
|
||||
{% if request.user.is_impersonate %}
|
||||
<a href="{{ url('impersonate-stop') }}">
|
||||
<div class="dropdown-item">Stop impersonating</div>
|
||||
<div class="dropdown-item"><i class="fa fa-eye"></i> {{_('Stop impersonating')}}</div>
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="#" id="logout" class="red">
|
||||
<div class="dropdown-item">
|
||||
<div class="dropdown-item"><i class="fa fa-right-from-bracket"></i>
|
||||
{{ _('Log out') }}
|
||||
<form id="logout-form" action="{{ url('auth_logout') }}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue