| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- {% import "PackagistWebBundle::macros.html.twig" as packagist %}
- {% if is_granted('ROLE_EDIT_PACKAGES') or version.package.maintainers.contains(app.user) %}
- <form class="action" action="{{ path("delete_version", {"versionId": version.id}) }}" method="post">
- <input type="hidden" name="_method" value="DELETE" />
- <input type="submit" value="Delete">
- </form>
- {% endif %}
- <p class="requireme">require: <input type="text" readonly="readonly" value="{{ "\"#{version.package.vendor}/#{version.package.packageName}\": \"#{version.hasVersionAlias() ? version.versionAlias : version.version}\"" }}" /></p>
- <h2 class="authors">Author{{ version.authors|length > 1 ? 's' : '' }}</h2>
- <ul>
- {% for author in version.authors %}
- <li>
- {%- if author.homepage -%}
- <a href="{{ author.homepage }}">{{ author.name }}</a>
- {%- else -%}
- {{ author.name }}
- {%- endif -%}
- {% if author.email %} <<a href="mailto:{{ author.email }}">{{ author.email }}</a>>{% endif -%}
- </li>
- {% endfor %}
- </ul>
- <div class="clearfix package-links">
- {% for type in ["require", "devRequire", "suggest", "provide", "conflict", "replace"] %}
- <div class="{{ type }}s">
- <h2>{{ ('link_type.' ~ type)|trans }}</h2>
- {% if attribute(version, type)|length %}
- <ul>
- {%- for link in attribute(version, type) -%}
- <li>{{ packagist.packageLink(link.packageName) }}: {{ link.packageVersion == 'self.version' ? version.version : link.packageVersion }}</li>
- {%- endfor -%}
- </ul>
- {% else %}
- None
- {% endif %}
- </div>
- {% endfor %}
- </div>
|