Merge pull request #67 from ZiRo-/master
add download link for files with original filename
This commit is contained in:
commit
c5e90ec550
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user