decidim-system 0.27.5 → 0.28.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -7
  3. data/app/commands/decidim/system/create_admin.rb +1 -1
  4. data/app/commands/decidim/system/create_default_content_blocks.rb +1 -14
  5. data/app/commands/decidim/system/create_default_pages.rb +23 -4
  6. data/app/commands/decidim/system/populate_help.rb +2 -2
  7. data/app/commands/decidim/system/register_organization.rb +15 -2
  8. data/app/commands/decidim/system/update_admin.rb +1 -1
  9. data/app/commands/decidim/system/update_organization.rb +2 -1
  10. data/app/controllers/decidim/system/application_controller.rb +1 -1
  11. data/app/controllers/decidim/system/dashboard_controller.rb +1 -0
  12. data/app/controllers/decidim/system/organizations_controller.rb +30 -4
  13. data/app/forms/decidim/system/admin_form.rb +1 -1
  14. data/app/forms/decidim/system/update_organization_form.rb +14 -2
  15. data/app/jobs/decidim/system/application_job.rb +1 -1
  16. data/app/packs/entrypoints/decidim_system.js +5 -3
  17. data/app/packs/stylesheets/decidim/system/application.scss +108 -21
  18. data/app/views/decidim/system/admins/_form.html.erb +1 -7
  19. data/app/views/decidim/system/admins/edit.html.erb +3 -3
  20. data/app/views/decidim/system/admins/index.html.erb +3 -31
  21. data/app/views/decidim/system/admins/new.html.erb +3 -3
  22. data/app/views/decidim/system/dashboard/show.html.erb +13 -3
  23. data/app/views/decidim/system/devise/mailers/password_change.html.erb +1 -1
  24. data/app/views/decidim/system/devise/mailers/reset_password_instructions.html.erb +2 -2
  25. data/app/views/decidim/system/devise/passwords/edit.html.erb +5 -8
  26. data/app/views/decidim/system/devise/passwords/new.html.erb +5 -5
  27. data/app/views/decidim/system/devise/sessions/new.html.erb +10 -12
  28. data/app/views/decidim/system/oauth_applications/_form.html.erb +5 -20
  29. data/app/views/decidim/system/oauth_applications/edit.html.erb +9 -11
  30. data/app/views/decidim/system/oauth_applications/index.html.erb +6 -8
  31. data/app/views/decidim/system/oauth_applications/new.html.erb +9 -11
  32. data/app/views/decidim/system/oauth_applications/show.html.erb +20 -23
  33. data/app/views/decidim/system/organizations/_advanced_settings.html.erb +10 -8
  34. data/app/views/decidim/system/organizations/_csp_settings.html.erb +12 -0
  35. data/app/views/decidim/system/organizations/_file_upload_settings.erb +23 -46
  36. data/app/views/decidim/system/organizations/_omniauth_provider.html.erb +13 -16
  37. data/app/views/decidim/system/organizations/_omniauth_settings.html.erb +6 -8
  38. data/app/views/decidim/system/organizations/_smtp_settings.html.erb +12 -22
  39. data/app/views/decidim/system/organizations/edit.html.erb +29 -26
  40. data/app/views/decidim/system/organizations/index.html.erb +3 -4
  41. data/app/views/decidim/system/organizations/new.html.erb +29 -42
  42. data/app/views/decidim/system/shared/_admins_list.html.erb +27 -0
  43. data/app/views/decidim/system/shared/_notices.html.erb +4 -6
  44. data/app/views/decidim/system/shared/_organizations_list.html.erb +10 -3
  45. data/app/views/layouts/decidim/system/_header.html.erb +2 -2
  46. data/app/views/layouts/decidim/system/_login_items.html.erb +3 -7
  47. data/app/views/layouts/decidim/system/_sidebar.html.erb +3 -7
  48. data/app/views/layouts/decidim/system/application.html.erb +24 -28
  49. data/app/views/layouts/decidim/system/login.html.erb +10 -9
  50. data/config/locales/ar.yml +0 -14
  51. data/config/locales/bg.yml +0 -4
  52. data/config/locales/ca.yml +69 -13
  53. data/config/locales/cs.yml +70 -13
  54. data/config/locales/de.yml +62 -13
  55. data/config/locales/el.yml +7 -12
  56. data/config/locales/en.yml +70 -13
  57. data/config/locales/es-MX.yml +70 -13
  58. data/config/locales/es-PY.yml +70 -13
  59. data/config/locales/es.yml +70 -13
  60. data/config/locales/eu.yml +69 -12
  61. data/config/locales/fa-IR.yml +0 -5
  62. data/config/locales/fi-plain.yml +69 -13
  63. data/config/locales/fi.yml +69 -13
  64. data/config/locales/fr-CA.yml +44 -19
  65. data/config/locales/fr.yml +54 -13
  66. data/config/locales/ga-IE.yml +0 -4
  67. data/config/locales/gl.yml +0 -14
  68. data/config/locales/hu.yml +0 -10
  69. data/config/locales/id-ID.yml +0 -10
  70. data/config/locales/is-IS.yml +0 -4
  71. data/config/locales/it.yml +0 -14
  72. data/config/locales/ja.yml +43 -19
  73. data/config/locales/lb.yml +0 -5
  74. data/config/locales/lt.yml +17 -12
  75. data/config/locales/lv.yml +0 -10
  76. data/config/locales/nl.yml +0 -12
  77. data/config/locales/no.yml +0 -14
  78. data/config/locales/pl.yml +0 -14
  79. data/config/locales/pt-BR.yml +0 -14
  80. data/config/locales/pt.yml +0 -14
  81. data/config/locales/ro-RO.yml +3 -21
  82. data/config/locales/ru.yml +0 -10
  83. data/config/locales/sk.yml +0 -10
  84. data/config/locales/sl.yml +0 -9
  85. data/config/locales/sv.yml +0 -14
  86. data/config/locales/tr-TR.yml +3 -14
  87. data/config/locales/uk.yml +0 -9
  88. data/config/locales/zh-CN.yml +0 -12
  89. data/config/locales/zh-TW.yml +6 -11
  90. data/config/routes.rb +6 -2
  91. data/db/seeds.rb +1 -1
  92. data/lib/decidim/system/engine.rb +2 -25
  93. data/lib/decidim/system/menu.rb +35 -0
  94. data/lib/decidim/system/version.rb +1 -1
  95. data/lib/tasks/decidim_system.rake +1 -1
  96. metadata +20 -25
  97. data/app/packs/entrypoints/decidim_system.scss +0 -1
  98. data/app/packs/src/decidim/system/application.js +0 -41
  99. data/app/packs/stylesheets/decidim/system/_actions.scss +0 -8
  100. data/app/packs/stylesheets/decidim/system/_forms.scss +0 -36
  101. data/app/packs/stylesheets/decidim/system/_foundation_and_overrides.scss +0 -53
  102. data/app/packs/stylesheets/decidim/system/_layout.scss +0 -18
  103. data/app/packs/stylesheets/decidim/system/_login.scss +0 -37
  104. data/app/packs/stylesheets/decidim/system/_settings.scss +0 -569
  105. data/app/packs/stylesheets/decidim/system/_sidebar.scss +0 -83
  106. data/app/packs/stylesheets/decidim/system/_tables.scss +0 -6
  107. data/app/views/decidim/system/admins/show.html.erb +0 -9
  108. data/app/views/decidim/system/organizations/show.html.erb +0 -10
  109. data/config/environment.rb +0 -3
