|
@@ -5,7 +5,7 @@
|
|
{% for package in packages %}
|
|
{% for package in packages %}
|
|
<section class="package">
|
|
<section class="package">
|
|
<h2><a href="{{ url('view', { 'id' : package.id }) }}">{{ package.name }}</a></h2>
|
|
<h2><a href="{{ url('view', { 'id' : package.id }) }}">{{ package.name }}</a></h2>
|
|
- {% if package.versions[0] is defined %}
|
|
|
|
|
|
+ {% if package.versions is not empty %}
|
|
<p class="description">{{ package.versions[0].description }}</p>
|
|
<p class="description">{{ package.versions[0].description }}</p>
|
|
<p class="license">License: {{ package.versions[0].license|default("Unknown") }}</p>
|
|
<p class="license">License: {{ package.versions[0].license|default("Unknown") }}</p>
|
|
<p class="links">
|
|
<p class="links">
|
|
@@ -18,7 +18,7 @@
|
|
{% for maintainer in package.maintainers %}
|
|
{% for maintainer in package.maintainers %}
|
|
{{ maintainer.username }}{{ loop.last ? '' : ', ' }}
|
|
{{ maintainer.username }}{{ loop.last ? '' : ', ' }}
|
|
{% endfor %}</p>
|
|
{% endfor %}</p>
|
|
- {% elseif package.crawledAt == null %}
|
|
|
|
|
|
+ {% elseif package.crawledAt is null %}
|
|
This package has not been crawled yet, some information is missing.
|
|
This package has not been crawled yet, some information is missing.
|
|
{% else %}
|
|
{% else %}
|
|
This package has no released version yet, and little information is available yet.
|
|
This package has no released version yet, and little information is available yet.
|