-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from clabs/dev
Various improvements
- Loading branch information
Showing
7 changed files
with
129 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{% extends 'base.html' %} {% block content %} | ||
{% extends "base.html" %} {% block content %} | ||
{% load static %} | ||
<h1>CREW ANMELDUNG - {{ event.name }}</h1> | ||
<div class="row" style="height: 33vh; background-image: url({{ event.get_image_url }}); background-size: cover; background-position: center center; background-repeat: no-repeat"></div> | ||
<div class="row" style="height: 33vh; background-image: url({{ current_event.get_image_url }}); background-size: cover; background-position: center center; background-repeat: no-repeat"></div> | ||
<div class="alert alert-warning mt-3" role="alert"> | ||
Bitte vervollständige hier <a href="{% url 'base:account' %}">dein Account</a>, bevor du dich für die Crew anmeldest. | ||
</div> | ||
{% endblock %} | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from __future__ import annotations | ||
|
||
from rockon.base.models import Event | ||
|
||
|
||
def is_crewmember(request): | ||
if request.user.is_authenticated: | ||
event_id = request.session.get("current_event_id") | ||
if event_id is not None: | ||
current_event = Event.objects.get(id=event_id) | ||
is_member = current_event.crews.is_member(request.user) | ||
return {"is_crewmember": is_member} | ||
return {"is_crewmember": False} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters