+
+
What we do with your support
+
Discover how your donation is being used in renovating our coworking space!
+
+
+
+
+ {% for post in post_list %}
+ {% include "ungleich/djangocms_blog/includes/blog_item.html" with post=post image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %}
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/digitalglarus/urls.py b/digitalglarus/urls.py
index 488ba1d3..09678b96 100644
--- a/digitalglarus/urls.py
+++ b/digitalglarus/urls.py
@@ -7,11 +7,12 @@ from .views import ContactView, IndexView, AboutView, HistoryView, LoginView, Si
MembershipPricingView, BookingSelectDatesView, BookingPaymentView, OrdersBookingDetailView,\
BookingOrdersListView, MembershipOrdersListView, OrdersMembershipDetailView, \
MembershipDeactivateView, MembershipDeactivateSuccessView, UserBillingAddressView, \
- MembershipReactivateView
+ MembershipReactivateView, SupportusView
# from membership.views import LoginRegistrationView
urlpatterns = [
url(_(r'^$'), IndexView.as_view(), name='landing'),
+ url(_(r'support-us/?$'), SupportusView.as_view(), name='supportus'),
url(_(r'contact/?$'), ContactView.as_view(), name='contact'),
url(_(r'login/?$'), LoginView.as_view(), name='login'),
url(_(r'signup/?$'), SignupView.as_view(), name='signup'),
@@ -47,7 +48,7 @@ urlpatterns = [
url(_(r'supporters/?$'), views.supporters, name='supporters'),
url(r'calendar_api/(?P
\d+)/(?P\d+)?$', views.CalendarApi.as_view(),name='calendar_api_1'),
url(r'calendar_api/', views.CalendarApi.as_view(),name='calendar_api'),
- url(_(r'support-us/?$'), views.support, name='support'),
+ # url(_(r'support-us/?$'), views.support, name='support'),
url(r'^blog/(?P\w[-\w]*)/$', views.blog_detail, name='blog-detail'),
url(r'blog/$', views.blog, name='blog'),
]
diff --git a/digitalglarus/views.py b/digitalglarus/views.py
index fabf7c93..b75fff1c 100644
--- a/digitalglarus/views.py
+++ b/digitalglarus/views.py
@@ -46,6 +46,19 @@ class IndexView(TemplateView):
template_name = "digitalglarus/index.html"
+class SupportusView(TemplateView):
+ template_name = "digitalglarus/supportus.html"
+
+ def get_context_data(self, *args, **kwargs):
+ context = super(SupportusView, self).get_context_data(**kwargs)
+ tags = ["digitalglarus"]
+ posts = Post.objects.filter(tags__name__in=tags, publish=True).translated(get_language())
+ context.update({
+ 'post_list': posts
+ })
+ return context
+
+
class LoginView(LoginViewMixin):
template_name = "digitalglarus/login.html"
form_class = LoginForm