@@ -6,15 +6,11 @@ sk:
6
6
  confirm_destroy: Naozaj chcete odstrániť?
7
7
  destroy: Odstrániť
8
8
  edit: Upraviť
9
- new: Nový
10
9
  save: Uložit
11
10
  title: Akcie
12
11
  admins:
13
12
  create:
14
13
  error: Pri tvorbe nového správcu nastala chyba.
15
- success: Správca úspešne vytvorený
16
- destroy:
17
- success: Správca úspešne vymazaný
18
14
  edit:
19
15
  title: Upraviť správcu
20
16
  update: Aktualizovať
@@ -23,11 +19,8 @@ sk:
23
19
  new:
24
20
  create: Vytvoriť
25
21
  title: Nový správca
26
- show:
27
- edit: Upraviť
28
22
  update:
29
23
  error: Pri aktualizácii správcu nastala chyba.
30
- success: Správca úspešne aktualizovaný
31
24
  default_pages:
32
25
  placeholders:
33
26
  content: Prosíme pridajte zmysluplný obsah na statickú stránku %{page} na paneli správcu.
@@ -41,7 +34,6 @@ sk:
41
34
  fields:
42
35
  created_at: Vytvorené
43
36
  email: E-mail
44
- name: Admin
45
37
  validations:
46
38
  email_uniqueness: správca s touto e-mailovou adresou už existuje
