+
+
diff --git a/core/lib/core_web/controllers/layouts/stripped/component.ex b/core/lib/core_web/controllers/layouts/stripped/component.ex
index c3b1333b6..c9cc6c7eb 100644
--- a/core/lib/core_web/controllers/layouts/stripped/component.ex
+++ b/core/lib/core_web/controllers/layouts/stripped/component.ex
@@ -19,19 +19,21 @@ defmodule CoreWeb.Layouts.Stripped.Component do
def builder, do: Application.fetch_env!(:core, :stripped_menu_builder)
- def build_menu(socket, type) do
- builder().build_menu(socket, type, unquote(active_item))
+ def build_menu(assigns, type) do
+ builder().build_menu(assigns, type, unquote(active_item))
end
- def build_menus(socket) do
- menus =
- Enum.reduce(@menus, %{}, fn menu_id, acc ->
- Map.put(acc, menu_id, build_menu(socket, menu_id))
- end)
-
+ def build_menus(%{assigns: assigns} = socket) do
+ menus = build_menus(assigns)
socket |> assign(menus: menus)
end
+ def build_menus(assigns) do
+ Enum.reduce(@menus, %{}, fn menu_id, acc ->
+ Map.put(acc, menu_id, build_menu(assigns, menu_id))
+ end)
+ end
+
def update_menus(socket) do
socket
|> build_menus()
diff --git a/core/lib/core_web/controllers/layouts/website/component.ex b/core/lib/core_web/controllers/layouts/website/component.ex
index 9748aa53a..d44bee168 100644
--- a/core/lib/core_web/controllers/layouts/website/component.ex
+++ b/core/lib/core_web/controllers/layouts/website/component.ex
@@ -20,19 +20,21 @@ defmodule CoreWeb.Layouts.Website.Component do
def builder, do: Application.fetch_env!(:core, :website_menu_builder)
- def build_menu(socket, type) do
- builder().build_menu(socket, type, unquote(active_item))
+ def build_menu(assigns, type) do
+ builder().build_menu(assigns, type, unquote(active_item))
end
- def build_menus(socket) do
- menus =
- Enum.reduce(@menus, %{}, fn menu_id, acc ->
- Map.put(acc, menu_id, build_menu(socket, menu_id))
- end)
-
+ def build_menus(%{assigns: assigns} = socket) do
+ menus = build_menus(assigns)
socket |> assign(menus: menus)
end
+ def build_menus(assigns) do
+ Enum.reduce(@menus, %{}, fn menu_id, acc ->
+ Map.put(acc, menu_id, build_menu(assigns, menu_id))
+ end)
+ end
+
def update_menus(socket) do
socket
|> build_menus()
diff --git a/core/lib/core_web/controllers/layouts/workspace/component.ex b/core/lib/core_web/controllers/layouts/workspace/component.ex
index 6749d0c11..3b7ddcb07 100644
--- a/core/lib/core_web/controllers/layouts/workspace/component.ex
+++ b/core/lib/core_web/controllers/layouts/workspace/component.ex
@@ -22,19 +22,21 @@ defmodule CoreWeb.Layouts.Workspace.Component do
def builder, do: Application.fetch_env!(:core, :workspace_menu_builder)
- def build_menu(socket, type) do
- builder().build_menu(socket, type, unquote(active_item))
+ def build_menu(assigns, type) do
+ builder().build_menu(assigns, type, unquote(active_item))
end
- def build_menus(socket) do
- menus =
- Enum.reduce(@menus, %{}, fn menu_id, acc ->
- Map.put(acc, menu_id, build_menu(socket, menu_id))
- end)
-
+ def build_menus(%{assigns: assigns} = socket) do
+ menus = build_menus(assigns)
socket |> assign(menus: menus)
end
+ def build_menus(assigns) do
+ Enum.reduce(@menus, %{}, fn menu_id, acc ->
+ Map.put(acc, menu_id, build_menu(assigns, menu_id))
+ end)
+ end
+
def update_menus(socket) do
socket
|> build_menus()
diff --git a/core/lib/core_web/live/menu/builder.ex b/core/lib/core_web/live/menu/builder.ex
index ebb51401b..1c8f40ed6 100644
--- a/core/lib/core_web/live/menu/builder.ex
+++ b/core/lib/core_web/live/menu/builder.ex
@@ -28,7 +28,7 @@ defmodule CoreWeb.Menu.Builder do
import CoreWeb.Menu.Helpers
@impl true
- def build_menu(%{assigns: assigns}, menu_id, active_item) do
+ def build_menu(assigns, menu_id, active_item) do
builder = &build_item(assigns, menu_id, &1, active_item, @item_flags)
primary = select_items(menu_id, @primary)
diff --git a/core/priv/gettext/en/LC_MESSAGES/eyra-enums.po b/core/priv/gettext/en/LC_MESSAGES/eyra-enums.po
index e823876ca..afff9ba8d 100644
--- a/core/priv/gettext/en/LC_MESSAGES/eyra-enums.po
+++ b/core/priv/gettext/en/LC_MESSAGES/eyra-enums.po
@@ -333,3 +333,11 @@ msgstr "Data Donation Study"
#, elixir-autogen, elixir-format, fuzzy
msgid "project_templates.empty"
msgstr "Empty"
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "project_tools.benchmark"
+msgstr "Benchmark"
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "project_tools.data_donation"
+msgstr "Data Donation Study"
diff --git a/core/priv/gettext/en/LC_MESSAGES/eyra-error.po b/core/priv/gettext/en/LC_MESSAGES/eyra-error.po
index fcce6f1dc..a90c24771 100644
--- a/core/priv/gettext/en/LC_MESSAGES/eyra-error.po
+++ b/core/priv/gettext/en/LC_MESSAGES/eyra-error.po
@@ -12,20 +12,24 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "403.body"
-msgstr "Unfortunately, you don't have access to this page. If you think this is an error, we would appreciate it if you report this by sending an email to support@eyra.co."
+msgstr "Unfortunately, you don't have access to this page. If you think this is a mistake on our part, we would appreciate it if you report this by sending an email to support@eyra.co."
#, elixir-autogen, elixir-format
-msgid "404.body"
-msgstr "Unfortunately, this page is not available. If you think this is an error, we would appreciate it if you report this at our helpdesk. If not, click \"Home\" to return to the Panl home page."
+msgid "page.title"
+msgstr "Sorry"
-#, elixir-autogen, elixir-format
-msgid "500.body"
-msgstr "Unfortunately, this page is currently unavailable. If we are aware of this problem, we are doing the best we can to get this page up and running as soon as possible. Please try again later. If this message keeps appearing, let us know. Thanks in advance."
+#, elixir-autogen, elixir-format, fuzzy
+msgid "404.body"
+msgstr "Unfortunately, this page is unavailable. If you think this is a mistake on our part, we would appreciate it if you report this by sending an email to support@eyra.co."
-#, elixir-autogen, elixir-format
+#, elixir-autogen, elixir-format, fuzzy
msgid "503.body"
-msgstr "Unfortunately, this page is currently unavailable. If we are aware of this problem, we are doing the best we can to get this page up and running as soon as possible. Please try again later. If this message keeps appearing, let us know. Thanks in advance."
+msgstr "Unfortunately, this page is unavailable at this moment. If this is a recurring problem, we would appreciate it if you report this by sending an email to support@eyra.co."
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "500.body"
+msgstr "Unfortunately, this page is unavailable at this moment. If this is a recurring problem, we would appreciate it if you report this by sending an email to support@eyra.co."
#, elixir-autogen, elixir-format
-msgid "page.title"
-msgstr "Sorry"
+msgid "generic.body"
+msgstr "Unfortunately, something went wrong. If this is a recurring problem, we would appreciate it if you report this by sending an email to support@eyra.co."
diff --git a/core/priv/gettext/en/LC_MESSAGES/eyra-project.po b/core/priv/gettext/en/LC_MESSAGES/eyra-project.po
index d48110e2c..cb8ee9e2b 100644
--- a/core/priv/gettext/en/LC_MESSAGES/eyra-project.po
+++ b/core/priv/gettext/en/LC_MESSAGES/eyra-project.po
@@ -135,14 +135,6 @@ msgstr "Add new item"
msgid "add.new.item.button.short"
msgstr "New item"
-#, elixir-autogen, elixir-format, fuzzy
-msgid "add.new.node.button"
-msgstr "Add new group"
-
-#, elixir-autogen, elixir-format, fuzzy
-msgid "add.new.node.button.short"
-msgstr "New group"
-
#, elixir-autogen, elixir-format
msgid "retract.button"
msgstr "Retract"
@@ -190,3 +182,11 @@ msgstr "Proceed"
#, elixir-autogen, elixir-format
msgid "create.title"
msgstr "Select template"
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "create.item.button"
+msgstr "Retract"
+
+#, elixir-autogen, elixir-format
+msgid "create.item.button.short"
+msgstr ""
diff --git a/core/priv/gettext/eyra-enums.pot b/core/priv/gettext/eyra-enums.pot
index 0cd1f971d..b74a54417 100644
--- a/core/priv/gettext/eyra-enums.pot
+++ b/core/priv/gettext/eyra-enums.pot
@@ -333,3 +333,11 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "project_templates.empty"
msgstr ""
+
+#, elixir-autogen, elixir-format
+msgid "project_tools.benchmark"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+msgid "project_tools.data_donation"
+msgstr ""
diff --git a/core/priv/gettext/eyra-error.pot b/core/priv/gettext/eyra-error.pot
index 2a2a74f43..a9c7f4a9f 100644
--- a/core/priv/gettext/eyra-error.pot
+++ b/core/priv/gettext/eyra-error.pot
@@ -15,11 +15,11 @@ msgid "403.body"
msgstr ""
#, elixir-autogen, elixir-format
-msgid "404.body"
+msgid "page.title"
msgstr ""
#, elixir-autogen, elixir-format
-msgid "500.body"
+msgid "404.body"
msgstr ""
#, elixir-autogen, elixir-format
@@ -27,5 +27,9 @@ msgid "503.body"
msgstr ""
#, elixir-autogen, elixir-format
-msgid "page.title"
+msgid "500.body"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+msgid "generic.body"
msgstr ""
diff --git a/core/priv/gettext/eyra-project.pot b/core/priv/gettext/eyra-project.pot
index eb7b1c970..06f26afc1 100644
--- a/core/priv/gettext/eyra-project.pot
+++ b/core/priv/gettext/eyra-project.pot
@@ -135,14 +135,6 @@ msgstr ""
msgid "add.new.item.button.short"
msgstr ""
-#, elixir-autogen, elixir-format
-msgid "add.new.node.button"
-msgstr ""
-
-#, elixir-autogen, elixir-format
-msgid "add.new.node.button.short"
-msgstr ""
-
#, elixir-autogen, elixir-format
msgid "retract.button"
msgstr ""
@@ -190,3 +182,11 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "create.title"
msgstr ""
+
+#, elixir-autogen, elixir-format
+msgid "create.item.button"
+msgstr ""
+
+#, elixir-autogen, elixir-format
+msgid "create.item.button.short"
+msgstr ""
diff --git a/core/priv/gettext/nl/LC_MESSAGES/eyra-enums.po b/core/priv/gettext/nl/LC_MESSAGES/eyra-enums.po
index 5d5f53a0f..75a753519 100644
--- a/core/priv/gettext/nl/LC_MESSAGES/eyra-enums.po
+++ b/core/priv/gettext/nl/LC_MESSAGES/eyra-enums.po
@@ -333,3 +333,11 @@ msgstr "Data Donatie Studie"
#, elixir-autogen, elixir-format, fuzzy
msgid "project_templates.empty"
msgstr "Leeg"
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "project_tools.benchmark"
+msgstr "Benchmark"
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "project_tools.data_donation"
+msgstr "Data Donatie Studie"
diff --git a/core/priv/gettext/nl/LC_MESSAGES/eyra-error.po b/core/priv/gettext/nl/LC_MESSAGES/eyra-error.po
index 301ef6480..9d4f4cff4 100644
--- a/core/priv/gettext/nl/LC_MESSAGES/eyra-error.po
+++ b/core/priv/gettext/nl/LC_MESSAGES/eyra-error.po
@@ -12,20 +12,24 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "403.body"
-msgstr "Je hebt helaas geen toegang tot deze pagina. Is dit volgens jou een fout? Dan horen we dat graag. Stuur een e-mail naar support@eyra.co."
+msgstr "Je hebt helaas geen toegang tot deze pagina. Is dit volgens jou een fout? Dan horen we dat graag. Stuur een e-mail naar support@eyra.co."
#, elixir-autogen, elixir-format
-msgid "404.body"
-msgstr "Deze pagina is helaas niet beschikbaar. Is dit volgens jou een fout? Dan horen we dat graag. Laat een melding achter bij onze helpdesk. Zo niet, klik dan op \"Home\" om terug te gaan naar de home pagina van Panl."
+msgid "page.title"
+msgstr "Sorry"
-#, elixir-autogen, elixir-format
-msgid "500.body"
-msgstr "Deze pagina is op dit moment helaas niet bereikbaar. Als we hiervan op de hoogte zijn dan doen we ons uiterste best om de pagina zo snel mogelijk weer bereikbaar te maken. Probeer het later nog eens. Blijft deze melding verschijnen? Dan horen we het graag. Neem even contact met ons op. Alvast bedankt."
+#, elixir-autogen, elixir-format, fuzzy
+msgid "404.body"
+msgstr "Deze pagina is helaas niet beschikbaar. Is dit volgens jou een fout? Dan horen we dat graag. Stuur een e-mail naar support@eyra.co."
-#, elixir-autogen, elixir-format
+#, elixir-autogen, elixir-format, fuzzy
msgid "503.body"
-msgstr "Deze pagina is op dit moment helaas niet bereikbaar. Als we hiervan op de hoogte zijn dan doen we ons uiterste best om de pagina zo snel mogelijk weer bereikbaar te maken. Probeer het later nog eens. Blijft deze melding verschijnen? Dan horen we het graag. Neem even contact met ons op. Alvast bedankt."
+msgstr "Deze pagina is op dit moment helaas niet bereikbaar. Blijft dit probleem bestaan dan horen we dat graag. Stuur een e-mail naar support@eyra.co."
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "500.body"
+msgstr "Deze pagina is op dit moment helaas niet bereikbaar. Blijft dit probleem bestaan dan horen we dat graag. Stuur een e-mail naar support@eyra.co."
#, elixir-autogen, elixir-format
-msgid "page.title"
-msgstr "Sorry"
+msgid "generic.body"
+msgstr "Er is helaas iets misgegaan. Blijft dit probleem bestaan dan horen we dat graag. Stuur een e-mail naar support@eyra.co."
diff --git a/core/priv/gettext/nl/LC_MESSAGES/eyra-project.po b/core/priv/gettext/nl/LC_MESSAGES/eyra-project.po
index e060eddc2..07a565320 100644
--- a/core/priv/gettext/nl/LC_MESSAGES/eyra-project.po
+++ b/core/priv/gettext/nl/LC_MESSAGES/eyra-project.po
@@ -135,14 +135,6 @@ msgstr "Voeg nieuw item toe"
msgid "add.new.item.button.short"
msgstr "Nieuw item"
-#, elixir-autogen, elixir-format, fuzzy
-msgid "add.new.node.button"
-msgstr "Voeg nieuwe groep toe"
-
-#, elixir-autogen, elixir-format, fuzzy
-msgid "add.new.node.button.short"
-msgstr "Nieuwe group"
-
#, elixir-autogen, elixir-format
msgid "retract.button"
msgstr "Terugtrekken"
@@ -190,3 +182,11 @@ msgstr "Doorgaan"
#, elixir-autogen, elixir-format
msgid "create.title"
msgstr "Selecteer template"
+
+#, elixir-autogen, elixir-format, fuzzy
+msgid "create.item.button"
+msgstr "Terugtrekken"
+
+#, elixir-autogen, elixir-format
+msgid "create.item.button.short"
+msgstr ""
diff --git a/core/test/systems/project/assembly_test.exs b/core/test/systems/project/assembly_test.exs
index 4672489d2..b73a8a98d 100644
--- a/core/test/systems/project/assembly_test.exs
+++ b/core/test/systems/project/assembly_test.exs
@@ -1,11 +1,11 @@
defmodule Systems.Project.AssemblyTest do
use Core.DataCase
- alias Systems.{
- Project
- }
+ # alias Systems.{
+ # Project
+ # }
test "create_item/2" do
- %{root: root} = Factories.insert!(:project, %{name: "AAP"})
+ %{root: _root} = Factories.insert!(:project, %{name: "AAP"})
end
end