Responsive :)

- Android routenplaner support
This commit is contained in:
Martin Bauer
2013-11-10 20:47:05 +01:00
parent 81120ab385
commit c693b7b1e5
19 changed files with 313 additions and 115 deletions

View File

@@ -24,7 +24,7 @@ from django.dispatch import receiver
from django.core.mail import EmailMultiAlternatives
from musicians.models import Musician
#from musicians.models import Musician
from django.template.loader import get_template
@@ -35,9 +35,9 @@ def my_handler(sender, instance, created, **kwargs):
if not created:
return
receivers = [ m.user.email for m in Musician.objects.all() ]
#receivers = [ m.user.email for m in Musician.objects.all() ]
# overwrite only to me for now
receivers = [ 'martinbauer86@gmail.com' ]
receivers = [ 'forum@blechreiz.com' ]
subject = "Blechreiz Forum: " + instance.titel
from_email = 'forum@blechreiz.com'
@@ -45,7 +45,7 @@ def my_handler(sender, instance, created, **kwargs):
c = { 'messages': Message.objects.all().order_by('-creation_time')[:10] }
text_template = get_template( "simpleforum/mail.txt" )
html_template = get_template( "simpleforum/mail.html" )
#html_template = get_template( "simpleforum/mail.html" )
text_content = text_template.render( Context(c) )
#html_content = html_template.render( Context(c) )

View File

@@ -17,11 +17,33 @@
{% addtoblock "css" strip %}<link rel="stylesheet" href="{{STATIC_URL}}/css/datepicker.css" type="text/css" media="screen" /> {% endaddtoblock %}
{% addtoblock "css" strip %} <link rel="stylesheet" href="{{STATIC_URL}}/css/blogpost.css" type="text/css" media="screen" /> {% endaddtoblock %}
{% addtoblock "css" %}
<style>
.embed-container {
position: relative;
padding-bottom: 56.25%; /* 16/9 ratio */
padding-top: 30px; /* IE6 workaround*/
height: 0;
overflow: hidden;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
{% endaddtoblock %}
{% addtoblock "js" %}
<script src="{{STATIC_URL}}/js/bootstrap-datepicker.js"></script>
<script src="{{STATIC_URL}}/js/bootstrap-datepicker.de.js"></script>

View File

@@ -13,9 +13,9 @@ youtubeRegex = re.compile( u'(?:https://)?(?:http://)?www.youtube.(?:com|de)/wat
@stringfilter
def youtube_filter( value ):
replacement = """
<iframe width="480" height="360" src="//www.youtube.de/embed/\g<videoID>" frameborder="0" allowfullscreen></iframe>
<div class="embed-container"><iframe src="//www.youtube.de/embed/\g<videoID>" frameborder="0" allowfullscreen></iframe> </div>
"""
return mark_safe( youtubeRegex.sub( replacement, value ) )