1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-12 21:58:12 +09:00

Merge pull request #386 from ha-dai/improve-poll

#338 Add link to individual page.
This commit is contained in:
syuilo⭐️ 2017-04-01 09:37:52 +09:00 committed by GitHub
commit d3148143d4

View File

@ -2,7 +2,8 @@
<p class="title"><i class="fa fa-pie-chart"></i>%i18n:desktop.tags.mk-recommended-polls-home-widget.title%</p>
<button onclick={ fetch } title="%i18n:desktop.tags.mk-recommended-polls-home-widget.refresh%"><i class="fa fa-refresh"></i></button>
<div class="poll" if={ !loading && poll != null }>
<p class="text" if={ poll.text }>{ poll.text }</p>
<p class="text" if={ poll.text }><a href="/{ poll.user.username }/{ poll.id }">{ poll.text }</a></p>
<p class="text" if={ !poll.text }><a href="/{ poll.user.username }/{ poll.id }"><i class="fa fa-link"></i></a></p>
<mk-poll post={ poll }></mk-poll>
</div>
<p class="empty" if={ !loading && poll == null }>%i18n:desktop.tags.mk-recommended-polls-home-widget.nothing%</p>