From fb7798631a87fa66115296f1945dbb93e39a71dc Mon Sep 17 00:00:00 2001 From: Rosanny <rosanny.sihombing@hft-stuttgart.de> Date: Mon, 12 Jul 2021 10:10:41 +0200 Subject: [PATCH] add no-mailing-list condition --- views/DE/project/mailinglists.pug | 33 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/views/DE/project/mailinglists.pug b/views/DE/project/mailinglists.pug index cfffc9a..3063e36 100644 --- a/views/DE/project/mailinglists.pug +++ b/views/DE/project/mailinglists.pug @@ -20,21 +20,24 @@ html(lang="de") div(class="col-md-12 margin_bottom_30") h2(class="text-center color_708090") <strong>Aktive Mailinglisten</strong> div(class="table-responsive table-borderless") - table(class="table table-striped table-bordered table-hover") - thead() - tr() - th Name - th Zum Abonnement der Mailingliste - th Zum zugehörigen Projekt - th Keywords - tbody() - for item in mailinglists - if item.projectstatus == '1' - tr - td #{item.name} - td <a href="#{item.src}">#{item.src}</a> - td <a href='projectoverview?projectID=#{item.id}'>#{item.project_title}</a> - td #{item.keywords} + if !mailinglists + p There is no active mailing list at the moment + else + table(class="table table-striped table-bordered table-hover") + thead() + tr() + th Name + th Zum Abonnement der Mailingliste + th Zum zugehörigen Projekt + th Keywords + tbody() + for item in mailinglists + if item.projectstatus == '1' + tr + td #{item.name} + td <a href="#{item.src}">#{item.src}</a> + td <a href='projectoverview?projectID=#{item.id}'>#{item.project_title}</a> + td #{item.keywords} div(id="aboText" class="mailingList_aboText") div(class="container") div(class="row m_bottom_0 p_top_20 p_bottom_20") -- GitLab