Sfoglia il codice sorgente

Added link from package list, fixes #15.

xaav 14 anni fa
parent
commit
80ee4e3080

+ 1 - 1
src/Packagist/WebBundle/Resources/views/Web/index.html.twig

@@ -16,7 +16,7 @@
                 </p>
                 </p>
                 <p class="author">Maintainer{{ package.maintainers|length > 1 ? 's' : '' }}:
                 <p class="author">Maintainer{{ package.maintainers|length > 1 ? 's' : '' }}:
                 {% for maintainer in package.maintainers %}
                 {% for maintainer in package.maintainers %}
-                    {{ maintainer.username }}{{ loop.last ? '' : ', ' }}
+                    <a href="{{ url("user_packages", { "id" : maintainer.id }) }}">{{ maintainer.username }}</a>{{ loop.last ? '' : ', ' }}
                 {% endfor %}</p>
                 {% endfor %}</p>
             {% elseif package.crawledAt == null %}
             {% elseif package.crawledAt == null %}
                 This package has not been crawled yet, some information is missing.
                 This package has not been crawled yet, some information is missing.