diff options
author | volpino <fox91@anche.no> | 2012-11-08 15:46:16 +0100 |
---|---|---|
committer | volpino <fox91@anche.no> | 2012-11-08 15:46:16 +0100 |
commit | 90f55433d14a23714c8cbadbab1fcbec9ffbdaf5 (patch) | |
tree | 223e9b6477d68ba3f642ab4ba6ff6c2c4571c297 /euscanwww | |
parent | euscanwww: raise Http404 -> return HttpResponseNotFound() (diff) | |
download | euscan-90f55433d14a23714c8cbadbab1fcbec9ffbdaf5.tar.gz euscan-90f55433d14a23714c8cbadbab1fcbec9ffbdaf5.tar.bz2 euscan-90f55433d14a23714c8cbadbab1fcbec9ffbdaf5.zip |
euscanwww: Upstream urls now are anchors
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'euscanwww')
-rw-r--r-- | euscanwww/djeuscan/models.py | 4 | ||||
-rw-r--r-- | euscanwww/djeuscan/templates/euscan/_package_details.html | 5 |
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 %} |