Sha256: 231125594d4bf98aac359f04bb6be73932ffbff226c6a63b7785c49e82a6c08d

Contents?: true

Size: 921 Bytes

Versions: 6

Compression:

Stored size: 921 Bytes

Contents

<%
js_configs = {
  api_path: decidim_api.root_path(locale: nil),
  icons_path: Decidim.cors_enabled ? "" : asset_pack_path("media/images/remixicon.symbol.svg"),
  messages: {
    "selfxssWarning": t("decidim.security.selfxss_warning"),
    editor: t("editor"),
    date: t("date"),
    time: t("time")
  }
}
character_messages = {
  "charactersAtLeast": {
    one: t("forms.length_validator.minimum.one", count: "%count%", default: "forms.length_validator.minimum.other"),
    other: t("forms.length_validator.minimum.other", count: "%count%")
  },
  "charactersLeft": {
    one: t("decidim.components.add_comment_form.remaining_characters_1", count: "%count%"),
    other: t("decidim.components.add_comment_form.remaining_characters", count: "%count%")
  }
}
%>

<script>
  Decidim.config.set(<%== js_configs.to_json %>);
  Decidim.InputCharacterCounter.configureMessages(<%== character_messages.to_json %>);
</script>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/views/layouts/decidim/admin/_js_configuration.html.erb
decidim-admin-0.29.0 app/views/layouts/decidim/admin/_js_configuration.html.erb
decidim-admin-0.29.0.rc4 app/views/layouts/decidim/admin/_js_configuration.html.erb
decidim-admin-0.29.0.rc3 app/views/layouts/decidim/admin/_js_configuration.html.erb
decidim-admin-0.29.0.rc2 app/views/layouts/decidim/admin/_js_configuration.html.erb
decidim-admin-0.29.0.rc1 app/views/layouts/decidim/admin/_js_configuration.html.erb