Remove unused verification offices url setting

This commit is contained in:
decabeza
2019-03-05 00:02:10 +01:00
parent 4641314bda
commit 0e1bf2188c
10 changed files with 9 additions and 39 deletions

View File

@@ -46,9 +46,7 @@
<ul>
<li>
<%= t("verification.letter.new.office",
office: link_to(t("verification.letter.new.offices"), setting['verification_offices_url'],
target: "blank")).html_safe %>
<%= t("verification.letter.new.office") %>
</li>
<li>
<%= link_to t("verification.letter.new.send_letter"), letter_path, method: :post %>

View File

@@ -7,12 +7,7 @@
<h1><%= t("verification.letter.edit.title") %></h1>
<div data-alert class="callout success">
<%= t("verification.letter.create.flash.success_html",
offices: link_to(t("verification.letter.create.flash.offices"),
setting['verification_offices_url'],
title: t('shared.target_blank_html'),
target: "_blank")).html_safe
%>
<%= t("verification.letter.create.flash.success_html") %>
</div>
<%= link_to t("verification.letter.edit.see_all"), proposals_path, class: "button warning" %>

View File

@@ -4,9 +4,7 @@
<button class="close-button" aria-label="<%= t("application.close") %>" type="button" data-close>
<span aria-hidden="true">&times;</span>
</button>
<%= t("verification.residence.new.error_verifying_census",
offices: link_to( t("verification.residence.new.error_verifying_census_offices"),
setting['verification_offices_url'], title: t('shared.target_blank_html'), target: "_blank")).html_safe %>
<%= t("verification.residence.new.error_verifying_census") %>
</div>
<% else %>

View File

@@ -71,7 +71,6 @@ en:
min_age_to_participate: Minimum age needed to participate
min_age_to_participate_description: "Users over this age can participate in all processes where a user verified account is needed"
analytics_url: "Analytics URL"
verification_offices_url: Verification offices URL
proposal_notification_minimum_interval_in_days: "Minimum interval (in days) for authors of proposals to send new proposal notifications"
proposal_notification_minimum_interval_in_days_description: "The number of days user can send a notification for all supporters of their proposal"
direct_message_max_per_day: "Direct Message max number per day"

View File

@@ -19,8 +19,7 @@ en:
unconfirmed_code: You have not yet entered the confirmation code
create:
flash:
offices: Citizen Support Offices
success_html: Thank you for requesting your <b>maximum security code (only required for the final votes)</b>. In a few days we will send it to the address featuring in the data we have on file. Please remember that, if you prefer, you can collect your code from any of the %{offices}.
success_html: Thank you for requesting your <b>maximum security code (only required for the final votes)</b>. In a few days we will send it to the address featuring in the data we have on file. Please remember that, if you prefer, you can collect your code from any of the Citizen Support Offices.
edit:
see_all: See proposals
title: Letter requested
@@ -29,8 +28,7 @@ en:
new:
explanation: 'For participate on final voting you can:'
go_to_index: See proposals
office: Verify in any %{office}
offices: Citizen Support Offices
office: Verify in any Citizen Support Offices
send_letter: Send me a letter with the code
title: Congratulations!
user_permission_info: With your account you can...
@@ -60,8 +58,7 @@ en:
document_type_label: Document type
error_not_allowed_age: You don't have the required age to participate
error_not_allowed_postal_code: In order to be verified, you must be registered.
error_verifying_census: The Census was unable to verify your information. Please confirm that your census details are correct by calling to City Council or visit one %{offices}.
error_verifying_census_offices: Citizen Support Office
error_verifying_census: The Census was unable to verify your information. Please confirm that your census details are correct by calling to City Council or visit one Citizen Support Office.
form_errors: prevented the verification of your residence
postal_code: Postcode
postal_code_note: To verify your account you must be registered

View File

