Skip to content
Open
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
3 changes: 3 additions & 0 deletions src/pretalx/cfp/templates/cfp/event/invitation.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
{% block title %}{% translate "Accept invitation?" %}{% endblock title %}

{% block content %}
<div id="header-img">
{% include "common/includes/header.html" %}
</div>
<h2>{% translate "Accept invitation?" %}</h2>
{% if not can_accept_invite %}

Expand Down
5 changes: 1 addition & 4 deletions src/pretalx/common/templates/common/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@
</head>
<body data-datetimeformat="{{ js_datetime_format }}" data-dateformat="{{ js_date_format }}" data-datetimelocale="{{ js_locale }}">
<div id="top-bg" class="header {{ request.event.display_settings.header_pattern|default:"bg-primary" }}">
{% if request.event and request.event.header_image %}
{# we’re not lazy-loading the header image, even though it can be large, because it’s a bit jarring to see it flash in 100ms after the page load #}
<img src="{{ request.event.header_image.url }}" id="header-image" alt="{{ request.event.name }}">
{% endif %}
{% include "common/includes/header.html" %}
</div>
{% if request.event and not request.event.is_public and not is_html_export %}
<div id="event-nonpublic" class="d-print-none">
Expand Down
6 changes: 6 additions & 0 deletions src/pretalx/common/templates/common/includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{# we’re not lazy-loading the header image, even though it can be large, because it’s a bit jarring to see it flash in 100ms after the page load #}
{% if request.event and request.event.header_image %}
<img src="{{ request.event.header_image.url }}"
id="header-image"
alt="{{ request.event.name }}">
{% endif %}
10 changes: 10 additions & 0 deletions src/pretalx/static/cfp/css/_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ body {
width: 100%;
}
}
#header-img{
padding: 10px;
}
#header-img img{
width: 100%;
height: 240px;
border-radius: 10px;
object-fit: cover;
display: block;
}

h1 a {
color: white;
Expand Down
Loading