Archived
1
0

Merge pull request #67 from ZiRo-/master

add download link for files with original filename
This commit is contained in:
Jeff 2016-05-22 15:17:19 -04:00
commit c5e90ec550
3 changed files with 15 additions and 0 deletions

View File

@ -72,6 +72,18 @@ textarea {
padding: 10px 10px; 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 { pre {
white-space: pre-wrap; white-space: pre-wrap;
align: center; align: center;

View File

@ -22,6 +22,7 @@
{{#post.Attachments}} {{#post.Attachments}}
<figure> <figure>
<figcaption> <figcaption>
<a class="download_link" href="{{Source}}" download="{{Filename}}">{{#i18n.Translations}}{{download_prompt}}{{/i18n.Translations}}</a>
<a class="file" href="{{Source}}" title="{{Filename}}" target="_blank"><img src="{{Thumbnail}}" alt="{{Filename}}" class="thumbnail"/></a> <a class="file" href="{{Source}}" title="{{Filename}}" target="_blank"><img src="{{Thumbnail}}" alt="{{Filename}}" class="thumbnail"/></a>
</figcaption> </figcaption>
</figure> </figure>

View File

@ -174,3 +174,5 @@ key_install_title=A new keypair has been generated for you. Please keep it safe
cuckoo_pow=Proof of Work cuckoo_pow=Proof of Work
start_mining=Mine! start_mining=Mine!
download_prompt=Download