decidim-system 0.26.10 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-system might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +21 -9
- data/app/commands/decidim/system/create_admin.rb +1 -1
- data/app/commands/decidim/system/create_default_content_blocks.rb +1 -1
- data/app/commands/decidim/system/create_default_pages.rb +1 -1
- data/app/commands/decidim/system/create_oauth_application.rb +1 -1
- data/app/commands/decidim/system/destroy_oauth_application.rb +1 -1
- data/app/commands/decidim/system/populate_help.rb +3 -3
- data/app/commands/decidim/system/register_organization.rb +5 -2
- data/app/commands/decidim/system/update_admin.rb +1 -1
- data/app/commands/decidim/system/update_oauth_application.rb +1 -1
- data/app/commands/decidim/system/update_organization.rb +1 -1
- data/app/controllers/decidim/system/application_controller.rb +0 -1
- data/app/forms/decidim/system/admin_form.rb +1 -1
- data/app/forms/decidim/system/file_upload_settings_form.rb +19 -19
- data/app/forms/decidim/system/update_organization_form.rb +4 -3
- data/app/helpers/decidim/system/application_helper.rb +0 -4
- data/app/packs/entrypoints/decidim_system.js +1 -0
- data/app/packs/stylesheets/decidim/system/application.scss +1 -0
- data/app/views/decidim/system/admins/edit.html.erb +0 -2
- data/app/views/decidim/system/admins/index.html.erb +1 -5
- data/app/views/decidim/system/admins/new.html.erb +0 -2
- data/app/views/decidim/system/admins/show.html.erb +2 -2
- data/app/views/decidim/system/dashboard/show.html.erb +0 -2
- data/app/views/decidim/system/devise/passwords/edit.html.erb +2 -2
- data/app/views/decidim/system/devise/passwords/new.html.erb +2 -2
- data/app/views/decidim/system/devise/sessions/new.html.erb +2 -2
- data/app/views/decidim/system/devise/shared/_links.html.erb +11 -5
- data/app/views/decidim/system/oauth_applications/edit.html.erb +0 -2
- data/app/views/decidim/system/oauth_applications/index.html.erb +0 -2
- data/app/views/decidim/system/oauth_applications/new.html.erb +0 -2
- data/app/views/decidim/system/oauth_applications/show.html.erb +0 -2
- data/app/views/decidim/system/organizations/edit.html.erb +0 -6
- data/app/views/decidim/system/organizations/index.html.erb +0 -2
- data/app/views/decidim/system/organizations/new.html.erb +3 -5
- data/app/views/layouts/decidim/system/_login_items.html.erb +1 -1
- data/app/views/layouts/decidim/system/application.html.erb +2 -3
- data/app/views/layouts/decidim/system/login.html.erb +1 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +4 -89
- data/config/locales/bg.yml +1 -3
- data/config/locales/ca.yml +4 -31
- data/config/locales/cs.yml +4 -31
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +6 -33
- data/config/locales/el.yml +3 -94
- data/config/locales/en.yml +2 -30
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +3 -30
- data/config/locales/es-PY.yml +3 -30
- data/config/locales/es.yml +3 -30
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +20 -47
- data/config/locales/fi-plain.yml +3 -30
- data/config/locales/fi.yml +7 -34
- data/config/locales/fr-CA.yml +3 -30
- data/config/locales/fr.yml +3 -30
- data/config/locales/ga-IE.yml +1 -2
- data/config/locales/gl.yml +3 -2
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +4 -21
- data/config/locales/id-ID.yml +4 -2
- data/config/locales/is-IS.yml +4 -3
- data/config/locales/it.yml +3 -2
- data/config/locales/ja.yml +3 -30
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +1 -5
- data/config/locales/lt.yml +1 -189
- data/config/locales/lv.yml +4 -2
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +4 -2
- data/config/locales/no.yml +3 -2
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +3 -2
- data/config/locales/pt-BR.yml +4 -3
- data/config/locales/pt.yml +3 -2
- data/config/locales/ro-RO.yml +3 -10
- data/config/locales/ru.yml +4 -2
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +4 -2
- data/config/locales/sl.yml +2 -2
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +3 -2
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +4 -3
- data/config/locales/uk.yml +4 -2
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +3 -2
- data/config/locales/zh-TW.yml +1 -189
- data/db/seeds.rb +2 -2
- data/lib/decidim/system/engine.rb +0 -1
- data/lib/decidim/system/test/factories.rb +3 -3
- data/lib/decidim/system/version.rb +1 -1
- metadata +10 -25
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -10
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -10
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
- data/config/locales/sq-AL.yml +0 -1
- data/config/locales/th-TH.yml +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a13e278028184766cd3a5a7a2f3c225a42a231e4d1ea790fdd3e2a7049b2446
|
4
|
+
data.tar.gz: 16990b3fb9011f5296039152d4017d689b4fa924f7f5877a7fcbba39a2aaa526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf6a125d14b87455c6d37eea06cb1bb65d8b6bb81c9f205c6ecd671d89a7f7538970684406689eddbf7fa16be0c8fb501c5ec0f7a740ebb1de676d1bde66a5e
|
7
|
+
data.tar.gz: 0d15b289d10046b71e486af2f553f909c6dd7edaba01e4f0666146207b725f3866c6818d002efb2211284936a68ea0f1d331b6eaa75d597f1db7c68c67c46c73
|
data/README.md
CHANGED
@@ -40,22 +40,34 @@ When using Decidim as multi-tenant, you should keep these in mind:
|
|
40
40
|
|
41
41
|
## Managing System admins
|
42
42
|
|
43
|
-
|
44
|
-
create it:
|
43
|
+
For logging in to this dashboard, you'll need to create a system admin account from your terminal:
|
45
44
|
|
46
|
-
```
|
47
|
-
|
48
|
-
email: "your-email@example.org",
|
49
|
-
password: "your-safe-password",
|
50
|
-
password_confirmation: "your-safe-password"
|
51
|
-
)
|
45
|
+
```bash
|
46
|
+
bin/rails decidim_system:create_admin
|
52
47
|
```
|
53
48
|
|
54
|
-
|
49
|
+
You'll be asked for an email and a password. For security, the password will not get displayed back at you and you'll need to confirm it.
|
50
|
+
|
51
|
+
Once you have created your first admin you can access the system dashboard at `/system`. For instance, if you have Decidim running at `https://example.org`, this URL would be `https://example.org/system`.
|
52
|
+
You'll be able to login with your newly created user.
|
53
|
+
|
55
54
|
From the system dashboard you can add new admins.
|
56
55
|
|
57
56
|
⚠️ If you need to reset your administrator password you'll need to do it by entering the Rails console and changing it manually. ⚠️
|
58
57
|
|
58
|
+
. Open the rails console:
|
59
|
+
```bash
|
60
|
+
bin/rails console
|
61
|
+
```
|
62
|
+
. Run the following instructions, changing them accordingly:
|
63
|
+
```ruby
|
64
|
+
system_admin = Decidim::System::Admin.order(:id).first # for the first system admin
|
65
|
+
system_admin = Decidim::System::Admin.find_by_email "system@example.org" # if you already know the email
|
66
|
+
system_admin.password = "decidim123456789" # change for something secure
|
67
|
+
system_admin.password_confirmation = "decidim123456789"
|
68
|
+
system_admin.save
|
69
|
+
```
|
70
|
+
|
59
71
|
## Managing organizations
|
60
72
|
|
61
73
|
Once you have your system admin setup you can also start managing the organizations in your deploy. To do it, login at the system dashboard and create a new organization
|
@@ -4,7 +4,7 @@ module Decidim
|
|
4
4
|
module System
|
5
5
|
# A command with all the business logic when creating a new admin in
|
6
6
|
# the system.
|
7
|
-
class CreateAdmin <
|
7
|
+
class CreateAdmin < Decidim::Command
|
8
8
|
# Public: Initializes the command.
|
9
9
|
#
|
10
10
|
# form - A form object with the params.
|
@@ -4,7 +4,7 @@ module Decidim
|
|
4
4
|
module System
|
5
5
|
# A command with all the business logic to create the default content blocks
|
6
6
|
# for a newly-created organization.
|
7
|
-
class CreateDefaultContentBlocks <
|
7
|
+
class CreateDefaultContentBlocks < Decidim::Command
|
8
8
|
DEFAULT_CONTENT_BLOCKS =
|
9
9
|
[:hero, :sub_hero, :highlighted_content_banner, :how_to_participate, :stats, :metrics, :footer_sub_hero].freeze
|
10
10
|
|
@@ -5,7 +5,7 @@ module Decidim
|
|
5
5
|
# A command with all the business logic when creating a new organization in
|
6
6
|
# the system. It creates the organization and invites the admin to the
|
7
7
|
# system.
|
8
|
-
class CreateDefaultPages <
|
8
|
+
class CreateDefaultPages < Decidim::Command
|
9
9
|
# Public: Initializes the command.
|
10
10
|
#
|
11
11
|
# form - A form object with the params.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Decidim
|
4
4
|
module System
|
5
5
|
# This command deals with destroying an application from the admin panel.
|
6
|
-
class DestroyOAuthApplication <
|
6
|
+
class DestroyOAuthApplication < Decidim::Command
|
7
7
|
# Public: Initializes the command.
|
8
8
|
#
|
9
9
|
# application - The OAuthApplication to be destroyed.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Decidim
|
4
4
|
module System
|
5
5
|
# A command that will create default help pages for an organization.
|
6
|
-
class PopulateHelp <
|
6
|
+
class PopulateHelp < Decidim::Command
|
7
7
|
# Public: Initializes the command.
|
8
8
|
#
|
9
9
|
# organization - An organization
|
@@ -49,8 +49,8 @@ module Decidim
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
def multi_translation(key,
|
53
|
-
Decidim::TranslationsHelper.multi_translation(key, @organization.available_locales,
|
52
|
+
def multi_translation(key, **arguments)
|
53
|
+
Decidim::TranslationsHelper.multi_translation(key, @organization.available_locales, **arguments)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
@@ -5,7 +5,7 @@ module Decidim
|
|
5
5
|
# A command with all the business logic when creating a new organization in
|
6
6
|
# the system. It creates the organization and invites the admin to the
|
7
7
|
# system.
|
8
|
-
class RegisterOrganization <
|
8
|
+
class RegisterOrganization < Decidim::Command
|
9
9
|
# Public: Initializes the command.
|
10
10
|
#
|
11
11
|
# form - A form object with the params.
|
@@ -24,6 +24,7 @@ module Decidim
|
|
24
24
|
|
25
25
|
@organization = nil
|
26
26
|
invite_form = nil
|
27
|
+
invitation_failed = false
|
27
28
|
|
28
29
|
transaction do
|
29
30
|
@organization = create_organization
|
@@ -31,8 +32,10 @@ module Decidim
|
|
31
32
|
PopulateHelp.call(@organization)
|
32
33
|
CreateDefaultContentBlocks.call(@organization)
|
33
34
|
invite_form = invite_user_form(@organization)
|
34
|
-
|
35
|
+
invitation_failed = invite_form.invalid?
|
35
36
|
end
|
37
|
+
return broadcast(:invalid) if invitation_failed
|
38
|
+
|
36
39
|
Decidim::InviteUser.call(invite_form) if @organization && invite_form
|
37
40
|
|
38
41
|
broadcast(:ok)
|
@@ -4,7 +4,7 @@ module Decidim
|
|
4
4
|
module System
|
5
5
|
# A command with all the business logic when updating an admin in
|
6
6
|
# the system.
|
7
|
-
class UpdateAdmin <
|
7
|
+
class UpdateAdmin < Decidim::Command
|
8
8
|
# Public: Initializes the command.
|
9
9
|
#
|
10
10
|
# form - A form object with the params.
|
@@ -5,7 +5,7 @@ module Decidim
|
|
5
5
|
# A command with all the business logic when creating a new organization in
|
6
6
|
# the system. It creates the organization and invites the admin to the
|
7
7
|
# system.
|
8
|
-
class UpdateOrganization <
|
8
|
+
class UpdateOrganization < Decidim::Command
|
9
9
|
# Public: Initializes the command.
|
10
10
|
#
|
11
11
|
# form - A form object with the params.
|
@@ -12,7 +12,7 @@ module Decidim
|
|
12
12
|
attribute :password_confirmation, String
|
13
13
|
|
14
14
|
validates :email, presence: true
|
15
|
-
validates :password,
|
15
|
+
validates :password, presence: true, unless: :admin_exists?
|
16
16
|
validates :password_confirmation, presence: true, unless: :admin_exists?
|
17
17
|
|
18
18
|
validates :password, password: { email: :email }
|
@@ -10,34 +10,31 @@ module Decidim
|
|
10
10
|
|
11
11
|
mimic :organization_file_uploads
|
12
12
|
|
13
|
-
attribute
|
14
|
-
attribute
|
15
|
-
attribute
|
13
|
+
attribute(:allowed_file_extensions, { Symbol => String })
|
14
|
+
attribute(:allowed_content_types, { Symbol => String })
|
15
|
+
attribute(:maximum_file_size, { Symbol => Float })
|
16
16
|
|
17
17
|
def map_model(settings_hash)
|
18
|
-
settings_hash =
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
18
|
+
settings_hash = if settings_hash.is_a?(Hash)
|
19
|
+
default_settings.deep_merge(settings_hash.deep_stringify_keys)
|
20
|
+
else
|
21
|
+
default_settings
|
22
|
+
end
|
25
23
|
|
26
|
-
|
27
|
-
|
28
|
-
next unless settings_hash.has_key?(key)
|
24
|
+
csv_attributes.each do |attr|
|
25
|
+
next unless settings_hash.has_key?(attr.to_s)
|
29
26
|
|
30
27
|
# For the view, the array values need to be in comma separated format
|
31
28
|
# in order for them to work correctly with the tags inputs.
|
32
|
-
value =
|
33
|
-
settings_hash[key]
|
34
|
-
)
|
29
|
+
value = settings_hash[attr.to_s]
|
35
30
|
value.each do |k, v|
|
36
31
|
value[k] = v.join(",") if v.is_a?(Array)
|
37
32
|
end
|
38
33
|
|
39
|
-
|
34
|
+
send("#{attr}=", value)
|
40
35
|
end
|
36
|
+
|
37
|
+
self.maximum_file_size = settings_hash["maximum_file_size"]
|
41
38
|
end
|
42
39
|
|
43
40
|
# This turns the attributes passed from the view into the final
|
@@ -46,8 +43,7 @@ module Decidim
|
|
46
43
|
# the view layer. Before we save those attributes, they need to be
|
47
44
|
# converted into arrays which is what this method does.
|
48
45
|
def final
|
49
|
-
|
50
|
-
attributes.tap do |attr|
|
46
|
+
to_h.tap do |attr|
|
51
47
|
csv_attributes.each do |key|
|
52
48
|
attr[key] = csv_array_setting(attr[key])
|
53
49
|
end
|
@@ -60,6 +56,10 @@ module Decidim
|
|
60
56
|
Decidim::OrganizationSettings.default(:upload)
|
61
57
|
end
|
62
58
|
|
59
|
+
def csv_attributes
|
60
|
+
@csv_attributes ||= [:allowed_file_extensions, :allowed_content_types]
|
61
|
+
end
|
62
|
+
|
63
63
|
def csv_array_setting(original)
|
64
64
|
original.transform_values do |value|
|
65
65
|
value.split(",")
|
@@ -29,7 +29,6 @@ module Decidim
|
|
29
29
|
[:authentication, String],
|
30
30
|
[:enable_starttls_auto, Boolean]
|
31
31
|
]
|
32
|
-
attribute :password, String
|
33
32
|
attribute :file_upload_settings, FileUploadSettingsForm
|
34
33
|
|
35
34
|
OMNIATH_PROVIDERS_ATTRIBUTES = Decidim::OmniauthProvider.available.keys.map do |provider|
|
@@ -44,6 +43,8 @@ module Decidim
|
|
44
43
|
|
45
44
|
jsonb_attribute :omniauth_settings, OMNIATH_PROVIDERS_ATTRIBUTES
|
46
45
|
|
46
|
+
attr_writer :password
|
47
|
+
|
47
48
|
validates :name, :host, :users_registration_mode, presence: true
|
48
49
|
validate :validate_organization_uniqueness
|
49
50
|
validates :users_registration_mode, inclusion: { in: Decidim::Organization.users_registration_modes }
|
@@ -69,13 +70,13 @@ module Decidim
|
|
69
70
|
end
|
70
71
|
|
71
72
|
def password
|
72
|
-
|
73
|
+
Decidim::AttributeEncryptor.decrypt(encrypted_password) unless encrypted_password.nil?
|
73
74
|
end
|
74
75
|
|
75
76
|
def encrypted_smtp_settings
|
76
77
|
smtp_settings["from"] = set_from
|
77
78
|
|
78
|
-
smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(password))
|
79
|
+
smtp_settings.merge(encrypted_password: Decidim::AttributeEncryptor.encrypt(@password))
|
79
80
|
end
|
80
81
|
|
81
82
|
def set_from
|
@@ -15,6 +15,7 @@ $-zf-bp-value: null;
|
|
15
15
|
@import "stylesheets/decidim/system/forms";
|
16
16
|
@import "stylesheets/decidim/editor";
|
17
17
|
@import "stylesheets/decidim/utils/fontface";
|
18
|
+
@import "stylesheets/decidim/modules/upload_modal";
|
18
19
|
|
19
20
|
body{
|
20
21
|
font-family: 'Source Sans Pro', sans-serif;
|
@@ -1,5 +1,3 @@
|
|
1
|
-
<% add_decidim_page_title(t(".title")) %>
|
2
|
-
|
3
1
|
<% provide :title do %>
|
4
2
|
<h2><%= t ".title" %></h2>
|
5
3
|
<% end %>
|
@@ -27,9 +25,7 @@
|
|
27
25
|
</td>
|
28
26
|
<td class="actions">
|
29
27
|
<%= link_to t("actions.edit", scope: "decidim.system"), [:edit, admin] %>
|
30
|
-
|
31
|
-
<%= link_to t("actions.destroy", scope: "decidim.system"), admin, method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.system") } %>
|
32
|
-
<% end %>
|
28
|
+
<%= link_to t("actions.destroy", scope: "decidim.system"), admin, method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.system") } %>
|
33
29
|
</td>
|
34
30
|
</tr>
|
35
31
|
<% end %>
|
@@ -4,6 +4,6 @@
|
|
4
4
|
|
5
5
|
<div class="actions">
|
6
6
|
<hr>
|
7
|
-
<%= link_to
|
8
|
-
<%= link_to
|
7
|
+
<%= link_to "Edit", ["edit", @admin] %>
|
8
|
+
<%= link_to "Destroy", @admin, method: :delete, class: "alert button", data: { confirm: "Are you sure you want to do this?" } %>
|
9
9
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<h2>
|
1
|
+
<h2>Change your password</h2>
|
2
2
|
|
3
3
|
<%= decidim_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
|
4
4
|
<%= render "devise/shared/error_messages", resource: resource %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<div class="field">
|
8
8
|
<% if @minimum_password_length %>
|
9
|
-
<em
|
9
|
+
<em>(<%= @minimum_password_length %> characters minimum)</em><br>
|
10
10
|
<% end %>
|
11
11
|
<%= f.password_field :password, autofocus: true, autocomplete: "off" %>
|
12
12
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<h2
|
1
|
+
<h2>Forgot your password?</h2>
|
2
2
|
|
3
3
|
<%= decidim_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
4
4
|
<%= render "devise/shared/error_messages", resource: resource %>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</div>
|
9
9
|
|
10
10
|
<div class="actions">
|
11
|
-
<%= f.submit
|
11
|
+
<%= f.submit "Send me reset password instructions" %>
|
12
12
|
</div>
|
13
13
|
<% end %>
|
14
14
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<h2
|
1
|
+
<h2>Log in</h2>
|
2
2
|
|
3
3
|
<%= decidim_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
4
4
|
<div class="field">
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<% end -%>
|
17
17
|
|
18
18
|
<div class="actions">
|
19
|
-
<%= f.submit
|
19
|
+
<%= f.submit "Log in" %>
|
20
20
|
</div>
|
21
21
|
<% end %>
|
22
22
|
|
@@ -1,19 +1,25 @@
|
|
1
1
|
<%- if controller_name != 'sessions' %>
|
2
|
-
<%= link_to
|
2
|
+
<%= link_to "Log in", new_session_path(resource_name) %><br>
|
3
3
|
<% end -%>
|
4
4
|
|
5
5
|
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
6
|
-
<%= link_to
|
6
|
+
<%= link_to "Sign up", new_registration_path(resource_name) %><br>
|
7
7
|
<% end -%>
|
8
8
|
|
9
9
|
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
10
|
-
<%= link_to
|
10
|
+
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br>
|
11
11
|
<% end -%>
|
12
12
|
|
13
13
|
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
14
|
-
<%= link_to t
|
14
|
+
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br>
|
15
15
|
<% end -%>
|
16
16
|
|
17
17
|
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
18
|
-
<%= link_to t
|
18
|
+
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br>
|
19
|
+
<% end -%>
|
20
|
+
|
21
|
+
<%- if devise_mapping.omniauthable? %>
|
22
|
+
<%- current_organization.enabled_omniauth_providers.keys.each do |provider| %>
|
23
|
+
<%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %><br>
|
24
|
+
<% end -%>
|
19
25
|
<% end -%>
|
@@ -1,5 +1,3 @@
|
|
1
|
-
<% add_decidim_page_title(t(".title")) %>
|
2
|
-
|
3
1
|
<% provide :title do %>
|
4
2
|
<h2><%= t ".title" %></h2>
|
5
3
|
<% end %>
|
@@ -37,9 +35,9 @@
|
|
37
35
|
<table>
|
38
36
|
<thead>
|
39
37
|
<tr>
|
40
|
-
<
|
41
|
-
<
|
42
|
-
<
|
38
|
+
<td>Locale</td>
|
39
|
+
<td>Enabled <%= f.error_for(:available_locales) %></td>
|
40
|
+
<td>Default? <%= f.error_for(:default_locale) %></td>
|
43
41
|
</tr>
|
44
42
|
</thead>
|
45
43
|
<tbody>
|
@@ -1,9 +1,8 @@
|
|
1
|
-
<% add_decidim_page_title("Decidim - System") %>
|
2
1
|
<!DOCTYPE html>
|
3
2
|
<html>
|
4
3
|
<head>
|
5
|
-
|
6
|
-
|
4
|
+
<title>Decidim - System</title>
|
5
|
+
<%= render partial: "layouts/decidim/system/header" %>
|
7
6
|
</head>
|
8
7
|
|
9
8
|
<body>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<body class="login">
|
9
9
|
<div class="login-form-wrapper">
|
10
10
|
<div class="login-form">
|
11
|
-
<h1
|
11
|
+
<h1>Decidim</h1>
|
12
12
|
<%= render "decidim/system/shared/notices" %>
|
13
13
|
<div class="login-form-inner">
|
14
14
|
<%= yield %>
|
data/config/locales/am-ET.yml
CHANGED