Skip to content

Commit

Permalink
Merge pull request #433 from vrk-kpa/LIKA-597_remove-contact-form
Browse files Browse the repository at this point in the history
LIKA-597: Replace contact form with laatutyökalut link
  • Loading branch information
bzar authored Feb 20, 2024
2 parents 54dec9c + 09b60fa commit f91e103
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 66 deletions.
3 changes: 1 addition & 2 deletions ansible/deploy-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
- { role: ckan-extension, ckanext: ckanext-scheming }
- { role: ckan-extension, ckanext: ckanext-fluent }
- { role: ckan-extension, ckanext: ckanext-pages }
- { role: ckan-extension, ckanext: ckanext-contact }
- { role: ckan-extension, ckanext: ckanext-harvest }
- { role: ckan-extension, ckanext: ckanext-xroad_integration }
- { role: ckan-extension, ckanext: ckanext-validate_links }
Expand All @@ -50,4 +49,4 @@
- solr-reindex
- diagnostics
handlers:
- import_tasks: handlers/handlers.yml
- import_tasks: handlers/handlers.yml
3 changes: 1 addition & 2 deletions ansible/deploy-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
- { role: ckan-extension, ckanext: ckanext-scheming }
- { role: ckan-extension, ckanext: ckanext-fluent }
- { role: ckan-extension, ckanext: ckanext-pages }
- { role: ckan-extension, ckanext: ckanext-contact }
- { role: ckan-extension, ckanext: ckanext-harvest }
- { role: ckan-extension, ckanext: ckanext-xroad_integration }
- { role: ckan-extension, ckanext: ckanext-validate_links }
Expand All @@ -26,4 +25,4 @@
- ckan
- ckan-translations
handlers:
- import_tasks: handlers/handlers.yml
- import_tasks: handlers/handlers.yml
5 changes: 0 additions & 5 deletions ansible/roles/ckan/templates/ckan.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ smtp.server = {{ email.smtp_server }}
smtp.starttls = False
smtp.mail_from = no-reply

ckanext.contact.mail_to = {{ email.contact }}
ckanext.contact.recipient_name =
ckanext.contact.subject = Palautetta Liityntäkatalogista
ckanext.contact.captcha_implementation = simple

ckan.harvest.mq.type = redis
ckan.harvest.mq.hostname = {{ redis.host }}
ckan.harvest.mq.port = {{ redis.port }}
Expand Down
3 changes: 3 additions & 0 deletions ansible/roles/nginx/templates/nginx_site_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ server {
return 301 /en_GB$1;
}

location ~ (/en|/fi|/sv|/en_GB)?/contact {
return 301 https://laatutyokalut.suomi.fi/p/jTVC;
}
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header X-Url-Scheme $scheme;
Expand Down
1 change: 0 additions & 1 deletion ansible/vars/environment-specific/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ ckan_plugins:
- apicatalog_pages
- pages
- apicatalog_admin_dashboard
- contact
- apicatalog_harvesterstatus
- harvest
- xroad_harvester
Expand Down
1 change: 0 additions & 1 deletion ansible/vars/environment-specific/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ ckan_plugins:
- apicatalog_pages
- pages
- apicatalog_admin_dashboard
- contact
- apicatalog_harvesterstatus
- harvest
- xroad_harvester
Expand Down
1 change: 0 additions & 1 deletion ansible/vars/environment-specific/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ ckan_plugins:
- apicatalog_pages
- pages
- apicatalog_admin_dashboard
- contact
- apicatalog_harvesterstatus
- harvest
- xroad_harvester
Expand Down
1 change: 0 additions & 1 deletion ansible/vars/environment-specific/vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ ckan_plugins:
- apicatalog_pages
- pages
- apicatalog_admin_dashboard
- contact
- apicatalog_harvesterstatus
- harvest
- xroad_harvester
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ul class="nav navbar footer-nav">
{{ h.build_nav_main() }}
<li><a href="{{'https://palveluhallinta.suomi.fi/%s/sivut/palveluvayla/palvelukuvaus/tietosuoja' % lang_code}}" target="_blank">{{_('Privacy statement')}}&nbsp;<i class="fal fa-external-link"></i></a></li>
{{ h.build_nav('contact.form', _('Give feedback')) }}
<li><a href="https://laatutyokalut.suomi.fi/p/jTVC" target="_blank">{{_('Give feedback')}}&nbsp;<i class="fal fa-external-link"></i></a></li>
</ul>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ h.build_nav('dataset.search', _('Datasets')) }}
{{ h.build_nav('organization.index', _('Organizations')) }}
{{ h.build_nav_main() }}
{{ h.build_nav('contact_form', _('Feedback')) }}
<li><a href="https://laatutyokalut.suomi.fi/p/jTVC" target="_blank">{{_('Feedback')}}&nbsp;<i class="fal fa-external-link"></i></a></li>
</ul>
</div>
{% endblock %}

0 comments on commit f91e103

Please sign in to comment.