Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
78f47c75
Verified
Commit
78f47c75
authored
Jan 24, 2019
by
Joren Vrancken
Browse files
Set download attribute on Thabloid download links
parent
cc34c33f
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/thabloid/static/thabloid/js/main.js
View file @
78f47c75
...
...
@@ -19,7 +19,12 @@ $(function () {
afterShow
:
function
(
instance
,
current
)
{
$
(
instance
.
$refs
.
container
)
.
find
(
"
[data-fancybox-download]
"
)
.
attr
(
"
href
"
,
downloadLink
);
.
attr
(
{
"
href
"
:
downloadLink
,
"
download
"
:
''
,
}
);
}
});
});
...
...
website/thabloid/templatetags/thabloid_cards.py
View file @
78f47c75
...
...
@@ -19,7 +19,8 @@ def thabloid_card(year, thabloid):
'<a href="{}" class="btn btn-secondary d-inline-flex open mr-1">'
'<i class="fas fa-book-open"></i>'
'</a>'
'<a href="{}" class="btn btn-secondary d-inline-flex download ml-1">'
'<a href="{}" download '
'class="btn btn-secondary d-inline-flex download ml-1">'
'<i class="fas fa-download"></i>'
'</a>'
'</div>'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment