# HG changeset patch
# User Sandrine Ribeau <sandrine.ribeau@logilab.fr>
# Date 1272466892 -7200
#      Wed Apr 28 17:01:32 2010 +0200
# Branch stable
# Node ID 0ab3a2e44be31a1a5fc9e1d560f9e1b4809d4152
# Parent  4ebf5a6d1a549a53d857eff6f6b3d984b4534f06
ticket #914504, fix blogentry title by moving date below separating line

diff --git a/data/cubes.blog.css b/data/cubes.blog.css
--- a/data/cubes.blog.css
+++ b/data/cubes.blog.css
@@ -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;
 }
diff --git a/views/secondary.py b/views/secondary.py
--- a/views/secondary.py
+++ b/views/secondary.py
@@ -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)