Skip to content
Snippets Groups Projects
Commit be454372d12a authored by Sandrine Ribeau's avatar Sandrine Ribeau
Browse files

ticket #821056, h3 in blog entries should be smaller than h1

parent 750e3df3cda8
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
} }
div.post h1 { div.post h1 {
font-size: 1.3em; font-size: 1.7em;
position: relative; position: relative;
border-bottom: none; border-bottom: none;
...@@ -8,4 +8,5 @@ ...@@ -8,4 +8,5 @@
position: relative; position: relative;
border-bottom: none; border-bottom: none;
font-weight: normal;
} }
...@@ -10,4 +11,7 @@ ...@@ -10,4 +11,7 @@
} }
div.entry h3, h3.title {
font-size: 1.0em;
}
div.post div.postmetadata { div.post div.postmetadata {
background:transparent url(postdatabg.jpg) no-repeat scroll left bottom; background:transparent url(postdatabg.jpg) no-repeat scroll left bottom;
...@@ -12,6 +16,6 @@ ...@@ -12,6 +16,6 @@
div.post div.postmetadata { div.post div.postmetadata {
background:transparent url(postdatabg.jpg) no-repeat scroll left bottom; background:transparent url(postdatabg.jpg) no-repeat scroll left bottom;
font-size: 0.92em; font-size: 0.98em;
padding-bottom: 12px; padding-bottom: 12px;
padding-left: 10px; padding-left: 10px;
padding-top: 10px; padding-top: 10px;
...@@ -52,3 +56,14 @@ ...@@ -52,3 +56,14 @@
float:right; 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;
}
...@@ -203,10 +203,11 @@ ...@@ -203,10 +203,11 @@
_ = self._cw._ _ = self._cw._
w(u'<div class="post">') w(u'<div class="post">')
w(u'<h1>%s</h1>' % entity.view('incontext')) 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 creator = entity.creator
if creator: if creator:
vtitle = _('blog entries created by %s') % creator.name() vtitle = _('blog entries created by %s') % creator.name()
rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\ rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\
'Y eid %s, X creation_date D' % creator.eid 'Y eid %s, X creation_date D' % creator.eid
url = self._cw.build_url('view', rql=rql, vtitle=vtitle, page_size=10) url = self._cw.build_url('view', rql=rql, vtitle=vtitle, page_size=10)
...@@ -207,12 +208,12 @@ ...@@ -207,12 +208,12 @@
creator = entity.creator creator = entity.creator
if creator: if creator:
vtitle = _('blog entries created by %s') % creator.name() vtitle = _('blog entries created by %s') % creator.name()
rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\ rql = 'Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y, '\
'Y eid %s, X creation_date D' % creator.eid 'Y eid %s, X creation_date D' % creator.eid
url = self._cw.build_url('view', rql=rql, vtitle=vtitle, page_size=10) 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())) _('by'), xml_escape(vtitle), xml_escape(url), creator.name()))
w(u'<div class="entry">') w(u'<div class="entry">')
body = entity.printable_value('content') body = entity.printable_value('content')
w(body) w(body)
w(u'</div>') w(u'</div>')
...@@ -214,8 +215,9 @@ ...@@ -214,8 +215,9 @@
_('by'), xml_escape(vtitle), xml_escape(url), creator.name())) _('by'), xml_escape(vtitle), xml_escape(url), creator.name()))
w(u'<div class="entry">') w(u'<div class="entry">')
body = entity.printable_value('content') body = entity.printable_value('content')
w(body) w(body)
w(u'</div>') w(u'</div>')
w(u'<br class="clear"/>')
w(u'<div class="postmetadata">%s</div>' % entity.view('post-reldata')) w(u'<div class="postmetadata">%s</div>' % entity.view('post-reldata'))
w(u'</div>') w(u'</div>')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment