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.

Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -9
  3. data/app/commands/decidim/system/create_admin.rb +1 -1
  4. data/app/commands/decidim/system/create_default_content_blocks.rb +1 -1
  5. data/app/commands/decidim/system/create_default_pages.rb +1 -1
  6. data/app/commands/decidim/system/create_oauth_application.rb +1 -1
  7. data/app/commands/decidim/system/destroy_oauth_application.rb +1 -1
  8. data/app/commands/decidim/system/populate_help.rb +3 -3
  9. data/app/commands/decidim/system/register_organization.rb +5 -2
  10. data/app/commands/decidim/system/update_admin.rb +1 -1
  11. data/app/commands/decidim/system/update_oauth_application.rb +1 -1
  12. data/app/commands/decidim/system/update_organization.rb +1 -1
  13. data/app/controllers/decidim/system/application_controller.rb +0 -1
  14. data/app/forms/decidim/system/admin_form.rb +1 -1
  15. data/app/forms/decidim/system/file_upload_settings_form.rb +19 -19
  16. data/app/forms/decidim/system/update_organization_form.rb +4 -3
  17. data/app/helpers/decidim/system/application_helper.rb +0 -4
  18. data/app/packs/entrypoints/decidim_system.js +1 -0
  19. data/app/packs/stylesheets/decidim/system/application.scss +1 -0
  20. data/app/views/decidim/system/admins/edit.html.erb +0 -2
  21. data/app/views/decidim/system/admins/index.html.erb +1 -5
  22. data/app/views/decidim/system/admins/new.html.erb +0 -2
  23. data/app/views/decidim/system/admins/show.html.erb +2 -2
  24. data/app/views/decidim/system/dashboard/show.html.erb +0 -2
  25. data/app/views/decidim/system/devise/passwords/edit.html.erb +2 -2
  26. data/app/views/decidim/system/devise/passwords/new.html.erb +2 -2
  27. data/app/views/decidim/system/devise/sessions/new.html.erb +2 -2
  28. data/app/views/decidim/system/devise/shared/_links.html.erb +11 -5
  29. data/app/views/decidim/system/oauth_applications/edit.html.erb +0 -2
  30. data/app/views/decidim/system/oauth_applications/index.html.erb +0 -2
  31. data/app/views/decidim/system/oauth_applications/new.html.erb +0 -2
  32. data/app/views/decidim/system/oauth_applications/show.html.erb +0 -2
  33. data/app/views/decidim/system/organizations/edit.html.erb +0 -6
  34. data/app/views/decidim/system/organizations/index.html.erb +0 -2
  35. data/app/views/decidim/system/organizations/new.html.erb +3 -5
  36. data/app/views/layouts/decidim/system/_login_items.html.erb +1 -1
  37. data/app/views/layouts/decidim/system/application.html.erb +2 -3
  38. data/app/views/layouts/decidim/system/login.html.erb +1 -1
  39. data/config/locales/am-ET.yml +1 -0
  40. data/config/locales/ar.yml +4 -89
  41. data/config/locales/bg.yml +1 -3
  42. data/config/locales/ca.yml +4 -31
  43. data/config/locales/cs.yml +4 -31
  44. data/config/locales/da.yml +1 -0
  45. data/config/locales/de.yml +6 -33
  46. data/config/locales/el.yml +3 -94
  47. data/config/locales/en.yml +2 -30
  48. data/config/locales/eo.yml +1 -0
  49. data/config/locales/es-MX.yml +3 -30
  50. data/config/locales/es-PY.yml +3 -30
  51. data/config/locales/es.yml +3 -30
  52. data/config/locales/et.yml +1 -0
  53. data/config/locales/eu.yml +20 -47
  54. data/config/locales/fi-plain.yml +3 -30
  55. data/config/locales/fi.yml +7 -34
  56. data/config/locales/fr-CA.yml +3 -30
  57. data/config/locales/fr.yml +3 -30
  58. data/config/locales/ga-IE.yml +1 -2
  59. data/config/locales/gl.yml +3 -2
  60. data/config/locales/hr.yml +1 -0
  61. data/config/locales/hu.yml +4 -21
  62. data/config/locales/id-ID.yml +4 -2
  63. data/config/locales/is-IS.yml +4 -3
  64. data/config/locales/it.yml +3 -2
  65. data/config/locales/ja.yml +3 -30
  66. data/config/locales/ko.yml +1 -0
  67. data/config/locales/lb.yml +1 -5
  68. data/config/locales/lt.yml +1 -189
  69. data/config/locales/lv.yml +4 -2
  70. data/config/locales/mt.yml +1 -0
  71. data/config/locales/nl.yml +4 -2
  72. data/config/locales/no.yml +3 -2
  73. data/config/locales/om-ET.yml +1 -0
  74. data/config/locales/pl.yml +3 -2
  75. data/config/locales/pt-BR.yml +4 -3
  76. data/config/locales/pt.yml +3 -2
  77. data/config/locales/ro-RO.yml +3 -10
  78. data/config/locales/ru.yml +4 -2
  79. data/config/locales/si-LK.yml +1 -0
  80. data/config/locales/sk.yml +4 -2
  81. data/config/locales/sl.yml +2 -2
  82. data/config/locales/so-SO.yml +1 -0
  83. data/config/locales/sr-CS.yml +1 -0
  84. data/config/locales/sv.yml +3 -2
  85. data/config/locales/sw-KE.yml +1 -0
  86. data/config/locales/ti-ER.yml +1 -0
  87. data/config/locales/tr-TR.yml +4 -3
  88. data/config/locales/uk.yml +4 -2
  89. data/config/locales/val-ES.yml +1 -0
  90. data/config/locales/vi.yml +1 -0
  91. data/config/locales/zh-CN.yml +3 -2
  92. data/config/locales/zh-TW.yml +1 -189
  93. data/db/seeds.rb +2 -2
  94. data/lib/decidim/system/engine.rb +0 -1
  95. data/lib/decidim/system/test/factories.rb +3 -3
  96. data/lib/decidim/system/version.rb +1 -1
  97. metadata +10 -25
  98. data/config/environment.rb +0 -3
  99. data/config/locales/fa-IR.yml +0 -10
  100. data/config/locales/gn-PY.yml +0 -1
  101. data/config/locales/ka-GE.yml +0 -1
  102. data/config/locales/kaa.yml +0 -10
  103. data/config/locales/lo-LA.yml +0 -1
  104. data/config/locales/oc-FR.yml +0 -1
  105. data/config/locales/sq-AL.yml +0 -1
  106. data/config/locales/th-TH.yml +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93fc93db2fd066bb3028e68ede19952d8663ca6feba21b8ba635bc970f2562c8
