{% extends "PackagistWebBundle::layout.html.twig" %} {% set showSearchDesc = 'hide' %} {% block title %}{{ package.name }} - {{ parent() }}{% endblock %} {% block head_feeds %} {{ parent() }} {% endblock %} {% block head_additions %} {% endblock %} {% block scripts %} {% endblock %} {% block description -%} {{ package.description }} {%- endblock %} {% set hasActions = is_granted('ROLE_EDIT_PACKAGES') or is_granted('ROLE_EDIT_PACKAGES') or package.maintainers.contains(app.user) %} {% block content %}
{% if not package.autoUpdated and app.user and (package.maintainers.contains(app.user) or is_granted('ROLE_UPDATE_PACKAGES')) %} {% if "github.com" in package.repository %}
{{ package.description }}
{% if hasActions %}
{% for maintainer in package.maintainers -%}
{% endfor %}
{% if addMaintainerForm is defined or removeMaintainerForm is defined %}
{% if removeMaintainerForm is defined %}{% endif %}
{% if addMaintainerForm is defined %}{% endif %}
{% endif %}
Installs: {% if downloads.total is defined %}{{ downloads.total|number_format(0, '.', ' ')|raw }}{% else %}N/A{% endif %}
{% if dependents is defined %}Dependents: {{ dependents|number_format(0, '.', ' ')|raw }}
{% endif %} {% if suggesters is defined %}Suggesters: {{ suggesters|number_format(0, '.', ' ')|raw }}
{% endif %} {% if package.gitHubStars is not null %}Stars: {{ package.gitHubStars|number_format(0, '.', ' ')|raw }}
{% endif %} {% if package.gitHubWatches is not null %}Watchers: {{ package.gitHubWatches|number_format(0, '.', ' ')|raw }}
{% endif %} {% if package.gitHubForks is not null %}Forks: {{ package.gitHubForks|number_format(0, '.', ' ')|raw }}
{% endif %} {% if version and version.support is not null and version.support.issues is defined and version.support.issues starts with 'https://github.com/' %}Open Issues: {{ package.gitHubOpenIssues|number_format(0, '.', ' ')|raw }}
{% endif %} {% if package.language is not empty and package.language != 'PHP' %}Language:{{ package.language }}
{% endif %} {% if package.type is not empty and package.type != 'library' %}Type:{{ package.type }}
{% endif %}{{ form_label(addMaintainerForm.user, "Username") }} {{ form_errors(addMaintainerForm.user) }} {{ form_widget(addMaintainerForm.user) }}
{{ form_rest(addMaintainerForm) }}{{ form_label(removeMaintainerForm.user, "Username") }} {{ form_errors(removeMaintainerForm.user) }} {{ form_widget(removeMaintainerForm.user) }}
{{ form_rest(removeMaintainerForm) }}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 %}