From: Radek Czajka Date: Wed, 30 Nov 2011 14:28:03 +0000 (+0100) Subject: prettier history view X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/3257903f562b02fdb4c45b4bf84002b72f42e377 prettier history view --- diff --git a/apps/wiki/templates/wiki/tabs/history_view.html b/apps/wiki/templates/wiki/tabs/history_view.html index 0764f98b..c363cef4 100644 --- a/apps/wiki/templates/wiki/tabs/history_view.html +++ b/apps/wiki/templates/wiki/tabs/history_view.html @@ -22,9 +22,10 @@ - + +

- , +
diff --git a/apps/wiki/views.py b/apps/wiki/views.py index d99bca61..f58e03a4 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -9,6 +9,7 @@ from django.http import Http404, HttpResponseForbidden from django.middleware.gzip import GZipMiddleware from django.utils.decorators import decorator_from_middleware from django.utils.encoding import smart_unicode +from django.utils.formats import localize from django.utils.translation import ugettext as _ from django.views.decorators.http import require_POST, require_GET from django.views.generic.simple import direct_to_template @@ -270,7 +271,7 @@ def history(request, chunk_id): "version": change.revision, "description": change.description, "author": change.author_str(), - "date": change.created_at, + "date": localize(change.created_at), "publishable": _("Publishable") + "\n" if change.publishable else "", "tag": ',\n'.join(unicode(tag) for tag in change.tags.all()), }) diff --git a/redakcja/static/css/history.css b/redakcja/static/css/history.css index b3191165..acd9f933 100644 --- a/redakcja/static/css/history.css +++ b/redakcja/static/css/history.css @@ -79,15 +79,14 @@ table#changes-list-container { font-weight: bold; } -#changes-list td[data-stub-value = -'version'] { +#changes-list td { vertical-align: text-top; } -#changes-list *[data-stub-value = -'date'], #changes-list *[data-stub-value = 'author'] { - font-size: 11px; +#changes-list *[data-stub-value = 'description'] { + font-size: .8em; color: gray; + white-space: pre-line; } /*