diff --git a/pygraz_website/static/s/src/frontpage.scss b/pygraz_website/static/s/src/frontpage.scss index e7fa569..8adc65a 100644 --- a/pygraz_website/static/s/src/frontpage.scss +++ b/pygraz_website/static/s/src/frontpage.scss @@ -48,6 +48,10 @@ margin-top: 10px; border: 1px solid #444; } + p { + margin-top: 10px; + line-height: 1.5em; + } } h2 { diff --git a/pygraz_website/static/s/src/screen.scss b/pygraz_website/static/s/src/screen.scss index fa29824..4cbeafb 100644 --- a/pygraz_website/static/s/src/screen.scss +++ b/pygraz_website/static/s/src/screen.scss @@ -387,3 +387,7 @@ form { .email-status-bounded, .email-status-not_verified { color: red; } +.locationinfo { + line-height: 1.5em; + margin-top: 10px; +} diff --git a/pygraz_website/templates/account/edit_profile.html b/pygraz_website/templates/account/edit_profile.html index 1c79d9b..bbe9191 100644 --- a/pygraz_website/templates/account/edit_profile.html +++ b/pygraz_website/templates/account/edit_profile.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% import "forms.html" as forms %} -{% import "base.html" as base with context %} +{% import "helpers/forms.html" as forms %} +{% import "helpers/base.html" as base with context %} {% block title %}Profil ändern{% endblock %} {% block bodyclass %}editprofile{% endblock %} {% block body %} diff --git a/pygraz_website/templates/account/login.html b/pygraz_website/templates/account/login.html index da81bad..3455779 100644 --- a/pygraz_website/templates/account/login.html +++ b/pygraz_website/templates/account/login.html @@ -1,5 +1,5 @@ {% extends "base.html"%} -{% import "forms.html" as forms %} +{% import "helpers/forms.html" as forms %} {% block bodyclass %}loginpage nosidebar{% endblock %} {% block title %}Anmelden{% endblock %} {% block body %} diff --git a/pygraz_website/templates/account/register.html b/pygraz_website/templates/account/register.html index 8a724f8..793291d 100644 --- a/pygraz_website/templates/account/register.html +++ b/pygraz_website/templates/account/register.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% import "forms.html" as forms %} +{% import "helpers/forms.html" as forms %} {% block body %}
diff --git a/pygraz_website/templates/base.html b/pygraz_website/templates/base.html index 7023f7d..3bc7e27 100644 --- a/pygraz_website/templates/base.html +++ b/pygraz_website/templates/base.html @@ -76,8 +76,3 @@
-{% macro email_status(status) -%} - {% if status == 'not_verified' %}Noch nicht aktiviert{% endif %} - {% if status == 'active' %}Aktiviert{% endif %} - {% if status == 'bounced' %}Nicht erreichbar{% endif %} -{%- endmacro %} diff --git a/pygraz_website/templates/companies/edit.html b/pygraz_website/templates/companies/edit.html index 7f1cee8..98052c8 100644 --- a/pygraz_website/templates/companies/edit.html +++ b/pygraz_website/templates/companies/edit.html @@ -1,6 +1,6 @@ {% extends "companies/base.html" %} {% block title %}Firmenprofil von {{ doc.name }} ändern{% endblock %} -{% import "forms.html" as forms %} +{% import "helpers/forms.html" as forms %} {% block body %}

Firmenprofil von {{ doc.name }} ändern

diff --git a/pygraz_website/templates/helpers/base.html b/pygraz_website/templates/helpers/base.html new file mode 100644 index 0000000..b0cf8f5 --- /dev/null +++ b/pygraz_website/templates/helpers/base.html @@ -0,0 +1,15 @@ +{% macro email_status(status) -%} + {% if status == 'not_verified' %}Noch nicht aktiviert{% endif %} + {% if status == 'active' %}Aktiviert{% endif %} + {% if status == 'bounced' %}Nicht erreichbar{% endif %} +{%- endmacro %} + +{% macro location_info(location) -%} +
+ {% if location == 'Google+' %} +

Dieses Treffen findet als Google+ Hangout auf unserer Google+ Page statt. + Mehr Information zu Hangouts und wie du daran teilnehmen kannst, findest du hier. +

+ {% endif %} +
+{%- endmacro %} diff --git a/pygraz_website/templates/forms.html b/pygraz_website/templates/helpers/forms.html similarity index 100% rename from pygraz_website/templates/forms.html rename to pygraz_website/templates/helpers/forms.html diff --git a/pygraz_website/templates/index.html b/pygraz_website/templates/index.html index 543c2e7..da67a18 100644 --- a/pygraz_website/templates/index.html +++ b/pygraz_website/templates/index.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block nav_start %}active{% endblock %} {% block bodyclass %}frontpage{% endblock %} +{% import "helpers/base.html" as base with context %} {% block head %} {% endblock %} @@ -36,16 +37,23 @@

Nächstes Treffen

{{ next_meetup.start|date }}, {{ next_meetup.start|time }} - {{ next_meetup.end|time }} {% if next_meetup.location %} -
{{ next_meetup.location.name }} - {% if next_meetup.location.address %} - , {{ next_meetup.location.address }} - {% endif %} + {% if next_meetup.location == 'Google+' %} + {{ base.location_info(next_meetup.location) }} + {% else %} +
{{ next_meetup.location }} + {% if next_meetup.address %} + , {{ next_meetup.address }} + {% endif %} + {% endif %} {% endif %}

{% if next_meetup and next_meetup.address %} {% endif %} + {% else %} +

Derzeit ist kein Treffen geplant. In der Regel findet aber so etwas einmal im Monat statt, weshalb sich + dieser leere Fleck sicher bald füllen sollte :-)

{% endif %}
diff --git a/pygraz_website/templates/meetup.html b/pygraz_website/templates/meetup.html index 50e9d1a..ecbe692 100644 --- a/pygraz_website/templates/meetup.html +++ b/pygraz_website/templates/meetup.html @@ -1,4 +1,5 @@ {% extends "meetups/base.html" %} +{% import "helpers/base.html" as base with context %} {% block title %}Treffen vom {{ meetup.start|date }}{% endblock %} {% block body %}

Treffen vom {{ meetup.start|date }}

@@ -81,11 +82,14 @@

Themenvorschläge

Ort:
{{ meetup.location }}
+ {% if meetup.address %}
Adresse:
{{ meetup.address }}
{% endif %} + {{ base.location_info(meetup.location) }} + {% endif %}
{% include "_docinfo.html" %} diff --git a/pygraz_website/templates/meetups/add_idea.html b/pygraz_website/templates/meetups/add_idea.html index 247580a..7d467f2 100644 --- a/pygraz_website/templates/meetups/add_idea.html +++ b/pygraz_website/templates/meetups/add_idea.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% import "forms.html" as forms %} +{% import "helpers/forms.html" as forms %} {% block body %}
diff --git a/pygraz_website/templates/meetups/edit.html b/pygraz_website/templates/meetups/edit.html index f7c1f2b..90ec53f 100644 --- a/pygraz_website/templates/meetups/edit.html +++ b/pygraz_website/templates/meetups/edit.html @@ -1,5 +1,5 @@ {% extends "meetups/base.html" %} -{% import "forms.html" as forms %} +{% import "helpers/forms.html" as forms %} {% block body %} {% if preview %}