47
39
  organization:
@@ -55,7 +47,6 @@ sk:
55
47
  organizations:
56
48
  create:
57
49
  error: Pri vytváraní novej organizácie došlo k chybe.
58
- success: Organizácia úspešne vytvorená.
59
50
  edit:
60
51
  secondary_hosts_hint: Zadajte každý host na nový riadok
61
52
  index:
@@ -86,7 +77,6 @@ sk:
86
77
  users_registration_mode:
87
78
  disabled: Môžete pristupovať iba pomocou externého účtu
88
79
  enabled: Umožniť účastníkom registráciu a prihlásenie sa
89
- existing: Neumožniť účastníkom registráciu, ale umožniť prihlásenie sa existujúcim účastníkom
90
80
  shared:
91
81
  notices:
92
82
  no_organization_warning_html: Musíte vytvoriť organizáciu, aby ste mohli začať. Prečítajte si %{guide}, než začnete.
@@ -6,15 +6,11 @@ sl:
6
6
  confirm_destroy: Ali ste prepričani, da želite izbrisati to?
7
7
  destroy: Izbriši
8
8
  edit: Uredi
9
- new: Nov
10
9
  save: Shrani
11
10
  title: Dejanja
12
11
  admins:
13
12
  create:
14
13
  error: Pojavila se je težava pri kreiranju skrbnika.
15
- success: Skrbnik uspešno kreiran
16
- destroy:
17
- success: Skrbnik uspešno izbrisan
18
14
  edit:
19
15
  title: Uredi skrbnika
20
16
  update: Posodobi
@@ -23,11 +19,8 @@ sl:
23
19
  new:
24
20
  create: Ustvari
25
21
  title: Nov skrbnik
26
- show:
27
- edit: Uredi
28
22
  update:
29
23
  error: Pojavila se je težava pri urejanju skrbnika.
30
- success: Skrbnik uspešno posodobljen
31
24
  menu:
32
25
  admins: Skrbniki
33
26
  dashboard: Nadzorna plošča
@@ -37,7 +30,6 @@ sl:
37
30
  fields:
38
31
  created_at: Ustvarjen ob
39
32
  email: Email
40
- name: Skrbnik
41
33
  organization:
42
34
  actions:
43
35
  save_and_invite: Ustvari organizacijo in povabi skrbnika
@@ -48,6 +40,5 @@ sl:
48
40
  organizations:
49
41
  create:
50
42
  error: Pojavila se je težava pri kreiranju organizacije.
51
- success: Organizacija uspešno kreirana.
52
43
  index:
53
44
  title: Organizacije
@@ -38,15 +38,11 @@ sv:
38
38
  confirm_destroy: Vill du radera detta?
39
39
  destroy: Radera
40
40
  edit: Redigera
41
- new: Ny
42
41
  save: Spara
43
42
  title: Åtgärder
44
43
  admins:
45
44
  create:
46
45
  error: Det gick inte att skapa en ny administratör.
47
- success: Administratören har skapats
48
- destroy:
49
- success: Administratören har raderats
50
46
  edit:
51
47
  title: Redigera administratören
52
48
  update: Uppdatera
@@ -55,11 +51,8 @@ sv:
55
51
  new:
56
52
  create: Skapa
57
53
  title: Ny administratör
58
- show:
59
- edit: Redigera
60
54
  update:
61
55
  error: Det gick inte att uppdatera administratören.
62
- success: Administratören har uppdaterats
63
56
  dashboard:
64
57
  show:
65
58
  current_organizations: Nuvarande organisationer
@@ -77,7 +70,6 @@ sv:
77
70
  fields:
78
71
  created_at: Skapad
79
72
  email: E-post
80
- name: Administratör
81
73
  validations:
82
74
  email_uniqueness: det finns redan en administratör med samma e-postadress
83
75
  oauth_application:
@@ -85,7 +77,6 @@ sv:
85
77
  created_at: Skapad den
86
78
  name: OAuth app namn
87
79
  organization_name: Organisation
88
- name: OAuth app
89
80
  organization:
90
81
  actions:
91
82
  save_and_invite: Skapa organisation och bjud in administratör
@@ -95,7 +86,6 @@ sv:
95
86
  name: Namn
96
87
  omniauth_settings: Omniauth-inställningar
97
88
  smtp_settings: SMTP-inställningar
98
- name: Organisation
99
89
  oauth_applications:
100
90
  create:
101
91
  error: Det gick inte att skapa appen.
@@ -123,7 +113,6 @@ sv:
123
113
  show: Visa avancerade inställningar
124
114
  create:
125
115
  error: Det gick inte att skapa en ny organisation.
126
- success: Organisationen har skapats.
127
116
  edit:
128
117
  secondary_hosts_hint: Ange var och en av dem på en ny rad
129
118
  file_upload_settings:
@@ -158,8 +147,6 @@ sv:
158
147
  smtp_settings:
159
148
  fieldsets:
160
149
  sender: Avsändare
161
- instructions:
162
- from_label: 'E-postavsändare är: "your-organization-name <your-organization@your-provider.org>". Om du lämnar tomt kommer e-postadressen användas'
163
150
  placeholder:
164
151
  from_email: your-organization@example.org
165
152
  from_label: din-organisation-namn
@@ -169,7 +156,6 @@ sv:
169
156
  users_registration_mode:
170
157
  disabled: Åtkomst kan endast göras med externa konton
171
158
  enabled: Tillåt deltagare att registrera och logga in
172
- existing: Tillåt inte deltagare att registrera sig, men tillåt inloggning från befintliga användare
173
159
  shared:
174
160
  notices:
175
161
  no_organization_warning_html: Kom igång genom att skapa en organisation. Läs %{guide} innan du fortsätter.
@@ -38,15 +38,14 @@ tr:
38
38
  confirm_destroy: Bunu silmek istediğinizden emin misiniz?
39
39
  destroy: Sil
40
40
  edit: Düzenle
41
- new: Yeni
41
+ new_admin: Yeni Yönetici
42
+ new_oauth_application: Yetkilendirilmiş Uygulama
43
+ new_organization: Yeni organizasyon
42
44
  save: Kaydet
43
45
  title: Eylemler
44
46
  admins:
45
47
  create:
46
48
  error: Yeni bir yönetici oluşturulurken bir sorun oluştu.
47
- success: Yönetici başarıyla oluşturuldu
48
- destroy:
49
- success: Yönetici başarıyla silindi
50
49
  edit:
51
50
  title: Yönetici düzenle
52
51
  update: Güncelle
@@ -55,11 +54,8 @@ tr:
55
54
  new:
56
55
  create: Oluştur
57
56
  title: Yeni yönetici
58
- show:
59
- edit: Düzenle
60
57
  update:
61
58
  error: Bu yönetici güncellenirken bir sorun oluştu.
62
- success: Yönetici başarıyla güncellendi
63
59
  default_pages:
64
60
  placeholders:
65
61
  content: Lütfen yönetici panosundaki %{page} statik sayfasına anlamlı içerik ekleyin.
@@ -74,7 +70,6 @@ tr:
74
70
  fields:
75
71
  created_at: Adresinde düzenlendi
76
72
  email: E-posta
77
- name: yönetim
78
73
  validations:
79
74
  email_uniqueness: aynı e-postaya sahip başka bir yönetici zaten var
80
75
  oauth_application:
@@ -82,7 +77,6 @@ tr:
82
77
  created_at: Oluşturuldu
83
78
  name: OAuth Uygulama Adı
84
79
  organization_name: Kuruluş
85
- name: OAuth uygulaması
86
80
  organization:
87
81
  actions:
88
82
  save_and_invite: Kuruluş oluşturun ve yöneticiyi davet edin
@@ -92,7 +86,6 @@ tr:
92
86
  name: Adı
93
87
  omniauth_settings: Omniauth ayarları
94
88
  smtp_settings: SMTP ayarları
95
- name: Kuruluş
96
89
  oauth_applications:
97
90
  create:
98
91
  error: Bu uygulama oluşturulurken bir hata oluştu.
@@ -117,7 +110,6 @@ tr:
117
110
  organizations:
118
111
  create:
119
112
  error: Yeni bir organizasyon oluştururken bir sorun oluştu.
120
- success: Kuruluş başarıyla oluşturuldu.
121
113
  edit:
122
114
  secondary_hosts_hint: Her birini yeni bir satıra girin
123
115
  file_upload_settings:
@@ -163,8 +155,6 @@ tr:
163
155
  smtp_settings:
