diff --git a/.github/workflows/build-docker-open-data.yml b/.github/workflows/build-docker-open-data.yml index cdf0a023..1be0d539 100644 --- a/.github/workflows/build-docker-open-data.yml +++ b/.github/workflows/build-docker-open-data.yml @@ -55,7 +55,7 @@ jobs: # Build Vue frontend - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' cache: yarn cache-dependency-path: vue/yarn.lock - name: Install dependencies diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 070e27fc..534c2f29 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -53,7 +53,7 @@ jobs: # Build Vue frontend - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' cache: yarn cache-dependency-path: vue/yarn.lock - name: Install dependencies diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8492e717..d699a564 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: # Build Vue frontend - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '18' - name: Install Vue dependencies working-directory: ./vue run: yarn install diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index 506d3d39..a15df5e8 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -409,7 +409,7 @@ def parse_keywords(keyword_json, space): # retrieve keyword automation cache if it exists, otherwise build from database KEYWORD_CACHE_KEY = f'automation_keyword_alias_{space.pk}' if c := caches['default'].get(KEYWORD_CACHE_KEY, None): - self.food_aliases = c + keyword_aliases = c caches['default'].touch(KEYWORD_CACHE_KEY, 30) else: for a in Automation.objects.filter(space=space, disabled=False, type=Automation.KEYWORD_ALIAS).only('param_1', 'param_2').order_by('order').all(): diff --git a/cookbook/locale/de/LC_MESSAGES/django.po b/cookbook/locale/de/LC_MESSAGES/django.po index efd13410..232e9160 100644 --- a/cookbook/locale/de/LC_MESSAGES/django.po +++ b/cookbook/locale/de/LC_MESSAGES/django.po @@ -15,10 +15,10 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-18 14:28+0200\n" -"PO-Revision-Date: 2023-02-09 13:55+0000\n" -"Last-Translator: Marion Kämpfer \n" -"Language-Team: German \n" +"PO-Revision-Date: 2023-06-21 14:19+0000\n" +"Last-Translator: Tobias Huppertz \n" +"Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -600,9 +600,8 @@ msgid "Imported %s recipes." msgstr "%s Rezepte importiert." #: .\cookbook\integration\openeats.py:26 -#, fuzzy msgid "Recipe source:" -msgstr "Rezept-Hauptseite" +msgstr "Rezept-Quelle:" #: .\cookbook\integration\paprika.py:49 msgid "Notes" diff --git a/cookbook/migrations/0193_space_internal_note.py b/cookbook/migrations/0193_space_internal_note.py new file mode 100644 index 00000000..d29d4f75 --- /dev/null +++ b/cookbook/migrations/0193_space_internal_note.py @@ -0,0 +1,18 @@ +# Generated by Django 4.1.9 on 2023-06-21 13:19 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0192_food_food_unique_open_data_slug_per_space_and_more'), + ] + + operations = [ + migrations.AddField( + model_name='space', + name='internal_note', + field=models.TextField(blank=True, null=True), + ), + ] diff --git a/cookbook/models.py b/cookbook/models.py index 70b505b0..46af7e78 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -270,6 +270,8 @@ class Space(ExportModelOperationsMixin('space'), models.Model): food_inherit = models.ManyToManyField(FoodInheritField, blank=True) show_facet_count = models.BooleanField(default=False) + internal_note = models.TextField(blank=True, null=True) + def safe_delete(self): """ Safely deletes a space by deleting all objects belonging to the space first and then deleting the space itself diff --git a/cookbook/templates/base.html b/cookbook/templates/base.html index e775bee0..0b0d12b2 100644 --- a/cookbook/templates/base.html +++ b/cookbook/templates/base.html @@ -118,6 +118,10 @@ {% trans 'Books' %} + {% plugin_main_nav_templates as plugin_main_nav_templates %} + {% for pn in plugin_main_nav_templates %} + {% include pn %} + {% endfor %}