Replace fontawesome with latest version 6.5.2 (#116)

This commit is contained in:
Phuoc Anh Kha Le 2024-06-04 22:00:23 -05:00 committed by GitHub
parent 46c950dc37
commit 44682900e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2100 changed files with 20227 additions and 7902 deletions

View file

@ -11,19 +11,19 @@
class="like-button actionbar-button {% if pagevote.vote_score(request.profile) == 1 %}voted{% endif %}"
onclick="javascript:pagevote_upvote({{ pagevote.id }}, event)">
<span class="pagevote-score" id="pagevote-score-{{pagevote.id}}">{{ pagevote.score }}</span>
<i class="fa fa-thumbs-o-up" style="font-size: large;"></i>
<i class="far fa-thumbs-up" style="font-size: large;"></i>
<span class="actionbar-text">{{_("Like")}}</span>
</span>
<span id="dislike-button-{{pagevote.id}}"
class="dislike-button actionbar-button {% if pagevote.vote_score(request.profile) == -1 %}voted{% endif %}"
onclick="javascript:pagevote_downvote({{ pagevote.id }}, event)">
<i class="fa fa-thumbs-o-down" style="font-size: large;"></i>
<i class="far fa-thumbs-down" style="font-size: large;"></i>
</span>
</span>
{% if not hide_actionbar_comment %}
<span class="actionbar-block">
<span class="actionbar-button actionbar-comment">
<i class="fa fa-comment-o" style="font-size: large;"></i>
<i class="far fa-comment" style="font-size: large;"></i>
<span class="actionbar-text">
{{_("Comment")}}
</span>
@ -39,7 +39,7 @@
<span id="bookmark-button-{{bookmark.id}}"
class="bookmark-button actionbar-button {% if bookmark.is_bookmarked_by(request.profile) %} bookmarked {% endif %}"
onclick="javascript:bookmark({{ bookmark.id }}, event)">
<i class="fa fa-bookmark-o" style="font-size: large;"></i>
<i class="far fa-bookmark" style="font-size: large;"></i>
<span class="actionbar-text">{{_("Bookmark")}}</span>
</span>
</span>

View file

@ -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 %}

View file

@ -12,6 +12,10 @@
width: 2em;
margin-right: 0.5em;
}
.organization-row:last-child {
border-bottom: none;
}
</style>
{% endblock %}

View file

@ -8,7 +8,7 @@
{% with author_id=comment.author_id %}
{% if author_id %}
<div class="problem-feed-info-entry">
<i class="fa fa-pencil-square-o fa-fw"></i>
<i class="far fa-pen-to-square"></i>
<span class="pi-value">{{ link_user(author_id) }}</span>
</div>
{% endif %}

View file

@ -1,6 +1,6 @@
<div class="left-sidebar">
{{ make_tab_item('list', 'fa fa-list', url('contest_list'), _('All')) }}
{{ make_tab_item('official', 'fa fa-check-circle-o', url('official_contest_list'), _('Official')) }}
{{ make_tab_item('official', 'far fa-check-circle', url('official_contest_list'), _('Official')) }}
{{ make_tab_item('calendar', 'fa fa-calendar', url('contest_calendar', now.year, now.month), _('Calendar')) }}
{% if perms.judge.change_contest %}
{{ make_tab_item('admin', 'fa fa-edit', url('admin:judge_contest_changelist'), _('Admin'), force_new_page=True) }}

View file

@ -1,6 +1,6 @@
{% if current_contests %}
<div class="blog-sidebox sidebox">
<h3 class="bold-text colored-text"><i class="fa fa-trophy"></i> {{ _('Ongoing contests') }}</h3>
<h3 class="bold-text colored-text"><i class="fa fa-ranking-star"></i> {{ _('Ongoing contests') }}</h3>
<div class="sidebox-content">
{% for contest in current_contests %}
<div class="contest">
@ -18,7 +18,7 @@
{% if future_contests %}
<div class="blog-sidebox sidebox">
<h3 class="bold-text colored-text"><i class="fa fa-trophy"></i>{{ _('Upcoming contests') }}</h3>
<h3 class="bold-text colored-text"><i class="fa fa-ranking-star"></i>{{ _('Upcoming contests') }}</h3>
<div class="sidebox-content">
{% for contest in future_contests %}
<div class="contest">

View file

