From 163010ea28969b6b0faeee4164c0989b3cc7abbf Mon Sep 17 00:00:00 2001 From: Zee <50284+zspencer@users.noreply.github.com> Date: Sat, 15 Apr 2023 18:26:04 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=94=E2=9C=A8=20`Agreements`:=20List=20?= =?UTF-8?q?`Agreement`s=20=20on=20`Space#edit`=20(#1367)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - https://github.com/zinc-collective/convene/issues/1364 This doesn't link to the Agreements, but it gives me a hook to add in the `#new`, `#edit` and `#destroy` bits in further PRs. --- app/views/spaces/edit.html.erb | 14 ++++++++++++++ config/locales/agreement/en.yml | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 config/locales/agreement/en.yml diff --git a/app/views/spaces/edit.html.erb b/app/views/spaces/edit.html.erb index f7df37611..d74137163 100644 --- a/app/views/spaces/edit.html.erb +++ b/app/views/spaces/edit.html.erb @@ -73,3 +73,17 @@

<%= link_to t('utilities.new.link_to'), space.location(:new, child: :utility) %>

+ +
+
+

<%= t('space.agreements.index.link_to') %>

+

<%= t('space.agreements.help_text') %>

+
+
+ <%- space.agreements.each do |agreement| %> + + <%= agreement.name %> + + <%- end %> +
+
diff --git a/config/locales/agreement/en.yml b/config/locales/agreement/en.yml new file mode 100644 index 000000000..ea3c34df9 --- /dev/null +++ b/config/locales/agreement/en.yml @@ -0,0 +1,6 @@ +en: + space: + agreements: + help_text: Such as Privacy Policies, Content Policies, Terms of Service, etc. + index: + link_to: "Agreements"