ticket #821056, h3 in blog entries should be smaller than h1 stable
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Wed, 14 Apr 2010 10:48:58 +0200
branchstable
changeset 187 be454372d12a
parent 186 750e3df3cda8
child 188 0e9f94ed3b8c
ticket #821056, h3 in blog entries should be smaller than h1
data/cubes.blog.css
views/secondary.py
--- a/data/cubes.blog.css	Wed Apr 14 10:47:36 2010 +0200
+++ b/data/cubes.blog.css	Wed Apr 14 10:48:58 2010 +0200
@@ -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;
+}
--- a/views/secondary.py	Wed Apr 14 10:47:36 2010 +0200
+++ b/views/secondary.py	Wed Apr 14 10:48:58 2010 +0200
@@ -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>')