@ -1,12 +1,12 @@
<div class="left-sidebar">
{{ make_tab_item('home', 'fa fa-home', organization.get_absolute_url(), _('Home')) }}
{% if is_member or can_edit %}
{{ make_tab_item('problems', 'fa fa-list', organization.get_problems_url(), _('Problems')) }}
{{ make_tab_item('contests', 'fa fa-trophy', organization.get_contests_url(), _('Contests')) }}
{{ make_tab_item('submissions', 'fa fa-book', organization.get_submissions_url(), _('Submissions')) }}
{{ make_tab_item('problems', 'fa fa-puzzle-piece', organization.get_problems_url(), _('Problems')) }}
{{ make_tab_item('contests', 'fa fa-ranking-star', organization.get_contests_url(), _('Contests')) }}
{{ make_tab_item('submissions', 'fa fa-code', organization.get_submissions_url(), _('Submissions')) }}
{% endif %}
{% if is_member or can_edit or organization.is_open %}
{{ make_tab_item('users', 'fa fa-user', organization.get_users_url(), _('Members')) }}
{{ make_tab_item('users', 'fa fa-users', organization.get_users_url(), _('Members')) }}
{% endif %}
{% if perms.judge.change_organization %}
{{ make_tab_item('admin', 'fa fa-edit', url('admin:judge_organization_change', organization.id), _('Admin'), force_new_page=True) }}

View file

@ -15,7 +15,7 @@
{% with authors=problem.get_authors() %}
{% if authors %}
<div class="problem-feed-info-entry">
<i class="fa fa-pencil-square-o fa-fw"></i>
<i class="far fa-pen-to-square"></i>
<span class="pi-value">{{ link_users(authors) }}</span>
</div>
{% endif %}

View file

@ -1,6 +1,6 @@
{% if not show_contest_mode %}
<div class="left-sidebar">
{{ make_tab_item('feed', 'fa fa-pagelines', url('problem_feed'), _('Feed')) }}
{{ make_tab_item('feed', 'far fa-lightbulb', url('problem_feed'), _('Feed')) }}
{{ make_tab_item('list', 'fa fa-list', url('problem_list'), _('List')) }}
{% if request.user.is_superuser %}
{{ make_tab_item('admin', 'fa fa-edit', url('admin:judge_problem_changelist'), _('Admin'), force_new_page=True) }}

View file

@ -259,7 +259,7 @@
{% with authors=problem.get_authors() %}
{% if authors %}
<div class="problem-info-entry">
<i class="fa fa-pencil-square-o fa-fw"></i><span
<i class="far fa-pen-to-square"></i><span
class="pi-name">{% trans trimmed count=authors|length %}
Author:
{% pluralize count %}

View file

@ -22,13 +22,13 @@
{% pluralize %}
{{ counter }} problems solved
{% endtrans -%}"
><i class="fa fa-slack darkcyan"></i> {{_('Problems')}}</div>
><i class="green icofont-tick-mark"></i> {{_('Problems')}}</div>
<span class="user-info-body">{{ request.profile.problem_count }}</span>
</div>
<div class="user-info">
<div
title="{{_('Total points')}}"
><i class="green icofont-tick-mark"></i> {{_('Points')}}</div>
><i class="fa fa-trophy darkcyan"></i> {{_('Points')}}</div>
<div class="user-info-body"><span title="{{ request.profile.performance_points|floatformat(2) }}">
{{ request.profile.performance_points|floatformat(0) }}
</span></div>
@ -44,7 +44,7 @@
{% if awards.medals %}
<div class="user-info">
<div title="{{ _('Awards') }}"><i class="fa fa-trophy"></i> {{ _('Awards') }}</div>
<div title="{{ _('Awards') }}"><i class="fa fa-medal"></i> {{ _('Awards') }}</div>
</div>
{% endif %}
</div>

View file

@ -1,6 +1,6 @@
{% if recent_organizations %}
<div class="blog-sidebox sidebox">
<h3 class="bold-text colored-text"><i class="fa fa-users"></i>{{ _('Recent groups') }}</h3>
<h3 class="bold-text colored-text"><i class="fa fa-building-columns"></i>{{ _('Recent groups') }}</h3>
<div class="toggled sidebox-content">
{% for organization in recent_organizations %}
<a href="{{ url('organization_home', organization.pk, organization.slug) }}" class="organization-row">

View file

