Browse Source

fix user id route

main
ghost 1 year ago
parent
commit
7b3ab7de7b
  1. 2
      templates/default/torrent/edit/locales.html.twig
  2. 2
      templates/default/torrent/edit/sensitive.html.twig
  3. 2
      templates/default/torrent/info.html.twig
  4. 2
      templates/default/user/dashboard.html.twig

2
templates/default/torrent/edit/locales.html.twig

@ -62,7 +62,7 @@
</a> </a>
{% endif %} {% endif %}
{{ 'by'|trans }} {{ 'by'|trans }}
<a href="{{ path('user_info', { id : edition.user.id }) }}"> <a href="{{ path('user_info', { userId : edition.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ edition.user.identicon }}" alt="{{'identicon'|trans }}" /> <img class="border-radius-50 border-color-default vertical-align-middle" src="{{ edition.user.identicon }}" alt="{{'identicon'|trans }}" />
</a> </a>
<div class="float-right"> <div class="float-right">

2
templates/default/torrent/edit/sensitive.html.twig

@ -38,7 +38,7 @@
</a> </a>
{% endif %} {% endif %}
{{ 'by'|trans }} {{ 'by'|trans }}
<a href="{{ path('user_info', { id : edition.user.id }) }}"> <a href="{{ path('user_info', { userId : edition.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ edition.user.identicon }}" alt="{{'identicon'|trans }}" /> <img class="border-radius-50 border-color-default vertical-align-middle" src="{{ edition.user.identicon }}" alt="{{'identicon'|trans }}" />
</a> </a>
<div class="float-right"> <div class="float-right">

2
templates/default/torrent/info.html.twig

@ -183,7 +183,7 @@
</td> </td>
<td> <td>
{% for id, identicon in torrent.contributors %} {% for id, identicon in torrent.contributors %}
<a href="{{ path('user_info', { id : id }) }}"> <a href="{{ path('user_info', { userId : id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ identicon }}" alt="{{'identicon'|trans }}" /> <img class="border-radius-50 border-color-default vertical-align-middle" src="{{ identicon }}" alt="{{'identicon'|trans }}" />
</a> </a>
{% endfor %} {% endfor %}

2
templates/default/user/dashboard.html.twig

@ -5,7 +5,7 @@
<div class="padding-16-px margin-y-8-px border-radius-3-px background-color-night"> <div class="padding-16-px margin-y-8-px border-radius-3-px background-color-night">
<div class="row"> <div class="row">
<div class="column width-80"> <div class="column width-80">
<a href="{{ path('user_info', {'id': activity.user.id}) }}"> <a href="{{ path('user_info', { userId : activity.user.id }) }}">
<img class="vertical-align-middle border-radius-50 border-color-default border-width-2-px margin-r-8-px" <img class="vertical-align-middle border-radius-50 border-color-default border-width-2-px margin-r-8-px"
src="{{ activity.user.identicon }}" src="{{ activity.user.identicon }}"
alt="{{ 'identicon'|trans }}" /> alt="{{ 'identicon'|trans }}" />

Loading…
Cancel
Save