Package upload paths fixed

This commit is contained in:
Christoph Haas 2014-12-01 00:21:57 +01:00
parent 4d2d64b43f
commit 59b353d569
4 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@ a.black href=package_path(name: pkg.name)
img src=pkg.screenshots[0].url('small')
- else
// TODO: make it a link to /upload
a href=upload_package_path(name: pkg.name)
a href=upload_package_by_name_path(name: pkg.name)
img.screenshot src="/images/dummy/no-screenshots-upload-one.svg"
div
// TODO: use description instead of package name (as soon as it is available)

View file

@ -29,4 +29,4 @@
.large-12.columns
a.button.tiny href=package_path(name: pkg.name) Details
'
a.button.tiny href=upload_package_path(name: pkg.name) Upload screenshot
a.button.tiny href=upload_package_by_name_path(name: pkg.name) Upload screenshot

View file

@ -26,7 +26,7 @@
- if pkg.screenshots.length > 1
.text-center More screenshots
- else
a href=upload_package_path(name: pkg.name)
a href=upload_package_by_name_path(name: pkg.name)
img.screenshot src="/images/dummy/no-screenshots-upload-one.svg"
.small-12.medium-8.columns
= render partial: 'packages/list_details', locals: {pkg: pkg }

View file

@ -53,9 +53,9 @@ div.row
div.large-4.medium-12.small-12.columns.text-center
h2 Your help needed
// TODO: load actual most popular package without a screenshot and cache it
a href=upload_package_path('firefox')
a href=upload_package_by_name_path('firefox')
img src="/images/dummy/no-screenshots-upload-one.svg" width="80%"
p
' We lack a screenshot for the Firefox package. Can you
a href=upload_package_path('firefox') provide one
a href=upload_package_by_name_path('firefox') provide one
' ?