main
input#modalNews.modal(type="checkbox")
div#newnewsDiv(role="dialog" data-checkbox="modalNews")
.card
label.modal-close(for="modalNews")
textarea#newsContent(
v-model="curnews.content"
:placeholder="st.tr['News go here']"
@input="adjustHeight"
)
button(@click="sendNews()") {{ st.tr["Send"] }}
#dialog.text-center {{ st.tr[infoMsg] }}
.row
.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
button(
v-if="devs.includes(st.user.id)"
@click="showModalNews"
)
| {{ st.tr["Write news"] }}
.news(v-for="n,idx in sortedNewsList" :class="{margintop:idx>0}")
span.ndt {{ formatDatetime(n.added) }}
div(v-if="devs.includes(st.user.id)")
button(@click="editNews(n)") {{ st.tr["Edit"] }}
button(@click="deleteNews(n)") {{ st.tr["Delete"] }}
p(v-html="parseHtml(n.content)")
button(v-if="hasMore" @click="loadMore()")
| {{ st.tr["Load more"] }}