4
- data.tar.gz: 43228acf2a00657f0310a7012b1b74c76195f7f5cd691a1d4f0cadad5e0d3f52
3
+ metadata.gz: 9a13e278028184766cd3a5a7a2f3c225a42a231e4d1ea790fdd3e2a7049b2446
4
+ data.tar.gz: 16990b3fb9011f5296039152d4017d689b4fa924f7f5877a7fcbba39a2aaa526
5
5
  SHA512:
6
- metadata.gz: e65822b2a26524db66ff27362d563366140319ef4562c87374bdc3a316292c0a7004859b24c085c2b9b243610e925f333c5c848f76382ed2d189ba5f49635105
7
- data.tar.gz: 10466f7b43f6f2cd772305bed242803044b8c388fd02b4c90277a30f0755fbeeff5a54a7ff20051be52d3ef0c19c6c06d20cafff614e28fbe432f7182aa6a376
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
- Currently Decidim doesn't provide a way to create the first System Admin in a new deployment. To do it, you should open a Rails console in your application and
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
- ```ruby
47
- Decidim::System::Admin.create!(
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
- Once you have created your first admin you can access the system dashboard at `https://your-decidim-deployment-host/system` and login with your newly created user.
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 < Rectify::Command
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 < Rectify::Command
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 < Rectify::Command
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
  # Creates an OAuthApplication.
6
- class CreateOAuthApplication < Rectify::Command
6
+ class CreateOAuthApplication < Decidim::Command
7
7
  # Initializes the command.
8
8
  #
9
9
  # form - The source fo data for this OAuthApplication.
@@ -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 < Rectify::Command
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 < Rectify::Command
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, *arguments)
53
- Decidim::TranslationsHelper.multi_translation(key, @organization.available_locales, *arguments)
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 < Rectify::Command
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
- return broadcast(:invalid) if invite_form.invalid?
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 < Rectify::Command
7
+ class UpdateAdmin < Decidim::Command
8
8
  # Public: Initializes the command.
9
9
  #
10
10
  # form - A form object with the params.
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module System
5
5
  # Updates the OAuth application given form data.
6
- class UpdateOAuthApplication < Rectify::Command
6
+ class UpdateOAuthApplication < Decidim::Command
7
7
  # Initializes the command.
8
8
  #
9
9
  # application - The OAuthApplication to update.
@@ -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 < Rectify::Command
8
+ class UpdateOrganization < Decidim::Command
9
9
  # Public: Initializes the command.
10
10
  #
11
11
  # form - A form object with the params.
@@ -11,7 +11,6 @@ module Decidim
11
11
 
12
12
  protect_from_forgery with: :exception, prepend: true
13
13
 
14
- helper Decidim::MetaTagsHelper
15
14
  helper Decidim::TranslationsHelper
16
15
  helper Decidim::DecidimFormHelper
17
16
  helper Decidim::ReplaceButtonsHelper
@@ -12,7 +12,7 @@ module Decidim
12
12
  attribute :password_confirmation, String
13
13
 
14
14
  validates :email, presence: true
