From 90aef6aa1587cffc90916b0571fa4e4bde96d27f Mon Sep 17 00:00:00 2001 From: kuro610 Date: Thu, 2 Jun 2022 13:31:12 +0200 Subject: [PATCH] Fix empty alert box when show project in logged out state --- root/static/css/local_bootstrap_modifications.css | 2 +- root/templates/project/show.tt | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/root/static/css/local_bootstrap_modifications.css b/root/static/css/local_bootstrap_modifications.css index 15272850..cbab167e 100644 --- a/root/static/css/local_bootstrap_modifications.css +++ b/root/static/css/local_bootstrap_modifications.css @@ -121,4 +121,4 @@ login logout header color .bg-header { background-color: var(--cc-green); -} \ No newline at end of file +} diff --git a/root/templates/project/show.tt b/root/templates/project/show.tt index 62cfe815..03fefff7 100644 --- a/root/templates/project/show.tt +++ b/root/templates/project/show.tt @@ -1,6 +1,6 @@ +[% IF project.archived %]
-[% IF project.archived; - IF can_unarchive %] + [% IF can_unarchive %]

📁 This project is archived (read-only). You can @@ -8,8 +8,10 @@

[% ELSE %]

📁 This project has been archived.

- [% END; -ELSIF can_edit %] + [% END %] +
+[% ELSIF can_edit %] +

[% IF inventory.quantities == 0 AND inventory.articles == 0 @@ -45,9 +47,9 @@ ELSIF can_edit %] [% ELSE %] Once you’ve finished this project you can print documents to take action. - [% END; -END %] + [% END %]

+[% END %] [% INCLUDE 'print/project.tt' %]