[Client] Implement #102

This commit is contained in:
syuilo 2017-02-08 23:37:52 +09:00
parent d6e68bf1fa
commit 9e772626ce
1 changed files with 17 additions and 5 deletions

View File

@ -22,9 +22,12 @@
<a class="name" href={ CONFIG.url + '/' + p.user.username } data-user-preview={ p.user.id }>{ p.user.name }</a> <a class="name" href={ CONFIG.url + '/' + p.user.username } data-user-preview={ p.user.id }>{ p.user.name }</a>
<span class="is-bot" if={ p.user.is_bot }>bot</span> <span class="is-bot" if={ p.user.is_bot }>bot</span>
<span class="username">@{ p.user.username }</span> <span class="username">@{ p.user.username }</span>
<a class="created-at" href={ url }> <div class="info">
<mk-time time={ p.created_at }></mk-time> <span class="app" if={ p.app }>via <b>{ p.app.name }</b></span>
</a> <a class="created-at" href={ url }>
<mk-time time={ p.created_at }></mk-time>
</a>
</div>
</header> </header>
<div class="body"> <div class="body">
<div class="text"> <div class="text">
@ -186,12 +189,21 @@
margin 0 0 0 8px margin 0 0 0 8px
color #ccc color #ccc
> .created-at > .info
position absolute position absolute
top 0 top 0
right 0 right 0
text-align right
font-size 0.9em font-size 0.9em
color #c0c0c0
> .app
margin-right 8px
padding-right 8px
color #ccc
border-right solid 1px #eaeaea
> .created-at
color #c0c0c0
> .body > .body