From 41caf046a0ae75c0ca2fb1c5db4f2edff7acb24b Mon Sep 17 00:00:00 2001 From: ZiRo Date: Sun, 22 May 2016 20:22:12 +0200 Subject: [PATCH] add download link for files --- contrib/static/site.css | 12 ++++++++++++ contrib/templates/default/post.mustache | 1 + contrib/translations/en-US.ini | 2 ++ 3 files changed, 15 insertions(+) diff --git a/contrib/static/site.css b/contrib/static/site.css index 7fc236f..8b0be9e 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -72,6 +72,18 @@ textarea { padding: 10px 10px; } +.download_link { + display: block; + text-align: center; + font-size: 90%; + height: auto + padding: 0.5em 0; + margin: 0; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; +} + pre { white-space: pre-wrap; align: center; diff --git a/contrib/templates/default/post.mustache b/contrib/templates/default/post.mustache index b5e11c2..36bfc41 100644 --- a/contrib/templates/default/post.mustache +++ b/contrib/templates/default/post.mustache @@ -22,6 +22,7 @@ {{#post.Attachments}}
+ {{#i18n.Translations}}{{download_prompt}}{{/i18n.Translations}} {{Filename}}
diff --git a/contrib/translations/en-US.ini b/contrib/translations/en-US.ini index 95bb12d..24cadc7 100644 --- a/contrib/translations/en-US.ini +++ b/contrib/translations/en-US.ini @@ -174,3 +174,5 @@ key_install_title=A new keypair has been generated for you. Please keep it safe cuckoo_pow=Proof of Work start_mining=Mine! +download_prompt=Download +