164
156
  fieldsets:
165
157
  sender: Gönderen
166
- instructions:
167
- from_label: 'E-posta göndereni: "your-organization-name <your-organization@example.org>" olacaktır. ''E-posta adresini'' etiket olarak kullanmak için boş bırakın'
168
158
  placeholder:
169
159
  from_email: your-organization@example.org
170
160
  from_label: your-organization-name
@@ -174,7 +164,6 @@ tr:
174
164
  users_registration_mode:
175
165
  disabled: Erişim yalnızca harici hesaplarla yapılabilir
176
166
  enabled: Katılımcıların kaydolmasına ve giriş yapmasına izin ver
177
- existing: Katılımcıların kaydolmasına izin verme, ancak mevcut katılımcıların giriş yapmasına izin ver
178
167
  shared:
179
168
  notices:
180
169
  no_organization_warning_html: Başlamak için bir organizasyon oluşturmanız gerekir. Devam etmeden önce %{guide} okuduğunuzdan emin olun.
@@ -6,15 +6,11 @@ uk:
6
6
  confirm_destroy: Ви впевнені, що хочете видалити це?
7
7
  destroy: Видалити
8
8
  edit: Редагувати
9
- new: Додати
10
9
  save: Зберегти
11
10
  title: Дії
12
11
  admins:
13
12
  create:
14
13
  error: При спробі додати нового адміністратора сталася помилка.
15
- success: Адміністратора успішно додано
16
- destroy:
17
- success: Адміністратора успішно видалено
18
14
  edit:
19
15
  title: Редагувати адміністратора
20
16
  update: Оновити
@@ -23,11 +19,8 @@ uk:
23
19
  new:
24
20
  create: Додати
25
21
  title: Додати адміністратора
26
- show:
27
- edit: Редагувати
28
22
  update:
29
23
  error: При спробі оновити цього адміністратора сталася помилка.
30
- success: Адміністратора успішно оновлено
31
24
  default_pages:
32
25
  placeholders:
33
26
  content: Будь ласка, додайте змістовний вміст на статичну сторінку %{page} на приладній дошці адміністратора.
@@ -41,7 +34,6 @@ uk:
41
34
  fields:
42
35
  created_at: 'Додано:'
43
36
  email: Адреса електронної пошти
44
- name: Адміністратор
45
37
  validations:
46
38
  email_uniqueness: вже є інший адміністратор з такою ж адресою електронної пошти
47
39
  organization:
@@ -53,7 +45,6 @@ uk:
53
45
  organizations:
54
46
  create:
55
47
  error: При спробі додати нову організацію сталася помилка.
56
- success: Організацію успішно додано.
57
48
  edit:
58
49
  secondary_hosts_hint: Введіть кожен з них в новому рядку
59
50
  index:
@@ -31,15 +31,11 @@ zh-CN:
31
31
  confirm_destroy: 您确定要删除这个吗?
32
32
  destroy: 删除
33
33
  edit: 编辑
34
- new: 新的
35
34
  save: 保存
36
35
  title: 行动
37
36
  admins:
38
37
  create:
39
38
  error: 创建新管理员时出错。
40
- success: 管理员创建成功
41
- destroy:
42
- success: 管理员删除成功
43
39
  edit:
44
40
  title: 编辑管理员
45
41
  update: 更新
@@ -48,11 +44,8 @@ zh-CN:
48
44
  new:
49
45
  create: 创建
50
46
  title: 新管理员
51
- show:
52
- edit: 编辑
53
47
  update:
54
48
  error: 更新此管理员时出错。
55
- success: 管理员更新成功
56
49
  default_pages:
57
50
  placeholders:
58
51
  content: 请添加有意义的内容到管理仪表盘上的 %{page} 静态页面。
@@ -67,7 +60,6 @@ zh-CN:
67
60
  fields:
68
61
  created_at: 创建于
69
62
  email: 电子邮件地址
70
- name: 管理员
71
63
  validations:
72
64
  email_uniqueness: 已存在具有相同电子邮件的其他管理员
73
65
  oauth_application:
@@ -75,7 +67,6 @@ zh-CN:
75
67
  created_at: 创建于
76
68
  name: OAuth 应用程序名称
77
69
  organization_name: 组织
78
- name: OAuth 应用程序
79
70
  organization:
80
71
  actions:
81
72
  save_and_invite: 创建机构并邀请管理员
