{% extends "PackagistWebBundle::layout.html.twig" %} {% import "PackagistWebBundle::macros.html.twig" as packagist %} {% block title %}{{ package.name }} - {{ parent() }}{% endblock %} {% block scripts %} {% endblock %} {% block content %}
{% if app.user and package.maintainers.contains(app.user) %}
{% endif %}

{{ package.vendor }}/{{ package.packageName }}

{% if package.versions|length and package.versions[0].tags|length %}

{%- for tag in package.versions[0].tags -%} {{ tag.name }} {%- endfor -%}

{% endif %}

{{ package.description }}

Maintainer{{ package.maintainers|length > 1 ? 's' : '' }}: {% for maintainer in package.maintainers %} {{ maintainer.username }}{{ loop.last ? '' : ', ' }} {% endfor %} {% if form is defined %}(add maintainer){% endif %}
{% if package.versions|length and package.versions[0].homepage %} Homepage: {{ package.versions[0].homepage|replace({'http://': ''}) }}
{% endif %} Repository: {{ package.repository }}

{% if form is defined %}

Add Maintainer

{{ form_label(form.user, "Username") }} {{ form_errors(form.user) }} {{ form_widget(form.user) }}

{{ form_rest(form) }}
{% endif %} {% if package.versions|length %} {% elseif package.crawledAt is null %}

This package has not been crawled yet, some information is missing.

{% else %}

This package has no released version yet, and little information is available.

{% endif %}
{% endblock %}