diff options
-rw-r--r-- | web/main/urls.py | 2 | ||||
-rw-r--r-- | web/templates/view-package-props.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/main/urls.py b/web/main/urls.py index 2aa40d9..f7adcc1 100644 --- a/web/main/urls.py +++ b/web/main/urls.py @@ -9,7 +9,7 @@ urlpatterns = patterns('', (r'^browse/(?P<category_name>\w+-\w+)$', prefix+'browse'), (r'^browse/(?P<category_name>\w+(-\w+){0,1})/(?P<pkg_name>.*)$', prefix+'browse'), (r'^view/package/(?P<category_name>\w+(-\w*){0,1})/(?P<pkg_name>[a-zA-Z_-]+)-(?P<pkg_ver>[0-9_.r-]+)$', prefix+'view'), - (r'^view/attachment/(?P<attachment_id>\d+)$', prefix+'view_attachment'), + (r'^view/attachment/(?P<attachment_id>\d+)/.*$', prefix+'view_attachment'), (r'^view/content/(?P<packageproperties_id>\d+)$', prefix+'view_content'), (r'^search/by-path/(?P<path>.*)$', prefix+'search_by_path'), (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_DIR, 'show_indexes': True}), diff --git a/web/templates/view-package-props.html b/web/templates/view-package-props.html index b262bea..ee9f27a 100644 --- a/web/templates/view-package-props.html +++ b/web/templates/view-package-props.html @@ -19,7 +19,7 @@ Compile information for: {{cpv}} {% endfor %} <br /> Attachments: {% for attachment in prop.attachment_set.all %} - <a href="/collagen/view/attachment/{{attachment.id}}">{{attachment.name}}</a> + <a href="/collagen/view/attachment/{{attachment.id}}/{{attachment.name}}">{{attachment.name}}</a> {% endfor %}<br /> Content: <a href="/collagen/view/content/{{prop.id}}">list</a> </div> |