adds setting to add per page code on <head> and <body>
This commit is contained in:
@@ -20,9 +20,11 @@
|
|||||||
type: "image/png" %>
|
type: "image/png" %>
|
||||||
<%= content_for :social_media_meta_tags %>
|
<%= content_for :social_media_meta_tags %>
|
||||||
|
|
||||||
<%= setting['per_page_code'].try(:html_safe) %>
|
<%= setting['per_page_code_head'].try(:html_safe) %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<%= setting['per_page_code_body'].try(:html_safe) %>
|
||||||
|
|
||||||
<h1 class="sr-only"><%= setting['org_name'] %></h1>
|
<h1 class="sr-only"><%= setting['org_name'] %></h1>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|||||||
@@ -1354,7 +1354,8 @@ fr:
|
|||||||
official_level_3_name: Niveau 3 personne officielle
|
official_level_3_name: Niveau 3 personne officielle
|
||||||
official_level_4_name: Niveau 4 personne officielle
|
official_level_4_name: Niveau 4 personne officielle
|
||||||
official_level_5_name: Niveau 5 personne officielle
|
official_level_5_name: Niveau 5 personne officielle
|
||||||
per_page_code: Code à inclure dans chaque page
|
per_page_code_head: "Code à inclure dans chaque page (<head>)"
|
||||||
|
per_page_code_body: "Code à inclure dans chaque page (<body>)"
|
||||||
proposal_code_prefix: Préfixe pour les codes de propositions
|
proposal_code_prefix: Préfixe pour les codes de propositions
|
||||||
votes_for_proposal_success: Nombre de votes nécessaires pour l'approbation d'une
|
votes_for_proposal_success: Nombre de votes nécessaires pour l'approbation d'une
|
||||||
proposition
|
proposition
|
||||||
|
|||||||
@@ -1370,7 +1370,8 @@ pt-BR:
|
|||||||
official_level_3_name: Nível 3 coordenador público
|
official_level_3_name: Nível 3 coordenador público
|
||||||
official_level_4_name: Nível 4 coordenador público
|
official_level_4_name: Nível 4 coordenador público
|
||||||
official_level_5_name: Nível 5 coordenador público
|
official_level_5_name: Nível 5 coordenador público
|
||||||
per_page_code: Código a ser incluído em cada página
|
per_page_code_head: "Código a ser incluído em cada página (<head>)"
|
||||||
|
per_page_code_body: "Código a ser incluído em cada página (<body>)"
|
||||||
proposal_code_prefix: Prefixo para códigos de Proposta
|
proposal_code_prefix: Prefixo para códigos de Proposta
|
||||||
votes_for_proposal_success: Número de votos necessários para aprovar uma Proposta
|
votes_for_proposal_success: Número de votos necessários para aprovar uma Proposta
|
||||||
shared:
|
shared:
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ en:
|
|||||||
votes_for_proposal_success: "Number of votes necessary for approval of a Proposal"
|
votes_for_proposal_success: "Number of votes necessary for approval of a Proposal"
|
||||||
months_to_archive_proposals: "Months to archive Proposals"
|
months_to_archive_proposals: "Months to archive Proposals"
|
||||||
email_domain_for_officials: "Email domain for public officials"
|
email_domain_for_officials: "Email domain for public officials"
|
||||||
per_page_code: "Code to be included on every page"
|
per_page_code_head: "Code to be included on every page (<head>)"
|
||||||
|
per_page_code_body: "Code to be included on every page (<body>)"
|
||||||
twitter_handle: "Twitter handle"
|
twitter_handle: "Twitter handle"
|
||||||
twitter_hashtag: "Twitter hashtag"
|
twitter_hashtag: "Twitter hashtag"
|
||||||
facebook_handle: "Facebook handle"
|
facebook_handle: "Facebook handle"
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ es:
|
|||||||
votes_for_proposal_success: "Número de votos necesarios para aprobar una Propuesta"
|
votes_for_proposal_success: "Número de votos necesarios para aprobar una Propuesta"
|
||||||
months_to_archive_proposals: "Meses para archivar las Propuestas"
|
months_to_archive_proposals: "Meses para archivar las Propuestas"
|
||||||
email_domain_for_officials: "Dominio de email para cargos públicos"
|
email_domain_for_officials: "Dominio de email para cargos públicos"
|
||||||
per_page_code: "Código a incluir en cada página"
|
per_page_code_head: "Código a incluir en cada página (<head>)"
|
||||||
|
per_page_code_body: "Código a incluir en cada página (<body>)"
|
||||||
twitter_handle: "Usuario de Twitter"
|
twitter_handle: "Usuario de Twitter"
|
||||||
twitter_hashtag: "Hashtag para Twitter"
|
twitter_hashtag: "Hashtag para Twitter"
|
||||||
facebook_handle: "Identificador de Facebook"
|
facebook_handle: "Identificador de Facebook"
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ Setting.create(key: 'feature.twitter_login', value: "true")
|
|||||||
Setting.create(key: 'feature.facebook_login', value: "true")
|
Setting.create(key: 'feature.facebook_login', value: "true")
|
||||||
Setting.create(key: 'feature.google_login', value: "true")
|
Setting.create(key: 'feature.google_login', value: "true")
|
||||||
Setting.create(key: 'feature.signature_sheets', value: "true")
|
Setting.create(key: 'feature.signature_sheets', value: "true")
|
||||||
Setting.create(key: 'per_page_code', value: "")
|
Setting.create(key: 'per_page_code_head', value: "")
|
||||||
|
Setting.create(key: 'per_page_code_body', value: "")
|
||||||
Setting.create(key: 'comments_body_max_length', value: '1000')
|
Setting.create(key: 'comments_body_max_length', value: '1000')
|
||||||
Setting.create(key: 'mailer_from_name', value: 'Consul')
|
Setting.create(key: 'mailer_from_name', value: 'Consul')
|
||||||
Setting.create(key: 'mailer_from_address', value: 'noreply@consul.dev')
|
Setting.create(key: 'mailer_from_address', value: 'noreply@consul.dev')
|
||||||
|
|||||||
@@ -38,8 +38,11 @@ Setting["months_to_archive_proposals"] = 12
|
|||||||
# Emails under the domain's subdomains will also be included
|
# Emails under the domain's subdomains will also be included
|
||||||
Setting["email_domain_for_officials"] = ''
|
Setting["email_domain_for_officials"] = ''
|
||||||
|
|
||||||
# Code to be included at the top (header) of every page (useful for tracking)
|
# Code to be included at the top (inside <head>) of every page (useful for tracking)
|
||||||
Setting['per_page_code'] = ''
|
Setting['per_page_code_head'] = ''
|
||||||
|
|
||||||
|
# Code to be included at the top (inside <body>) of every page
|
||||||
|
Setting['per_page_code_body'] = ''
|
||||||
|
|
||||||
# Social settings
|
# Social settings
|
||||||
Setting["twitter_handle"] = nil
|
Setting["twitter_handle"] = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user