Add wrapper div to aid in styling

This commit is contained in:
Robin Ward 2017-08-23 14:47:09 -04:00
parent f766ea4257
commit 950c9e50ac
1 changed files with 8 additions and 4 deletions

View File

@ -66,15 +66,19 @@ createWidget('topic-map-summary', {
contents.push(h('li', contents.push(h('li',
[ [
h('h4', I18n.t('created_lowercase')), h('h4', I18n.t('created_lowercase')),
avatarFor('tiny', { username: attrs.createdByUsername, template: attrs.createdByAvatarTemplate }), h('div.topic-map-post.created-at', [
dateNode(attrs.topicCreatedAt) avatarFor('tiny', { username: attrs.createdByUsername, template: attrs.createdByAvatarTemplate }),
dateNode(attrs.topicCreatedAt)
])
] ]
)); ));
contents.push(h('li', contents.push(h('li',
h('a', { attributes: { href: attrs.lastPostUrl } }, [ h('a', { attributes: { href: attrs.lastPostUrl } }, [
h('h4', I18n.t('last_reply_lowercase')), h('h4', I18n.t('last_reply_lowercase')),
avatarFor('tiny', { username: attrs.lastPostUsername, template: attrs.lastPostAvatarTemplate }), h('div.topic-map-post.last-reply', [
dateNode(attrs.lastPostAt) avatarFor('tiny', { username: attrs.lastPostUsername, template: attrs.lastPostAvatarTemplate }),
dateNode(attrs.lastPostAt)
])
]) ])
)); ));
contents.push(h('li', [ contents.push(h('li', [