From ec65d9ed1b6e27ebbf9e134ec3271cbb6f449e7f Mon Sep 17 00:00:00 2001 From: muli Date: Sat, 24 Jun 2023 18:58:00 +0200 Subject: [PATCH] feat: Bubble-Icons gibt's jetzt als Attachment. --- .../logos => content/about}/Ansible_logo.svg | 0 .../about}/CSS3_logo_and_wordmark.svg | 0 .../about}/C_Programming_Language.svg | 0 .../about}/Debian-OpenLogo.svg | 0 .../logos => content/about}/ISO_C++_Logo.svg | 0 .../logos => content/about}/Java-Logo.svg | 0 .../logos => content/about}/LaTeX_logo.svg | 0 .../about}/MySQL_textlogo.svg | 0 .../logos => content/about}/PHP-logo.svg | 0 .../about}/Postgresql_elephant.svg | 0 .../about}/Python_logo_and_wordmark.svg | 0 .../Rust_programming_language_black_logo.svg | 0 .../images/logos => content/about}/Tux.svg | 0 .../about}/Unofficial_JavaScript_logo_2.svg | 0 .../logos => content/about}/Vue.js_Logo_2.svg | 0 content/about/contents+en.lr | 30 +++++++++--------- content/about/contents.lr | 31 +++++++++---------- flowblocks/flow_icon_bubbles.ini | 5 ++- flowblocks/flow_services_cards.ini | 4 +++ templates/blocks/flow_icon_bubbles.html | 3 +- 20 files changed, 40 insertions(+), 33 deletions(-) rename {assets/images/logos => content/about}/Ansible_logo.svg (100%) rename {assets/images/logos => content/about}/CSS3_logo_and_wordmark.svg (100%) rename {assets/images/logos => content/about}/C_Programming_Language.svg (100%) rename {assets/images/logos => content/about}/Debian-OpenLogo.svg (100%) rename {assets/images/logos => content/about}/ISO_C++_Logo.svg (100%) rename {assets/images/logos => content/about}/Java-Logo.svg (100%) rename {assets/images/logos => content/about}/LaTeX_logo.svg (100%) rename {assets/images/logos => content/about}/MySQL_textlogo.svg (100%) rename {assets/images/logos => content/about}/PHP-logo.svg (100%) rename {assets/images/logos => content/about}/Postgresql_elephant.svg (100%) rename {assets/images/logos => content/about}/Python_logo_and_wordmark.svg (100%) rename {assets/images/logos => content/about}/Rust_programming_language_black_logo.svg (100%) rename {assets/images/logos => content/about}/Tux.svg (100%) rename {assets/images/logos => content/about}/Unofficial_JavaScript_logo_2.svg (100%) rename {assets/images/logos => content/about}/Vue.js_Logo_2.svg (100%) diff --git a/assets/images/logos/Ansible_logo.svg b/content/about/Ansible_logo.svg similarity index 100% rename from assets/images/logos/Ansible_logo.svg rename to content/about/Ansible_logo.svg diff --git a/assets/images/logos/CSS3_logo_and_wordmark.svg b/content/about/CSS3_logo_and_wordmark.svg similarity index 100% rename from assets/images/logos/CSS3_logo_and_wordmark.svg rename to content/about/CSS3_logo_and_wordmark.svg diff --git a/assets/images/logos/C_Programming_Language.svg b/content/about/C_Programming_Language.svg similarity index 100% rename from assets/images/logos/C_Programming_Language.svg rename to content/about/C_Programming_Language.svg diff --git a/assets/images/logos/Debian-OpenLogo.svg b/content/about/Debian-OpenLogo.svg similarity index 100% rename from assets/images/logos/Debian-OpenLogo.svg rename to content/about/Debian-OpenLogo.svg diff --git a/assets/images/logos/ISO_C++_Logo.svg b/content/about/ISO_C++_Logo.svg similarity index 100% rename from assets/images/logos/ISO_C++_Logo.svg rename to content/about/ISO_C++_Logo.svg diff --git a/assets/images/logos/Java-Logo.svg b/content/about/Java-Logo.svg similarity index 100% rename from assets/images/logos/Java-Logo.svg rename to content/about/Java-Logo.svg diff --git a/assets/images/logos/LaTeX_logo.svg b/content/about/LaTeX_logo.svg similarity index 100% rename from assets/images/logos/LaTeX_logo.svg rename to content/about/LaTeX_logo.svg diff --git a/assets/images/logos/MySQL_textlogo.svg b/content/about/MySQL_textlogo.svg similarity index 100% rename from assets/images/logos/MySQL_textlogo.svg rename to content/about/MySQL_textlogo.svg diff --git a/assets/images/logos/PHP-logo.svg b/content/about/PHP-logo.svg similarity index 100% rename from assets/images/logos/PHP-logo.svg rename to content/about/PHP-logo.svg diff --git a/assets/images/logos/Postgresql_elephant.svg b/content/about/Postgresql_elephant.svg similarity index 100% rename from assets/images/logos/Postgresql_elephant.svg rename to content/about/Postgresql_elephant.svg diff --git a/assets/images/logos/Python_logo_and_wordmark.svg b/content/about/Python_logo_and_wordmark.svg similarity index 100% rename from assets/images/logos/Python_logo_and_wordmark.svg rename to content/about/Python_logo_and_wordmark.svg diff --git a/assets/images/logos/Rust_programming_language_black_logo.svg b/content/about/Rust_programming_language_black_logo.svg similarity index 100% rename from assets/images/logos/Rust_programming_language_black_logo.svg rename to content/about/Rust_programming_language_black_logo.svg diff --git a/assets/images/logos/Tux.svg b/content/about/Tux.svg similarity index 100% rename from assets/images/logos/Tux.svg rename to content/about/Tux.svg diff --git a/assets/images/logos/Unofficial_JavaScript_logo_2.svg b/content/about/Unofficial_JavaScript_logo_2.svg similarity index 100% rename from assets/images/logos/Unofficial_JavaScript_logo_2.svg rename to content/about/Unofficial_JavaScript_logo_2.svg diff --git a/assets/images/logos/Vue.js_Logo_2.svg b/content/about/Vue.js_Logo_2.svg similarity index 100% rename from assets/images/logos/Vue.js_Logo_2.svg rename to content/about/Vue.js_Logo_2.svg diff --git a/content/about/contents+en.lr b/content/about/contents+en.lr index 8cea19a..59c6bc0 100644 --- a/content/about/contents+en.lr +++ b/content/about/contents+en.lr @@ -38,63 +38,63 @@ card_text: After the project, we do not leave you out in the cold with the resul image_credits: servers by IYIKON from Noun Project ---- #### flow_icon_bubbles #### -icon_path: /images/logos/Python_logo_and_wordmark.svg +icon_path: Python_logo_and_wordmark.svg ---- icon_alt: Logo of the Python programming language #### flow_icon_bubbles #### -icon_path: /images/logos/ISO_C++_Logo.svg +icon_path: ISO_C++_Logo.svg ---- icon_alt: Logo of the C++ programming language #### flow_icon_bubbles #### -icon_path: /images/logos/Tux.svg +icon_path: Tux.svg ---- icon_alt: Tux the penguin mascott of Linux #### flow_icon_bubbles #### -icon_path: /images/logos/Unofficial_JavaScript_logo_2.svg +icon_path: Unofficial_JavaScript_logo_2.svg ---- icon_alt: Logo of the JavaScript programming language #### flow_icon_bubbles #### -icon_path: /images/logos/PHP-logo.svg +icon_path: PHP-logo.svg ---- icon_alt: Logo of the PHP programming language #### flow_icon_bubbles #### -icon_path: /images/logos/C_Programming_Language.svg +icon_path: C_Programming_Language.svg ---- icon_alt: Logo of the C programming language #### flow_icon_bubbles #### -icon_path: /images/logos/Ansible_logo.svg +icon_path: Ansible_logo.svg ---- icon_alt: Logo of the Ansible project #### flow_icon_bubbles #### -icon_path: /images/logos/Postgresql_elephant.svg +icon_path: Postgresql_elephant.svg ---- icon_alt: Logo of the Postgres database #### flow_icon_bubbles #### -icon_path: /images/logos/Java-Logo.svg +icon_path: Java-Logo.svg ---- icon_alt: Logo of the Java programming language #### flow_icon_bubbles #### -icon_path: /images/logos/Rust_programming_language_black_logo.svg +icon_path: Rust_programming_language_black_logo.svg ---- icon_alt: Logo of the Rust programming language #### flow_icon_bubbles #### -icon_path: /images/logos/CSS3_logo_and_wordmark.svg +icon_path: CSS3_logo_and_wordmark.svg ---- icon_alt: Logo of CSS3 #### flow_icon_bubbles #### -icon_path: /images/logos/Debian-OpenLogo.svg +icon_path: Debian-OpenLogo.svg ---- icon_alt: Logo of the Debian operating system #### flow_icon_bubbles #### -icon_path: /images/logos/MySQL_textlogo.svg +icon_path: MySQL_textlogo.svg ---- icon_alt: Logo of the MySQL database #### flow_icon_bubbles #### -icon_path: /images/logos/Vue.js_Logo_2.svg +icon_path: Vue.js_Logo_2.svg ---- icon_alt: Logo of the Vue.js framework #### flow_icon_bubbles #### -icon_path: /images/logos/LaTeX_logo.svg +icon_path: LaTeX_logo.svg ---- icon_alt: Logo of the LaTeX typesetting language --- diff --git a/content/about/contents.lr b/content/about/contents.lr index 76dba56..80f8e7d 100644 --- a/content/about/contents.lr +++ b/content/about/contents.lr @@ -36,65 +36,64 @@ card_image: images/icon_connected_servers.svg card_text: Nach dem Projekt lassen wir Sie nicht mit dem Ergebnis im Regen stehen, sondern bieten Ihnen auch über das Projekt hinaus Services für den Betrieb des abgeschlossenen Projekts und die Administration der Infrastruktur. ---- image_credits: servers by IYIKON from Noun Project ----- #### flow_icon_bubbles #### -icon_path: /images/logos/Python_logo_and_wordmark.svg +icon_path: Python_logo_and_wordmark.svg ---- icon_alt: Logo of the Python programming language #### flow_icon_bubbles #### -icon_path: /images/logos/ISO_C++_Logo.svg +icon_path: ISO_C++_Logo.svg ---- icon_alt: Logo of the C++ programming language #### flow_icon_bubbles #### -icon_path: /images/logos/Tux.svg +icon_path: Tux.svg ---- icon_alt: Tux the penguin mascott of Linux #### flow_icon_bubbles #### -icon_path: /images/logos/Unofficial_JavaScript_logo_2.svg +icon_path: Unofficial_JavaScript_logo_2.svg ---- icon_alt: Logo of the JavaScript programming language #### flow_icon_bubbles #### -icon_path: /images/logos/PHP-logo.svg +icon_path: PHP-logo.svg ---- icon_alt: Logo of the PHP programming language #### flow_icon_bubbles #### -icon_path: /images/logos/C_Programming_Language.svg +icon_path: C_Programming_Language.svg ---- icon_alt: Logo of the C programming language #### flow_icon_bubbles #### -icon_path: /images/logos/Ansible_logo.svg +icon_path: Ansible_logo.svg ---- icon_alt: Logo of the Ansible project #### flow_icon_bubbles #### -icon_path: /images/logos/Postgresql_elephant.svg +icon_path: Postgresql_elephant.svg ---- icon_alt: Logo of the Postgres database #### flow_icon_bubbles #### -icon_path: /images/logos/Java-Logo.svg +icon_path: Java-Logo.svg ---- icon_alt: Logo of the Java programming language #### flow_icon_bubbles #### -icon_path: /images/logos/Rust_programming_language_black_logo.svg +icon_path: Rust_programming_language_black_logo.svg ---- icon_alt: Logo of the Rust programming language #### flow_icon_bubbles #### -icon_path: /images/logos/CSS3_logo_and_wordmark.svg +icon_path: CSS3_logo_and_wordmark.svg ---- icon_alt: Logo of CSS3 #### flow_icon_bubbles #### -icon_path: /images/logos/Debian-OpenLogo.svg +icon_path: Debian-OpenLogo.svg ---- icon_alt: Logo of the Debian operating system #### flow_icon_bubbles #### -icon_path: /images/logos/MySQL_textlogo.svg +icon_path: MySQL_textlogo.svg ---- icon_alt: Logo of the MySQL database #### flow_icon_bubbles #### -icon_path: /images/logos/Vue.js_Logo_2.svg +icon_path: Vue.js_Logo_2.svg ---- icon_alt: Logo of the Vue.js framework #### flow_icon_bubbles #### -icon_path: /images/logos/LaTeX_logo.svg +icon_path: LaTeX_logo.svg ---- icon_alt: Logo of the LaTeX typesetting language --- diff --git a/flowblocks/flow_icon_bubbles.ini b/flowblocks/flow_icon_bubbles.ini index 5f46881..f2fbc19 100644 --- a/flowblocks/flow_icon_bubbles.ini +++ b/flowblocks/flow_icon_bubbles.ini @@ -6,9 +6,12 @@ label = {{ this.card_title }} [fields.icon_path] label = Icon Pfad description = Iconpfad z. B. /images/logos/Ansible_logo.svg -type = string +type = select +source = record.attachments.images +width = 1/2 [fields.icon_alt] label = Icon-Alt-Text description = Icon Alt Text z. B. Logo of the Ansible project type = string +width = 1/2 diff --git a/flowblocks/flow_services_cards.ini b/flowblocks/flow_services_cards.ini index 7f5c23e..45f236c 100644 --- a/flowblocks/flow_services_cards.ini +++ b/flowblocks/flow_services_cards.ini @@ -6,16 +6,20 @@ label = {{ this.card_title }} [fields.card_title] label = Card Titel type = string +width = 1/2 [fields.card_image] label = Card Icon description = Icon Pfad zB. images/circle_icon_fist.svg type = string +width = 1/2 [fields.card_text] label = Card Text type = markdown +width = 1/2 [fields.image_credits] label = Image Credits type = markdown +width = 1/2 diff --git a/templates/blocks/flow_icon_bubbles.html b/templates/blocks/flow_icon_bubbles.html index 7eb83af..ecc19fd 100644 --- a/templates/blocks/flow_icon_bubbles.html +++ b/templates/blocks/flow_icon_bubbles.html @@ -1,3 +1,4 @@
- {{ this.icon_alt }} + {% set icon = record.attachments.images.get(this.icon_path) %} + {{ this.icon_alt }}
\ No newline at end of file