Skip to content

Commit

Permalink
update user links
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace committed Jul 28, 2023
1 parent 43cc7cd commit e52d8df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 52 deletions.
26 changes: 1 addition & 25 deletions templates/splashcat/sponsor.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,7 @@ <h2 class="font-splatoon1 text-xl">Current Sponsors</h2>

<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{% for sponsor in current_sponsors %}
<a class="flex flex-col gap-1 my-1 w-fit" href="{{ sponsor.get_absolute_url }}">
<div class="flex flex-row gap-2 items-center">
{% if sponsor.profile_picture %}
<img src="{{ sponsor.profile_picture.url }}?height=96&width=96"
alt="{{ sponsor.display_name }}"
class="h-12 w-12 object-cover rounded-lg" height="96" width="96">
{% endif %}
<div class="flex flex-col">
<div class="text-xl">
{{ sponsor.display_name }}
{% if sponsor.display_sponsor_badge %}
<img src="{% static 'images/splashcat-sponsor-badge.png' %}?format=png"
alt="Splashcat Sponsor"
class="h-6 inline-block [image-rendering:pixelated]">
{% endif %}
</div>
<div class="text-sm text-gray-400">@{{ sponsor.username }}</div>
</div>
</div>
{% with sponsor.get_splashtag as splashtag %}
{% if splashtag %}
{% include "includes/splashtag.html" with splashtag=splashtag %}
{% endif %}
{% endwith %}
</a>
{% include "users/includes/user-link.html" with user=sponsor show_splashtag=True %}
{% endfor %}
</div>
{% endif %}
Expand Down
25 changes: 1 addition & 24 deletions templates/splashcat/uploaders_information.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,6 @@ <h2 class="text-xl pt-3 font-splatoon1">
Developed by <a href="https://github.com/cesaregarza" class="text-blue-500 underline">cesaregarza</a> as the
original uploader for Splashcat. DataZipcaster supports importing from multiple sources, including SplatNet 3.
{% with developers.Joy as developer %}
<a class="flex flex-col gap-1 my-1 w-fit" href="{{ developer.get_absolute_url }}">
<div class="flex flex-row gap-2 items-center">
{% if developer.profile_picture %}
<img src="{{ developer.profile_picture.url }}?height=96&width=96" alt="{{ developer.display_name }}"
class="h-12 w-12 object-cover rounded-lg">
{% endif %}
<div class="flex flex-col">
<div class="text-xl">
{{ developer.display_name }}
{% if developer.display_sponsor_badge %}
<img src="{% static 'images/splashcat-sponsor-badge.png' %}?format=png"
alt="Splashcat Sponsor"
class="h-6 inline-block [image-rendering:pixelated]">
{% endif %}
</div>
<div class="text-sm text-gray-400">@{{ developer.username }}</div>
</div>
</div>
{% with developer.get_splashtag as splashtag %}
{% if splashtag %}
{% include "includes/splashtag.html" with splashtag=splashtag %}
{% endif %}
{% endwith %}
</a>
{% include "users/includes/user-link.html" with user=developer show_splashtag=True %}
{% endwith %}
{% endblock %}
6 changes: 3 additions & 3 deletions users/templates/users/includes/user-link.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% load static %}
<a class="flex flex-col gap-2 items-center my-3 w-fit" href="{% url 'profile' user.username %}">
<div class="flex flex-row gap-2 items-center my-3 w-fit">
<a class="flex flex-col gap-2 items-center w-fit" href="{% url 'profile' user.username %}">
<div class="flex flex-row gap-2 items-center w-fit">
{% if user.profile_picture %}
<img src="{{ user.profile_picture.url }}" alt="{{ user.display_name }}"
<img src="{{ user.profile_picture.url }}?height=96&width=96" alt="{{ user.display_name }}"
class="h-12 w-12 object-cover rounded-lg">
{% endif %}
<div class="flex flex-col">
Expand Down

0 comments on commit e52d8df

Please sign in to comment.