Skip to content

Commit

Permalink
Merge pull request #32 from stariluz/30-svgs-dont-work-in-production
Browse files Browse the repository at this point in the history
Fix #30 Restoring xlink and using in template
  • Loading branch information
stariluz authored Jul 27, 2024
2 parents 75b7e0b + e2e5fe7 commit ee21eb2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion static/img/logout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/img/square-rounded-plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/img/user-square-rounded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@
<a class="dropdown-item" href="{% url 'users:profile' request.user.username %}">
<span>Ver perfil</span>
<svg height="24" width="24">
<use class="icon" href="{% static 'img/user-square-rounded.svg' %}#icon" height="24" width="24"></use>
<use class="icon" xlink:href="{% static 'img/user-square-rounded.svg' %}#icon" href="{% static 'img/user-square-rounded.svg' %}#icon" height="24" width="24"></use>
</svg>
</a>
</li>
<li>
<a class="dropdown-item" href="{% url 'users:logout' %}">
<span>Cerrar sesion</span>
<svg height="24" width="24">
<use class="icon" href="{% static 'img/logout.svg' %}#icon" height="24" width="24"></use>
<use class="icon" href="{% static 'img/logout.svg' %}#icon" xlink:href="{% static 'img/logout.svg' %}#icon" height="24" width="24"></use>
</svg>
</a>
</li>
</ul>
</div>
<a href="{% url 'posts:create' %}">
<svg height="24" width="24">
<use class="icon" href="{% static 'img/square-rounded-plus.svg' %}#icon" height="24" width="24"></use>
<use class="icon" href="{% static 'img/square-rounded-plus.svg' %}#icon" xlink:href="{% static 'img/square-rounded-plus.svg' %}#icon" height="24" width="24"></use>
</svg>
</a>
</section>
Expand Down

0 comments on commit ee21eb2

Please sign in to comment.