main
input#modalNews.modal(type="checkbox")
div#newnewsDiv(
role="dialog"
data-checkbox="modalNews"
)
.card#writeNews
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#writeNewsBtn(
v-if="devs.includes(st.user.id)"
@click="showModalNews"
)
| {{ st.tr["Write news"] }}
.news(
v-for="n,idx in newsList"
: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#loadMoreBtn(
v-if="hasMore"
@click="loadMore()"
)
| {{ st.tr["Load more"] }}