Skip to content

Commit

Permalink
fix 2 fontawesome icons with invalid classes: moinwiki#1331
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHaase committed Feb 14, 2023
1 parent 694c783 commit 88000af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/moin/apps/admin/templates/admin/userbrowser.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>{{ _("Users") }}</h1>
<form action="{{ url_for('admin.userprofile', user_name=u.name[0]) }}" method="POST">
<input type="hidden" name="key" value="disabled" />
<input type="hidden" name="val" value="{{ u.disabled and "0" or "1" }}" />
{%- set cls = "fa fa-user-circle-o fa-lg moin-button-less" if u.disabled else "fa fa-user-times fa-lg moin-button-less" %}
{%- set cls = "fa-solid fa-user-plus fa-lg moin-button-less" if u.disabled else "fa fa-user-times fa-lg moin-button-less" %}
{%- set title = _("Enable user") if u.disabled else _("Disable user") %}
<button type="submit" class="{{ cls }}" title="{{ title }}">&nbsp;
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/moin/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h1>{{ title }}</h1>
{{ _("Namespace") }}
</span>
<span class="moin-newitem-toggle moin-button" id="moin-create-new-item" title="{{ _('Open create item dialog') }}" >
<i class="fa fa-file-o fa-lg"></i>
<i class="fa-solid fa-file-lines"></i>
{{ _("New Item") }}
</span>
</div>
Expand Down

0 comments on commit 88000af

Please sign in to comment.