aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--euscanwww/djeuscan/models.py4
-rw-r--r--euscanwww/djeuscan/templates/euscan/_package_details.html5
2 files changed, 8 insertions, 1 deletions
diff --git a/euscanwww/djeuscan/models.py b/euscanwww/djeuscan/models.py
index 04acceb..8d3902d 100644
--- a/euscanwww/djeuscan/models.py
+++ b/euscanwww/djeuscan/models.py
@@ -161,6 +161,10 @@ class Version(models.Model):
return '%s-%s:%s-%s' % (self.version, self.revision, self.slot,
self.overlay)
+ @property
+ def urls_list(self):
+ return self.urls.split()
+
def cpv(self):
return '%s/%s-%s%s' % (
self.package.category, self.package.name, self.version,
diff --git a/euscanwww/djeuscan/templates/euscan/_package_details.html b/euscanwww/djeuscan/templates/euscan/_package_details.html
index 4736354..abea766 100644
--- a/euscanwww/djeuscan/templates/euscan/_package_details.html
+++ b/euscanwww/djeuscan/templates/euscan/_package_details.html
@@ -89,7 +89,10 @@
<img src="{{ STATIC_URL }}img/unstable-icon.png" alt="unstable" title="{{ version.vtype }}" />
{% endif %}
- {{ version.version }} - {{ version.urls }}
+ {{ version.version }} -
+ {% for url in version.urls_list %}
+ <a href="{{ url }}">{{ url }}</a>
+ {% endfor %}
{% if confidence < 100 %}({{ version.confidence }}%){% endif %}
</li>
{% endfor %}