From b0d1b82b3cf4db9b9ce32158083cd72f0d1f9ea2 Mon Sep 17 00:00:00 2001 From: Tom Teichler <tom.teichler@teckids.org> Date: Wed, 17 Jul 2019 12:03:57 +0200 Subject: [PATCH] Add gitignore and tt_lesson snippet. Advances #01. --- .gitignore | 52 +++++++++++++++++++ .../chronos/templates/chronos/tt_lesson.html | 11 ++++ 2 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 biscuit/apps/chronos/templates/chronos/tt_lesson.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c9a6fd37 --- /dev/null +++ b/.gitignore @@ -0,0 +1,52 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# pyenv +.python-version + +# Environments +.env +.venv +env/ +venv/ +ENV/ + +# Editors +*~ +DEADJOE +\#*# + +# Database +db.sqlite3 diff --git a/biscuit/apps/chronos/templates/chronos/tt_lesson.html b/biscuit/apps/chronos/templates/chronos/tt_lesson.html new file mode 100644 index 00000000..84f222a3 --- /dev/null +++ b/biscuit/apps/chronos/templates/chronos/tt_lesson.html @@ -0,0 +1,11 @@ +<div class="card" style="width: 18rem; {{% if Lesson.color-fg %}} foreground-color: {{ Lesson.color-fg }}; {% endif%} {{% if Lesson.color-bg %}} background-color: {{% Lesson.color-bg %}};"> + <div class="card-body"> + <h5 class="card-title">{{ Lesson.subject.abbrev }}</h5> + <h6 class="">Rooms {# Will be implemented soon#}</h6> + <ul> + <li>{{ Lesson.teachers }}</li> + <li>{{ Lesson.groups }}</li> + </ul> + <a href="{{% '#' %}}" class="card-link">Room informations</a> + </div> +</div> -- GitLab