X-Git-Url: https://git.auder.net/variants/Baroque/style.css?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FNews.vue;h=96492ab25c6faaf929de9f35d420e7a0fc6594c5;hb=fef153df51fe60a5af4c5b2a05e0b1177187bf62;hp=ad0561a63aa1a147d6bae7188c6a99b8429e9bad;hpb=910d631b73cad5ffef1b4461157b704e7e7057d8;p=vchess.git
diff --git a/client/src/views/News.vue b/client/src/views/News.vue
index ad0561a6..96492ab2 100644
--- a/client/src/views/News.vue
+++ b/client/src/views/News.vue
@@ -5,7 +5,7 @@ main
role="dialog"
data-checkbox="modalNews"
)
- .card
+ .card#writeNews
label.modal-close(for="modalNews")
textarea#newsContent(
v-model="curnews.content"
@@ -16,21 +16,24 @@ main
#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#writeNews(
- v-if="devs.includes(st.user.id)"
+ 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) }}
- div(v-if="devs.includes(st.user.id)")
+ .dev-buttons(v-if="devTeam")
button(@click="editNews(n)") {{ st.tr["Edit"] }}
button(@click="deleteNews(n)") {{ st.tr["Delete"] }}
- p(v-html="parseHtml(n.content)")
- button(
+ 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()"
)
@@ -40,29 +43,49 @@ main
-