Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (44 sloc) 1.5 KB
<dv.component name="show-post" loadedPost$=post.show-object.loadedObject>
<div>
<post.show-object id=$id includeTimestamp=true hidden=true />
<dv.if condition=post.show-object.errors>
Post not found
</dv.if>
<dv.if condition=post.show-object.loadedObject class="post-container">
<div class="inline-block">
<sn.upvote
disabled=!$user ||
post.show-object.loadedObject.author === $user.username
id=$id isPost=true user=$user />
</div>
<div class="inline-block">
<div>
<span class="post-title">
<a href=post.show-object.loadedObject.url>
{{ post.show-object.loadedObject.title }}
</a>
</span>
<span class="subtext">(<post.show-url class="inline-block"
showBaseUrlOnly=true
url=post.show-object.loadedObject.url />)</span>
</div>
<div class="subtext">
posted by {{ post.show-object.loadedObject.author }}
<dv.show-date class="post-date"
date=post.show-object.loadedObject.timestamp
format='time-ago' />
<div class="sep"></div>
<scoreposts.show-target
class="inline-block score"
id=$id
showId=false
showScores=false
totalLabel="" />
points
<div class="sep"></div>
<dv.link href="/post" params={ id: $id }>comments</dv.link>
</div>
</div>
</dv.if>
</div>
</dv.component>
You can’t perform that action at this time.