ticket #914504, fix blogentry title by moving date below separating line stable
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Wed, 28 Apr 2010 17:01:32 +0200
branchstable
changeset 203 0ab3a2e44be3
parent 201 4ebf5a6d1a54
child 204 8d2de3fd5b2c
ticket #914504, fix blogentry title by moving date below separating line
data/cubes.blog.css
views/secondary.py
--- a/data/cubes.blog.css	Mon Apr 26 18:48:25 2010 +0200
+++ b/data/cubes.blog.css	Wed Apr 28 17:01:32 2010 +0200
@@ -56,14 +56,14 @@
  float:right;
 }
 
-span.author {
+div.author_date span{
  float:right;
- font-size: 1.2em;
 }
 
-div.creation_date {
+div.author_date {
  font-size:1.2em;
- border-bottom-style: ridge;
- border-bottom-color: #CCC;
- border-bottom-width: thin;
+ font-style:italic;
+ border-top-style: ridge;
+ border-top-color: #CCC;
+ border-top-width: thin;
 }
--- a/views/secondary.py	Mon Apr 26 18:48:25 2010 +0200
+++ b/views/secondary.py	Wed Apr 28 17:01:32 2010 +0200
@@ -133,7 +133,7 @@
         _ = self._cw._
         w(u'<div class="post">')
         w(u'<h1>%s</h1>' % entity.view('incontext'))
-        w(u'<div class="creation_date">%s</div>' %
+        w(u'<div class="author_date"><span>%s' %
           self._cw.format_date(entity.creation_date))
         creator = entity.creator
         if creator:
@@ -141,8 +141,9 @@
             rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\
                   'Y eid %s, X creation_date D' % creator.eid
             url = self._cw.build_url('view', rql=rql, vtitle=vtitle, page_size=10)
-            w(u'<span class="author">%s <a title="%s" href="%s">%s</a></span>' % (
+            w(u' %s <a title="%s" href="%s">%s</a>' % (
                 _('by'), xml_escape(vtitle), xml_escape(url), creator.name()))
+        w(u'</span></div>')
         w(u'<div class="entry">')
         body = entity.printable_value('content')
         w(body)