diff --git a/.gitignore b/.gitignore index 567f4900..abe4802a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ db.sqlite3 *.pyc +*.DS_Store build/ dist/ *.egg_info diff --git a/digitalglarus/models.py b/digitalglarus/models.py index 0cc7e9fa..5c79120f 100644 --- a/digitalglarus/models.py +++ b/digitalglarus/models.py @@ -15,15 +15,15 @@ class Message(models.Model): return "%s - %s - %s" % (self.name, self.email, self.received_date) -# class Supporter(models.Model): -# name = models.CharField(max_length=200) -# description = models.TextField(null=True, blank=True) -# -# def __str__(self): -# return "%s" % (self.name) -# -# def get_absolute_url(self): -# return reverse('dgSupporters_view', args=[self.pk]) +class Supporter(models.Model): + name = models.CharField(max_length=200) + description = models.TextField(null=True, blank=True) + + def __str__(self): + return "%s" % (self.name) + + def get_absolute_url(self): + return reverse('dgSupporters_view', args=[self.pk]) # # # class DGGallery(models.Model): diff --git a/digitalglarus/static/digitalglarus/img/thank-you.png b/digitalglarus/static/digitalglarus/img/thank-you.png new file mode 100644 index 00000000..3f332b0a Binary files /dev/null and b/digitalglarus/static/digitalglarus/img/thank-you.png differ diff --git a/digitalglarus/templates/cms/digitalglarus/index.html b/digitalglarus/templates/cms/digitalglarus/index.html index 22d6a2a6..99841a7d 100644 --- a/digitalglarus/templates/cms/digitalglarus/index.html +++ b/digitalglarus/templates/cms/digitalglarus/index.html @@ -93,8 +93,8 @@

Have you become interested in the project?

Contact us at

- - digitalglarus@ungleich.ch + + info@digitalglarus.ch // +41 (0) 44 534 66 22

diff --git a/digitalglarus/templates/digitalglarus/base.html b/digitalglarus/templates/digitalglarus/base.html index 56bdf3a0..bebc5efe 100644 --- a/digitalglarus/templates/digitalglarus/base.html +++ b/digitalglarus/templates/digitalglarus/base.html @@ -101,7 +101,7 @@

Copyright © ungleich GmbH - 2015

+ 2016

diff --git a/digitalglarus/templates/digitalglarus/contact.html b/digitalglarus/templates/digitalglarus/contact.html index 0736ff78..fc38f862 100755 --- a/digitalglarus/templates/digitalglarus/contact.html +++ b/digitalglarus/templates/digitalglarus/contact.html @@ -21,7 +21,7 @@ +41 (0) 44 534 66 22

Email: - digitalglarus@ungleich.ch + info@digitalglarus.ch

Address: Hauptstrasse 14, 8775 Luchsingen
diff --git a/digitalglarus/templates/digitalglarus/index.html b/digitalglarus/templates/digitalglarus/index.html index 22d6a2a6..300bf6e8 100644 --- a/digitalglarus/templates/digitalglarus/index.html +++ b/digitalglarus/templates/digitalglarus/index.html @@ -93,8 +93,8 @@

Have you become interested in the project?

Contact us at

- - digitalglarus@ungleich.ch + + info@digitalglarus.ch // +41 (0) 44 534 66 22

diff --git a/digitalglarus/templates/digitalglarus/support.html b/digitalglarus/templates/digitalglarus/support.html new file mode 100644 index 00000000..2f2c66f0 --- /dev/null +++ b/digitalglarus/templates/digitalglarus/support.html @@ -0,0 +1,37 @@ +{% extends "digitalglarus/base.html" %} +{% load staticfiles %} +{% block title %}About{% endblock %} + +{% block content %} +
+
+
+
+

+ BECOME A SUPPORTER +

+
+
+
+

+ If you want to be our supporter, + you can send your donation to: +

+

+ Bank info +
+ Account: 123123123123123123 +
+ Name: Fake name +

+

+ If you want to donate us in other means (your time, skill, etc..) + you can write us to donation@digitalglarus.ch +

+
+
+
+
+ + +{% endblock %} \ No newline at end of file diff --git a/digitalglarus/templates/digitalglarus/supporters.html b/digitalglarus/templates/digitalglarus/supporters.html index aa2d1fbf..7f3df7e7 100644 --- a/digitalglarus/templates/digitalglarus/supporters.html +++ b/digitalglarus/templates/digitalglarus/supporters.html @@ -5,24 +5,30 @@ {% block content %}
+

-

+

Supporters


- {% for supporter in supporters %} -
-
-
-

{{supporter.name}}

-

{{supporter.description}}

-
-
-
- {% endfor %} +

+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. +

+
+
+
+ {% for supporter in supporters %} +
+

{{supporter.name}}

+
+ {% endfor %} +
+ BECOME A SUPPORTER +
+
diff --git a/digitalglarus/urls.py b/digitalglarus/urls.py index e8e97351..e7002d3f 100644 --- a/digitalglarus/urls.py +++ b/digitalglarus/urls.py @@ -8,7 +8,8 @@ urlpatterns = [ url(r'old_contact$', views.contact, name='contact'), url(r'old_letscowork$', views.letscowork, name='letscowork'), url(r'old_home$', views.home, name='home'), - url(r'supporters/$', views.supporters, name='supporters'), + url(r'supporters/?$', views.supporters, name='supporters'), + url(r'support-us/?$', views.support, name='support'), url(r'', views.index, name='index'), url(r'blog/',views.blog,name='blog'), url(r'^blog/(?P\w[-\w]*)/$', views.blog_detail, name='blog-detail'), diff --git a/digitalglarus/views.py b/digitalglarus/views.py index 617c1522..cf355600 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -8,7 +8,7 @@ from django.utils.translation import get_language from djangocms_blog.models import Post from django.core.urlresolvers import resolve -from .models import Message#, Supporter +from .models import Message, Supporter class MessageForm(ModelForm): required_css_class = 'form-control' @@ -36,7 +36,7 @@ def index(request): return home(request) def home(request): - return render(request, 'digitalglarus/index.html') + return render(request, 'index.html') def letscowork(request): return render(request, 'digitalglarus/letscowork.html') @@ -62,7 +62,7 @@ def contact(request): def blog(request): tags = ["digitalglarus"] - posts = Post.objects.filter(tags__name__in=tags) + posts = Post.objects.filter_by_language(get_language()).filter(tags__name__in=tags) context = { 'post_list': posts, } @@ -70,13 +70,14 @@ def blog(request): def blog_detail(request, slug): - language = get_language() - post = Post.objects.translated('en-us', slug=slug).get() + post = Post.objects.filter_by_language(get_language()).filter(slug=slug).first() context = { 'post': post, } - return render(request, 'glarus_blog/post_detail.html', context) + return render(request, 'post_detail.html', context) +def support(request): + return render(request, 'digitalglarus/support.html') def supporters(request): context = {