Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip margins from embedded snippets #144

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions webapp/home/templates/home/snippets/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{% load static %}

<footer>
{% if crop_margin %}
<style>
footer {
margin-top: 0;
}
</style>
{% endif %}

<div class="container logo">
<div class="text-center">
<a href="https://www.biocommons.org.au" target="_blank">
Expand Down
1 change: 1 addition & 0 deletions webapp/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def embed_snippet(request, snippet_path):
return render(request, 'embed-snippet.html', {
'title': 'Galaxy Media - embedded snippet',
'snippet_path': snippet_path,
'crop_margin': True, # could make this configurable in future
})
except TemplateDoesNotExist:
raise Http404
Loading