15
- validates :password, confirmation: true, presence: true, unless: :admin_exists?
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 :allowed_file_extensions, Hash[Symbol => String]
14
- attribute :allowed_content_types, Hash[Symbol => String]
15
- attribute :maximum_file_size, Hash[Symbol => Float]
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 = begin
19
- if settings_hash.is_a?(Hash)
20
- default_settings.deep_merge(settings_hash.deep_stringify_keys)
21
- else
22
- default_settings
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
- attribute_set.each do |attr|
27
- key = attr.name.to_s
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 = Rectify::FormAttribute.new(attr).value_from(
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
- self[key] = value
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
- csv_attributes = [:allowed_file_extensions, :allowed_content_types]
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
- encrypted_password.nil? ? super : Decidim::AttributeEncryptor.decrypt(encrypted_password)
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
@@ -10,10 +10,6 @@ module Decidim
10
10
  def title
11
11
  "Decidim"
12
12
  end
13
-
14
- def current_admin?(admin)
15
- current_admin == admin
16
- end
17
13
  end
18
14
  end
19
15
  end
@@ -1,2 +1,3 @@
1
1
  import "src/decidim/system/application"
2
2
  import "entrypoints/decidim_system.scss"
3
+ import "src/decidim/direct_uploads/upload_field"
@@ -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 %>
@@ -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
- <% unless current_admin?(admin) %>
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 %>
@@ -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 %>
@@ -4,6 +4,6 @@
4
4
 
5
5
  <div class="actions">
6
6
  <hr>
7
- <%= link_to t(".edit"), ["edit", @admin] %>
8
- <%= link_to t(".destroy"), @admin, method: :delete, class: "alert button", data: { confirm: "Are you sure you want to do this?" } %>
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,5 +1,3 @@
1
- <% add_decidim_page_title(t("decidim.system.titles.dashboard")) %>
2
-
3
1
  <% provide :title do %>
4
2
  <h2><%= t("decidim.system.titles.dashboard") %></h2>
5
3
  <h3><%= t ".current_organizations" %></h3>
@@ -1,4 +1,4 @@
1
- <h2> <%= link_to t(".change_your_password") %></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><%= t(".minimum_characters", minimum: @minimum_password_length) %></em><br>
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><%= link_to t(".forgot_your_password") %></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 t(".send_me_reset_password_instructions") %>
11
+ <%= f.submit "Send me reset password instructions" %>
12
12
  </div>
13
13
  <% end %>
14
14
 
@@ -1,4 +1,4 @@
1
- <h2><%= t("log_in", scope: "decidim.system.devise.shared.links") %></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 t("log_in", scope: "decidim.system.devise.shared.links") %>
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 t(".log_in"), new_session_path(resource_name) %>
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 t(".sign_up"), new_registration_path(resource_name) %>
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 t(".forgot_your_password?"), new_password_path(resource_name) %>
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(".did_not_receive_confirmation_instructions?"), new_confirmation_path(resource_name) %>
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(".did_not_receive_unlock_instructions?"), new_unlock_path(resource_name) %>
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
  <%= decidim_form_for(@form, html: { class: "form edit_oauth_application" }) do |f| %>
4
2
  <div class="card">
5
3
  <div class="card-divider">
@@ -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 %>
@@ -1,5 +1,3 @@
1
- <% add_decidim_page_title(t(".title")) %>
2
-
3
1
  <%= decidim_form_for(@form, html: { class: "form new_oauth_application" }) do |f| %>
4
2
  <div class="card">
5
3
  <div class="card-divider">
@@ -1,5 +1,3 @@
1
- <% add_decidim_page_title(@oauth_application.name) %>
2
-
3
1
  <div class="card">
4
2
  <div class="card-divider">
5
3
  <h2 class="card-title"><%= @oauth_application.name %></h2>
@@ -1,9 +1,3 @@
1
- <% add_decidim_page_title(t(".title")) %>
2
-
3
- <% provide :title do %>
4
- <h1 class="h1"><%= t ".title" %></h1>
5
- <% end %>
6
-
7
1
  <%= decidim_form_for(@form) do |f| %>
8
2
  <div class="field">
9
3
  <%= f.text_field :name, autofocus: true %>
@@ -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 %>
@@ -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
- <th><%= t(".locale") %></th>
41
- <th><%= t(".enabled") %> <%= f.error_for(:available_locales) %></th>
42
- <th><%= t(".default") %><%= f.error_for(:default_locale) %></th>
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>
@@ -3,6 +3,6 @@
3
3
  <%= current_admin.email %>
4
4
  </div>
5
5
  <div class="sign-out">
6
- <%= link_to(t(".logout"), destroy_admin_session_path, :method => :delete) %>
6
+ <%= link_to("Logout", destroy_admin_session_path, :method => :delete) %>
7
7
  </div>
8
8
  </div>
@@ -1,9 +1,8 @@
1
- <% add_decidim_page_title("Decidim - System") %>
2
1
  <!DOCTYPE html>
3
2
  <html>
4
3
  <head>
5
- <title><%= decidim_page_title %></title>
6
- <%= render partial: "layouts/decidim/system/header" %>
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><%= t("decidim", scope: "decidim.system.titles") %></h1>
11
+ <h1>Decidim</h1>
12
12
  <%= render "decidim/system/shared/notices" %>
13
13
  <div class="login-form-inner">
14
14
  <%= yield %>
@@ -1 +1,2 @@
1
+ ---
1
2
  am: