# HG changeset patch
# User Sandrine Ribeau <sandrine.ribeau@logilab.fr>
# Date 1271234938 -7200
#      Wed Apr 14 10:48:58 2010 +0200
# Branch stable
# Node ID be454372d12a763a7271808cfe175a6f34b31866
# Parent  750e3df3cda8c07d90148e8547c02095b454cf03
ticket #821056, h3 in blog entries should be smaller than h1

diff --git a/data/cubes.blog.css b/data/cubes.blog.css
--- a/data/cubes.blog.css
+++ b/data/cubes.blog.css
@@ -4,14 +4,18 @@
 }
 
 div.post h1 {
-  font-size: 1.3em;
+  font-size: 1.7em;
   position: relative;
   border-bottom: none;
+  font-weight: normal;
 }
 
+div.entry h3, h3.title {
+  font-size: 1.0em;
+}
 div.post div.postmetadata {
   background:transparent url(postdatabg.jpg) no-repeat scroll left bottom;
-  font-size: 0.92em;
+  font-size: 0.98em;
   padding-bottom: 12px;
   padding-left: 10px;
   padding-top: 10px;
@@ -52,3 +56,14 @@
  float:right;
 }
 
+span.author {
+ float:right;
+ font-size: 1.2em;
+}
+
+div.creation_date {
+ font-size:1.2em;
+ border-bottom-style: ridge;
+ border-bottom-color: #CCC;
+ border-bottom-width: thin;
+}
diff --git a/views/secondary.py b/views/secondary.py
--- a/views/secondary.py
+++ b/views/secondary.py
@@ -203,19 +203,21 @@
         _ = self._cw._
         w(u'<div class="post">')
         w(u'<h1>%s</h1>' % entity.view('incontext'))
-        w(u'%s ' % entity.postinfo_description())
+        w(u'<div class="creation_date">%s</div>' %
+          self._cw.format_date(entity.creation_date))
         creator = entity.creator
         if creator:
             vtitle = _('blog entries created by %s') % creator.name()
             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'%s <a title="%s" href="%s">%s</a>' % (
+            w(u'<span class="author">%s <a title="%s" href="%s">%s</a></span>' % (
                 _('by'), xml_escape(vtitle), xml_escape(url), creator.name()))
         w(u'<div class="entry">')
         body = entity.printable_value('content')
         w(body)
         w(u'</div>')
+        w(u'<br class="clear"/>')
         w(u'<div class="postmetadata">%s</div>' % entity.view('post-reldata'))
         w(u'</div>')