From: Jan Szejko Date: Tue, 22 Mar 2016 13:31:38 +0000 (+0100) Subject: fix in comments X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/e308ec385a4969eb4a95beac68bd52a141f6db5a?ds=inline fix in comments --- diff --git a/comment/views.py b/comment/views.py index c7bd9fb..40db4b0 100644 --- a/comment/views.py +++ b/comment/views.py @@ -9,7 +9,7 @@ from .models import CommentDocument as CommentDocumentModel class CommentDocumentList(ListView): - model = CommentDocument + model = CommentDocumentModel def get_queryset(self): return super(CommentDocumentList, self).get_queryset().filter(language_code=get_language()) diff --git a/edumed/static/css/base.css b/edumed/static/css/base.css index f718c23..463057b 100644 --- a/edumed/static/css/base.css +++ b/edumed/static/css/base.css @@ -16,6 +16,16 @@ body { .clr { clear: both; } +#ads { + display: inline-block; + width: 100%; } + #ads > a { + display: block; + width: 100%; } + #ads img { + display: block; + margin: 0 auto; } + #header-wrapper { background-image: url(../img/header-bar.png); background-repeat: repeat-x;