@@ -85,7 +76,6 @@ zh-CN:
85
76
  name: 名称
86
77
  omniauth_settings: Omniauth 设置
87
78
  smtp_settings: SMTP 设置
88
- name: 组织
89
79
  oauth_applications:
90
80
  create:
91
81
  error: 创建此应用程序时出现问题。
@@ -110,7 +100,6 @@ zh-CN:
110
100
  organizations:
111
101
  create:
112
102
  error: 创建一个新组织时出现问题。
113
- success: 组织成功创建。
114
103
  edit:
115
104
  secondary_hosts_hint: 在新行中输入其中每一个
116
105
  file_upload_settings:
@@ -163,7 +152,6 @@ zh-CN:
163
152
  users_registration_mode:
164
153
  disabled: 只能通过外部帐户访问
165
154
  enabled: 允许参与者注册并登录
166
- existing: 不允许参与者注册,但允许现有参与者登录
167
155
  shared:
168
156
  notices:
169
157
  no_organization_warning_html: 您必须创建一个组织才能启动。请确保您在继续之前阅读 %{guide}。
@@ -38,15 +38,14 @@ zh-TW:
38
38
  confirm_destroy: 是否確定要刪除這個?
39
39
  destroy: 刪除
40
40
  edit: 編輯
41
- new: 新的
42
41
  save: 儲存
43
42
  title: 操作
44
43
  admins:
45
44
  create:
46
45
  error: 新增管理員時發生問題
47
- success: 管理員創建成功
46
+ success: 管理員創建成功.
48
47
  destroy:
49
- success: 管理員成功刪除
48
+ success: 管理員成功刪除.
50
49
  edit:
51
50
  title: 編輯管理貝
52
51
  update: 更新
@@ -55,18 +54,18 @@ zh-TW:
55
54
  new:
56
55
  create: 建立
57
56
  title: 新增管理員
58
- show:
59
- edit: 編輯
60
57
  update:
61
58
  error: 更新此管理員時發生問題。
62
- success: 管理員已成功更新
59
+ success: 管理員已成功更新.
63
60
  dashboard:
64
61
  show:
65
62
  current_organizations: 目前組織
66
63
  default_pages:
67
64
  placeholders:
68
65
  content: 請在管理員儀表板的 %{page} 靜態頁面上新增有意義的內容。
66
+ summary: 請在管理員儀表板的 %{page} 靜態頁面上新增有意義的摘要
69
67
  title: 預設的 %{page} 標題
68
+ terms-of-service: 服務條款
70
69
  menu:
71
70
  admins: 管理員
72
71
  dashboard: 儀表板
@@ -77,7 +76,6 @@ zh-TW:
77
76
  fields:
78
77
  created_at: 建立於
79
78
  email: 電子郵件
80
- name: 管理員
81
79
  validations:
82
80
  email_uniqueness: 已有相同電子郵件的其他管理員存在
83
81
  oauth_application:
@@ -85,7 +83,6 @@ zh-TW:
85
83
  created_at: 建立於
86
84
  name: OAuth 應用程式名稱
87
85
  organization_name: 組織
88
- name: Oauth 應用程式
89
86
  organization:
90
87
  actions:
91
88
  save_and_invite: 建立組織並邀請管理員
@@ -95,7 +92,6 @@ zh-TW:
95
92
  name: 姓名
96
93
  omniauth_settings: Omniauth 設置
97
94
  smtp_settings: SMTP設定
98
- name: 組織
99
95
  oauth_applications:
100
96
  create:
101
97
  error: 創建應用程序時出現問題。
@@ -123,7 +119,6 @@ zh-TW:
123
119
  show: 顯示進階設定
124
120
  create:
125
121
  error: 創建新組織時發生問題。
126
- success: 組織創建成功。
127
122
  edit:
128
123
  secondary_hosts_hint: 請在新的一行輸入每一個
129
124
  file_upload_settings:
@@ -172,7 +167,7 @@ zh-TW:
172
167
  fieldsets:
173
168
  sender: 寄件者
174
169
  instructions:
175
- from_label: '郵件發送者將會是:"您的組織名稱 <your-organization@example.org>"。若要使用「電子郵件地址」作為標籤,請留空'
170
+ from_label: '郵件發送者將會是:"您的組織名稱 <your-organization@example.org>"。若要使用「電子郵件地址」作為標籤,請留空.'
176
171
  placeholder:
177
172
  from_email: your-organization@example.org
178
173
  from_label: 你的組織名稱
data/config/routes.rb CHANGED
@@ -11,8 +11,12 @@ Decidim::System::Engine.routes.draw do
11
11
  }
12
12
 
13
13
  authenticate(:admin) do
14
- resources :organizations, except: [:destroy]
15
- resources :admins
14
+ resources :organizations, except: [:show, :destroy] do
15
+ member do
16
+ post :resend_invitation
17
+ end
18
+ end
19
+ resources :admins, except: [:show]
16
20
  resources :oauth_applications
17
21
 
18
22
  root to: "dashboard#show"
data/db/seeds.rb CHANGED
@@ -6,7 +6,7 @@ if !Rails.env.production? || ENV.fetch("SEED", nil)
6
6
  password = ENV.fetch("DECIDIM_SYSTEM_USER_PASSWORD", "decidim123456789")
7
7
 
8
8
  Decidim::System::Admin.find_or_initialize_by(email: "system@example.org").update!(
9
- password: password,
9
+ password:,
10
10
  password_confirmation: password
11
11
  )
12
12
 
@@ -6,6 +6,7 @@ require "active_support/all"
6
6
  require "devise"
7
7
  require "devise-i18n"
8
8
  require "decidim/core"
9
+ require "decidim/system/menu"
9
10
  require "foundation_rails_helper"
10
11
 
11
12
  module Decidim
@@ -21,31 +22,7 @@ module Decidim
21
22
  end
22
23
 
23
24
  initializer "decidim_system.menu" do
24
- Decidim.menu :system_menu do |menu|
25
- menu.add_item :root,
26
- I18n.t("menu.dashboard", scope: "decidim.system"),
27
- decidim_system.root_path,
28
- position: 1,
29
- active: ["decidim/system/dashboard" => :show]
30
-
31
- menu.add_item :organizations,
32
- I18n.t("menu.organizations", scope: "decidim.system"),
33
- decidim_system.organizations_path,
34
- position: 2,
35
- active: :inclusive
36
-
37
- menu.add_item :admins,
38
- I18n.t("menu.admins", scope: "decidim.system"),
39
- decidim_system.admins_path,
40
- position: 3,
41
- active: :inclusive
42
-
43
- menu.add_item :oauth_applications,
44
- I18n.t("menu.oauth_applications", scope: "decidim.system"),
45
- decidim_system.oauth_applications_path,
46
- position: 4,
47
- active: [%w(decidim/system/oauth_applications), []]
48
- end
25
+ Decidim::System::Menu.register_system_menu!
49
26
  end
50
27
 
51
28
  initializer "decidim_system.webpacker.assets_path" do
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module System
5
+ class Menu
6
+ def self.register_system_menu!
7
+ Decidim.menu :system_menu do |menu|
8
+ menu.add_item :root,
9
+ I18n.t("menu.dashboard", scope: "decidim.system"),
10
+ decidim_system.root_path,
11
+ position: 1,
12
+ active: ["decidim/system/dashboard" => :show]
13
+
14
+ menu.add_item :organizations,
15
+ I18n.t("menu.organizations", scope: "decidim.system"),
16
+ decidim_system.organizations_path,
17
+ position: 2,
18
+ active: :inclusive
19
+
20
+ menu.add_item :admins,
21
+ I18n.t("menu.admins", scope: "decidim.system"),
22
+ decidim_system.admins_path,
23
+ position: 3,
24
+ active: :inclusive
25
+
26
+ menu.add_item :oauth_applications,
27
+ I18n.t("menu.oauth_applications", scope: "decidim.system"),
28
+ decidim_system.oauth_applications_path,
29
+ position: 4,
30
+ active: [%w(decidim/system/oauth_applications), []]
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-system version.
5
5
  module System
6
6
  def self.version
7
- "0.27.5"
7
+ "0.28.0.rc4"
8
8
  end
9
9
  end
10
10
  end
@@ -8,7 +8,7 @@ namespace :decidim_system do
8
8
  password = prompt("Password")
9
9
  password_confirmation = prompt("Password confirmation")
10
10
 
11
- admin = Decidim::System::Admin.new(email: email, password: password, password_confirmation: password_confirmation)
11
+ admin = Decidim::System::Admin.new(email:, password:, password_confirmation:)
12
12
 
13
13
  if admin.valid?
14
14
  admin.save!