Skip to content

Commit

Permalink
Change Patreon to Support, Fix Card wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraWebdev committed Jun 13, 2024
1 parent d807e81 commit 09a12f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion public/assets/css/userdetail.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion public/assets/css/userdetail.less
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@
& .cards {
margin-bottom: 25px;
display: flex;
flex-wrap: wrap;
gap: 10px;

& .card {
width: 100px;
height: 100px;
margin-right: 10px;
background-position: center;
background-size: cover;
opacity: 1;
Expand Down
2 changes: 1 addition & 1 deletion templates/index/support.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</div>

<div class="support-subsection">
<h1>Our Patrons</h1>
<h1>Our Supporters</h1>
<div class="user-list">
{% for user in patreons %}
<a href="{{ path('user.detail', {userId: user.id}) }}" class="user-item">
Expand Down
4 changes: 2 additions & 2 deletions templates/user/detail.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{% endif %}
</div>
<div class="user-data">
<div class="user-name">{% if user.pronouns != "" %}<span>{{ user.pronouns }}</span> {% endif %}{{ user.username }} {% if user.isPatreon %}<i class="mdi mdi-patreon"></i>{% endif %}</div>
<div class="user-name">{% if user.pronouns != "" %}<span>{{ user.pronouns }}</span> {% endif %}{{ user.username }} {% if user.isPatreon %}<i class="mdi mdi-hand-heart"></i>{% endif %}</div>
<div class="user-actions">
<a href="{{ path('report.user', {userId: user.id}) }}" class="button">Report</a>
<a href="spinshare-user://{{ user.id }}" class="button">Open in Client</a>
Expand All @@ -32,7 +32,7 @@
<a href="{{ path('moderation.user.resetAvatar', {userId: user.id}) }}" class="button">Reset Avatar</a>
{% if is_granted('ROLE_ADMIN') %}
<a href="{{ path('moderation.user.toggleMod', {userId: user.id}) }}" class="button">{{ ("ROLE_MODERATOR" in user.roles) ? "Demote to User" : "Promote to Mod" }}</a>
<a href="{{ path('moderation.user.togglePatreon', {userId: user.id}) }}" class="button">{{ user.isPatreon ? "Remove Patreon" : "Make Patreon" }}</a>
<a href="{{ path('moderation.user.togglePatreon', {userId: user.id}) }}" class="button">{{ user.isPatreon ? "Remove Supporter" : "Make Supporter" }}</a>
{% endif %}
{% endif %}
{% endif %}
Expand Down

0 comments on commit 09a12f0

Please sign in to comment.