Bugfixes, Daten umgezogen

This commit is contained in:
Martin Bauer
2013-10-15 21:51:05 +02:00
parent 175df72a21
commit cd635aff9b
31 changed files with 71 additions and 54 deletions

View File

@@ -14,6 +14,8 @@ class Message ( models.Model ):
author = models.ForeignKey( User, verbose_name=_("Author") )
def __unicode__( self ):
return self.author.username + " : " + self.titel

View File

@@ -77,7 +77,7 @@ $(document).ready(function(){
<div class="row">
<div class="span1">
<img src="{{MEDIA_URL}}/user_images/{{message.author}}_circle.png" class="img-circle author_pic">
<img src="{{MEDIA_URL}}/user_images/{{message.author}}_thumb.png" class="img-circle author_pic">
</div>
<div class="span7">
<div class="name">

View File

@@ -7,7 +7,7 @@ from django.utils.safestring import mark_safe
register = django.template.Library()
youtubeRegex = re.compile( u'(?:http://)?www.youtube.(?:com|de)/watch\?v=(?P<videoID>[-\w]*)' )
youtubeRegex = re.compile( u'(?:https://)?(?:http://)?www.youtube.(?:com|de)/watch\?v=(?P<videoID>[-\w]*)' )
@register.filter( name='youtube' )
@stringfilter