Use "Download" consistently instead of "Snapshot" on package page

This commit is contained in:
Tony Garnock-Jones 2014-11-08 19:38:54 -05:00
parent 06aabf182f
commit 29a2b07b20
2 changed files with 5 additions and 3 deletions

View File

@ -13,8 +13,6 @@ you should be able to specify git repos over http/https
you should be able to specify subdirs in git repos
you should check the existence of repos/github repos/urls/etc via XHR
change from "snapshot" to "zip file", depending. ("download" i guess if it's not a zip)
don't let people enter blank version numbers
Much more input validation is needed

View File

@ -560,7 +560,11 @@
`(a ((class "btn btn-default btn-lg")
(href ,(@ default-version source_url)))
(span ((class "glyphicon glyphicon-download")))
" Snapshot")
" Download"
;; ,(if (regexp-match? "(?i:\\.zip$)" (or (@ default-version source_url) ""))
;; " Zip file"
;; " Download")
)
`(a ((class "btn btn-default btn-lg")
(href ,(@ default-version source_url)))
(span ((class "glyphicon glyphicon-link")))