@ -33,17 +33,17 @@
<h4>{{ _('Or log in with...') }}</h4>
{% if form.has_google_auth %}
<a href="{{ url('social:begin', "google-oauth2") }}?next={{ next }}" class="social google-icon">
<i class="fa fa-google-plus-square"></i>
<i class="fab fa-square-google-plus"></i>
</a>
{% endif %}
{% if form.has_facebook_auth %}
<a href="{{ url('social:begin', "facebook") }}?next={{ next }}" class="social facebook-icon">
<i class="fa fa-facebook-square"></i>
<i class="fab fa-facebook-square"></i>
</a>
{% endif %}
{% if form.has_github_auth %}
<a href="{{ url('social:begin', "github-secure") }}?next={{ next }}" class="social github-icon">
<i class="fa fa-github-square"></i>
<i class="fab fa-github-square"></i>
</a>
{% endif %}
{% endif %}

View file

@ -10,14 +10,14 @@
<pre>{{ submission.error|ansi2html }}</pre>
{% else %}
{% if submission.error %}
<h3><i class="fa fa-exclamation-triangle fa-fw"></i>{{ _('Compilation Warnings') }}</h3>
<h3><i class="fa fa-exclamation-triangle"></i>{{ _('Compilation Warnings') }}</h3>
<pre>{{ submission.error|ansi2html }}</pre>
<hr><br>
{% endif %}
{% if is_pretest %}
<h3><i class="fa fa-check-square-o fa-fw"></i>{{ _('Pretest Execution Results') }}</h3>
<h3><i class="far fa-check-square"></i> {{ _('Pretest Execution Results') }}</h3>
{% else %}
<h3><i class="fa fa-check-square-o fa-fw"></i>{{ _('Execution Results') }}</h3>
<h3><i class="far fa-check-square"></i> {{ _('Execution Results') }}</h3>
{% endif %}
{% for batch in batches %}

View file

@ -11,7 +11,7 @@
{% with author_id = ticket.user_id %}
{% if author_id %}
<div class="problem-feed-info-entry">
<i class="fa fa-pencil-square-o fa-fw"></i>
<i class="far fa-pen-to-square"></i>
<span class="pi-value">{{ link_user(author_id) }}</span>
</div>
{% endif %}

View file

@ -25,7 +25,7 @@
{% pluralize %}
{{ counter }} problems solved
{% endtrans -%}"
><i class="fa fa-slack darkcyan"></i> {{_('Problems')}}</div>
><i class="green icofont-tick-mark"></i> {{_('Problems')}}</div>
<div class="user-info-body">{{user.problem_count}}</div>
</div>
</div>
@ -33,7 +33,7 @@
<div class="user-info">
<div class="user-info-header"
title="{{_('Total points')}}"
><i class="green icofont-tick-mark"></i> {{_('Points')}}</div>
><i class="fa fa-trophy darkcyan"></i> {{_('Points')}}</div>
<div class="user-info-body"><span title="{{ user.performance_points|floatformat(2) }}">
{{ user.performance_points|floatformat(0) }}
</span></div>

View file

@ -39,7 +39,7 @@
{% with authors=problem.get_authors() %}
{% if authors %}
<div class="problem-feed-info-entry">
<i class="fa fa-pencil-square-o fa-fw"></i>
<i class="far fa-pen-to-square"></i>
<span class="pi-value">{{ link_users(authors) }}</span>
</div>
{% endif %}

View file

@ -4,10 +4,10 @@
{{ make_tab('about', 'fa-info-circle', url('user_page', user.user.username), _('About')) }}
{{ make_tab('problems', 'fa-puzzle-piece', url('user_problems', user.user.username), _('Problems')) }}
{{ make_tab('submissions', 'fa-code', url('all_user_submissions', user.username), _('Submissions')) }}
{% if request.user.is_superuser and user.user != request.user and not user.user.is_superuser %}
{% if request.user.is_superuser and user != request.profile and not user.user.is_superuser %}
{{ make_tab('impersonate', 'fa-eye', url('impersonate-start', user.user.id), _('Impersonate')) }}
{% endif %}
{% if user.user == request.user %}
{% if user == request.profile %}
{{ make_tab('bookmark', 'fa-bookmark', url('user_bookmark'), _('Bookmarks')) }}
{{ make_tab('edit', 'fa-edit', url('user_edit_profile'), _('Edit profile')) }}
{% else %}