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
bfb80381
Commit
bfb80381
authored
Jan 24, 2019
by
Sébastiaan Versteeg
Browse files
Merge branch 'download_thabloid' into 'master'
Set download attribute on Thabloid download links See merge request
!1138
parents
12f0b3bc
78f47c75
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/thabloid/static/thabloid/js/main.js
View file @
bfb80381
...
...
@@ -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 @
bfb80381
...
...
@@ -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