|
@@ -14,55 +14,59 @@
|
|
|
|
|
|
{% if form is defined %}
|
|
|
<div>
|
|
|
- <strong id="add-maintainer"><a href="#">Add Maintainer</a></strong>
|
|
|
- <form id="add-maintainer-form" class="hidden" action="" method="POST" {{ form_enctype(form) }}>
|
|
|
- <div>
|
|
|
- <p>
|
|
|
- {{ form_label(form.user, "Username") }}
|
|
|
- {{ form_errors(form.user) }}
|
|
|
- {{ form_widget(form.user) }}
|
|
|
- </p>
|
|
|
- {{ form_rest(form) }}
|
|
|
- <input id="submit" type="submit" value="Submit" />
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
+ <strong id="add-maintainer"><a href="#">Add Maintainer</a></strong>
|
|
|
+ <form id="add-maintainer-form" class="hidden" action="" method="POST" {{ form_enctype(form) }}>
|
|
|
+ <div>
|
|
|
+ <p>
|
|
|
+ {{ form_label(form.user, "Username") }}
|
|
|
+ {{ form_errors(form.user) }}
|
|
|
+ {{ form_widget(form.user) }}
|
|
|
+ </p>
|
|
|
+ {{ form_rest(form) }}
|
|
|
+ <input id="submit" type="submit" value="Submit" />
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
{% endif %}
|
|
|
|
|
|
{% if package.versions|length %}
|
|
|
- <ul class="packages">
|
|
|
+ <ul class="packages">
|
|
|
{% for version in package.versions %}
|
|
|
- <li>
|
|
|
- <section>
|
|
|
- <h1>Version {{ version.version }}</h1>
|
|
|
- <div class="package-details"><div>
|
|
|
- <p class="description">{{ version.description }}</p>
|
|
|
- <p class="license">License: {{ version.license ? version.license|join(', ') : "Unknown" }}</p>
|
|
|
- <p class="release-date">Date: {{ version.releasedAt|date("Y-m-d") }}</p>
|
|
|
- <p class="links">
|
|
|
- {% if version.homepage %}
|
|
|
- Homepage: <a href="{{ version.homepage }}">{{ version.homepage|replace({'http://': ''}) }}</a><br />
|
|
|
- {% endif %}
|
|
|
- Tags: {% for tag in version.tags %}<a href="{{ url("tag", { "name" : tag.name }) }}">{{ tag.name }}</a>{{ loop.last ? '' : ', ' }}{% endfor %}
|
|
|
- </p>
|
|
|
- <p class="authors">Author{{ version.authors|length > 1 ? 's' : '' }}:
|
|
|
- {% for author in version.authors %}
|
|
|
- {% 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 %}
|
|
|
- <br />
|
|
|
- {% endfor %}</p>
|
|
|
- <p class="requires">Requirement{{ version.require|length > 1 ? 's' : '' }}:
|
|
|
- {% for req in version.require %}
|
|
|
- {{ req.packageName }} ({{ req.packageVersion }})<br />
|
|
|
- {% endfor %}</p>
|
|
|
- </section>
|
|
|
- </li>
|
|
|
+ <li{% if loop.index0 > 0 and not ('-dev' in version.version) %} class="has-popup"{% endif %}>
|
|
|
+ <section>
|
|
|
+ <h1>Version {{ version.version }}</h1>
|
|
|
+ {% if loop.index0 > 0 and not ('-dev' in version.version) %}
|
|
|
+ <div class="package-details"><div>
|
|
|
+ {% else %}
|
|
|
+ <div class="package-full-details"><div>
|
|
|
+ {% endif %}
|
|
|
+ <p class="description">{{ version.description }}</p>
|
|
|
+ <p class="license">License: {{ version.license ? version.license|join(', ') : "Unknown" }}</p>
|
|
|
+ <p class="release-date">Date: {{ version.releasedAt|date("Y-m-d") }}</p>
|
|
|
+ <p class="links">
|
|
|
+ {% if version.homepage %}
|
|
|
+ Homepage: <a href="{{ version.homepage }}">{{ version.homepage|replace({'http://': ''}) }}</a><br />
|
|
|
+ {% endif %}
|
|
|
+ Tags: {% for tag in version.tags %}<a href="{{ url("tag", { "name" : tag.name }) }}">{{ tag.name }}</a>{{ loop.last ? '' : ', ' }}{% endfor %}
|
|
|
+ </p>
|
|
|
+ <p class="authors">Author{{ version.authors|length > 1 ? 's' : '' }}:
|
|
|
+ {% for author in version.authors %}
|
|
|
+ {% 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 %}
|
|
|
+ <br />
|
|
|
+ {% endfor %}</p>
|
|
|
+ <p class="requires">Requirement{{ version.require|length > 1 ? 's' : '' }}:
|
|
|
+ {% for req in version.require %}
|
|
|
+ {{ req.packageName }} ({{ req.packageVersion }})<br />
|
|
|
+ {% endfor %}</p>
|
|
|
+ </section>
|
|
|
+ </li>
|
|
|
{% endfor %}
|
|
|
- </ul>
|
|
|
+ </ul>
|
|
|
{% elseif package.crawledAt is null %}
|
|
|
<p>This package has not been crawled yet, some information is missing.</p>
|
|
|
{% else %}
|