From e308ec385a4969eb4a95beac68bd52a141f6db5a Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 22 Mar 2016 14:31:38 +0100 Subject: [PATCH] fix in comments --- comment/views.py | 2 +- edumed/static/css/base.css | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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; -- 2.20.1