@@ -71,7 +71,6 @@ es:
min_age_to_participate: Edad mínima para participar
min_age_to_participate_description: "Los usuarios mayores de esta edad podrán participar en todos los procesos donde se necesite una cueta verificada"
analytics_url: "URL de estadísticas externas"
verification_offices_url: URL oficinas verificación
proposal_notification_minimum_interval_in_days: "Intervalo mínimo (en días) para que los autores de propuestas puedan enviar nuevas notificaciones de propuesta"
proposal_notification_minimum_interval_in_days_description: "El número de días en los que un usuario puede enviar una notificación a todos los que apoyan su propuesta"
direct_message_max_per_day: "Mensajes directos máximos por día"

View File

@@ -19,8 +19,7 @@ es:
unconfirmed_code: Todavía no has introducido el código de confirmación
create:
flash:
offices: Oficinas de Atención al Ciudadano
success_html: Antes de las votaciones recibirás una carta con las instrucciones para verificar tu cuenta.<br> Recuerda que puedes ahorrar el envío verificándote presencialmente en cualquiera de las %{offices}.
success_html: Antes de las votaciones recibirás una carta con las instrucciones para verificar tu cuenta.<br> Recuerda que puedes ahorrar el envío verificándote presencialmente en cualquiera de las Oficinas de Atención al Ciudadano.
edit:
see_all: Ver propuestas
title: Carta solicitada
@@ -29,8 +28,7 @@ es:
new:
explanation: 'Para participar en las votaciones finales puedes:'
go_to_index: Ver propuestas
office: Verificarte presencialmente en cualquier %{office}
offices: Oficina de Atención al Ciudadano
office: Verificarte presencialmente en cualquier Oficina de Atención al Ciudadano
send_letter: Solicitar una carta por correo postal
title: '¡Felicidades!'
user_permission_info: Con tu cuenta ya puedes...
@@ -60,8 +58,7 @@ es:
document_type_label: Tipo de documento
error_not_allowed_age: No tienes la edad mínima para participar
error_not_allowed_postal_code: Para verificarte debes estar empadronado.
error_verifying_census: El Padrón no pudo verificar tu información. Por favor, confirma que tus datos de empadronamiento sean correctos llamando al Ayuntamiento o visitando una %{offices}.
error_verifying_census_offices: oficina de Atención al ciudadano
error_verifying_census: El Padrón no pudo verificar tu información. Por favor, confirma que tus datos de empadronamiento sean correctos llamando al Ayuntamiento o visitando una Oficina de Atención al Ciudadano.
form_errors: evitaron verificar tu residencia
postal_code: Código postal
postal_code_note: Para verificar tus datos debes estar empadronado

View File

@@ -58,7 +58,6 @@ section "Creating Settings" do
Setting.create(key: "meta_description", value: "Citizen participation tool for an open, "\
"transparent and democratic government")
Setting.create(key: "meta_keywords", value: "citizen participation, open government")
Setting.create(key: "verification_offices_url", value: "http://oficinas-atencion-ciudadano.url/")
Setting.create(key: "min_age_to_participate", value: "16")
Setting.create(key: "map_latitude", value: 40.41)
Setting.create(key: "map_longitude", value: -3.7)

View File

@@ -97,7 +97,6 @@ Setting['mailer_from_name'] = 'CONSUL'
Setting['mailer_from_address'] = 'noreply@consul.dev'
# Verification settings
Setting['verification_offices_url'] = 'http://oficinas-atencion-ciudadano.url/'
Setting['min_age_to_participate'] = 16
# Featured proposals

View File

@@ -20,17 +20,6 @@ feature "Verify Letter" do
expect(user.letter_verification_code).to be
end
scenario "Go to office instead of send letter" do
Setting["verification_offices_url"] = "http://offices.consul"
user = create(:user, residence_verified_at: Time.current,
confirmed_phone: "611111111")
login_as(user)
visit new_letter_path
expect(page).to have_link "Citizen Support Offices", href: "http://offices.consul"
end
scenario "Deny access unless verified residence" do
user = create(:user)