From 34855ab0897728c8b4e82eae5cd5e195f5d0c8e4 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sat, 16 Apr 2022 23:36:09 +0200 Subject: [PATCH] add alert partial --- _includes/partial/alert.html | 11 +++++++++++ _layouts/alternatives.html | 12 ++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 _includes/partial/alert.html diff --git a/_includes/partial/alert.html b/_includes/partial/alert.html new file mode 100644 index 00000000..bcb50576 --- /dev/null +++ b/_includes/partial/alert.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/_layouts/alternatives.html b/_layouts/alternatives.html index b3a146fb..2ae1cce4 100644 --- a/_layouts/alternatives.html +++ b/_layouts/alternatives.html @@ -3,9 +3,17 @@ layout: content ---

{{ page.title }}

-

Please keep in mind that this is the view of one or more devs of InvenTree. So there is an elemenet of bias involved.

+ {% include partial/alert.html + style='info' + title='caveat' + desc='Please keep in mind that this is the view of one or more devs of InvenTree. So there is an elemenet of bias involved.' + %} {{ content }} {% if page.oss %} -

This alternative is (F)OSS - let's celebrate this by heading over, giving it a good look and staring the project! Motiviation keeps projects and maintainers healthy.

+ {% include partial/alert.html + style='info' + title='(F)OSS' + desc="This alternative is (F)OSS - let's celebrate this by heading over, giving it a good look and staring the project! Motiviation keeps projects and maintainers healthy." + %} {% endif %}