Archived
1
0

add download link for files

This commit is contained in:
ZiRo 2016-05-22 20:22:12 +02:00
parent 920ddb64b3
commit 41caf046a0
3 changed files with 15 additions and 0 deletions

View File

@ -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;

View File

@ -22,6 +22,7 @@
{{#post.Attachments}}
<figure>
<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>
</figcaption>
</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
start_mining=Mine!
download_prompt=Download