From a4e0fb21563f2647682fd18b852708e609cef28a Mon Sep 17 00:00:00 2001 From: DrumsnChocolate Date: Tue, 14 Nov 2023 17:53:58 +0100 Subject: [PATCH] added the ability to view articles per group --- app/components/cards/article-card.hbs | 44 +++++++++---------- app/components/cards/article-card.js | 14 ------ .../application/group-memberships.js | 2 +- app/controllers/groups/group/index.js | 2 +- app/templates/articles/index.hbs | 4 +- app/templates/groups/group/index.hbs | 31 ++++++++++++- 6 files changed, 56 insertions(+), 41 deletions(-) delete mode 100644 app/components/cards/article-card.js diff --git a/app/components/cards/article-card.hbs b/app/components/cards/article-card.hbs index a126dae8c..18722dc4d 100644 --- a/app/components/cards/article-card.hbs +++ b/app/components/cards/article-card.hbs @@ -1,5 +1,5 @@
@@ -8,32 +8,32 @@
{{article.authorName}}
- + {{@title}}
- +

- {{#if article.pinned}}{{/if}} - {{article.title}} + {{#if @article.pinned}}{{/if}} + {{this.args.article.title}}

- {{#if article.group}} + {{#if @article.group}} - {{article.authorName}} + {{@article.authorName}} {{else}} - {{article.authorName}} + {{@article.authorName}} {{/if}} @@ -66,18 +66,18 @@

- {{#if showExcerpt}} - {{clean-markdown article.excerpt}} + {{#if @showExcerpt}} + {{clean-markdown @article.excerpt}} {{else}} {{markdown-to-html - article.contentCamofied + @article.contentCamofied extensions='youtubeEmbed bootstrapTable' }} {{/if}}

{{t 'component.cards.articleCard.reactions' - count=article.amountOfComments + count=@article.amountOfComments }} - {{#if useMaxHeight}} -
-
+
{{#each filteredModels as |membership|}} {{/if}} +{{#if (and (can 'show articles') @model.articles)}} +
+
+
+
+
+
+
Artikelen gepubliceerd door {{@model.name}}
+
+
+
+
+
+ {{#each @model.articles as |article|}} + + + + {{/each}} +
+
+
+
+
+{{/if}} + {{#if (and (can 'show mail-aliases') @model.mailAliases)}}