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="devTeam"
@click="showModalNews"
)
| {{ st.tr["Write news"] }}
.news(
v-for="n,idx in newsList"
:id="'n' + n.id"
:class="{margintop:idx>0}"
)
span.ndt {{ formatDatetime(n.added) }}
.dev-buttons(v-if="devTeam")
button(@click="editNews(n)") {{ st.tr["Edit"] }}
button(@click="deleteNews(n)") {{ st.tr["Delete"] }}
button(@click="gotoPrevNext(n, 1)") {{ st.tr["Previous_n"] }}
button(@click="gotoPrevNext(n, -1)") {{ st.tr["Next_n"] }}
.news-content(v-html="parseHtml(n.content)")
button#loadMoreBtn(
v-if="hasMore"
@click="loadMore()"
)
| {{ st.tr["Load more"] }}