forked from consuldemocracy/consuldemocracy
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bcc426
commit 8ef2e1d
Showing
17 changed files
with
167 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<footer> | ||
<div class="row"> | ||
<div class="small-12 large-4 column"> | ||
<h1 class="logo"> | ||
<%= link_to(t("layouts.footer.consul_url"), target: "blank", rel: "nofollow") do %> | ||
<%= image_tag(image_path_for("consul_logo.png"), class: "float-left", alt: t("layouts.header.logo")) %> | ||
<% end %> | ||
</h1> | ||
|
||
<p class="info"> | ||
<%= t("layouts.footer.description", | ||
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank", rel: "nofollow"), | ||
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank", rel: "nofollow")).html_safe | ||
%> | ||
<%= link_to("Digidem Lab", "https://digidemlab.org", target: "blank", rel: "nofollow") %> | ||
</p> | ||
</div> | ||
|
||
<div class="footer-sections small-12 large-8 column"> | ||
<div> | ||
<%= link_to("https://digidemlab.org", target: "blank", rel: "nofollow") do %> | ||
<%= image_tag(image_path_for("logo_digidem.png"), class: "float-right", alt: t("layouts.header.logo")) %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="subfooter row"> | ||
<div class="small-12 medium-8 column"> | ||
<%= t("layouts.footer.copyright", year: Time.current.year) %> | | ||
<ul class="no-bullet inline-block"> | ||
<li class="inline-block"><%= link_to t("layouts.footer.privacy"), page_path("privacy") %> |</li> | ||
<li class="inline-block"><%= link_to t("layouts.footer.conditions"), page_path("conditions") %> |</li> | ||
<li class="inline-block"><%= link_to t("layouts.footer.accessibility"), page_path("accessibility") %></li> | ||
</ul> | ||
</div> | ||
|
||
<div class="small-12 medium-4 column social"> | ||
<div class="text-right"> | ||
<ul> | ||
<% if setting["twitter_handle"] %> | ||
<li class="inline-block"> | ||
<%= link_to "https://twitter.com/#{setting["twitter_handle"]}", target: "_blank", | ||
title: t("shared.go_to_page") + t("social.twitter", org: setting["org_name"]) + t("shared.target_blank") do %> | ||
<span class="show-for-sr"><%= t("social.twitter", org: setting["org_name"]) %></span> | ||
<span class="icon-twitter" aria-hidden="true"></span> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
<% if setting["facebook_handle"] %> | ||
<li class="inline-block"> | ||
<%= link_to "https://www.facebook.com/#{setting["facebook_handle"]}/", target: "_blank", | ||
title: t("shared.go_to_page") + t("social.facebook", org: setting["org_name"]) + t("shared.target_blank") do %> | ||
<span class="show-for-sr"><%= t("social.facebook", org: setting["org_name"]) %></span> | ||
<span class="icon-facebook" aria-hidden="true"></span> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
<% if setting["youtube_handle"] %> | ||
<li class="inline-block"> | ||
<%= link_to "https://www.youtube.com/#{setting["youtube_handle"]}", target: "_blank", | ||
title: t("shared.go_to_page") + t("social.youtube", org: setting["org_name"]) + t("shared.target_blank") do %> | ||
<span class="show-for-sr"><%= t("social.youtube", org: setting["org_name"]) %></span> | ||
<span class="icon-youtube" aria-hidden="true"></span> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
<% if setting["telegram_handle"] %> | ||
<li class="inline-block"> | ||
<%= link_to "https://www.telegram.me/#{setting["telegram_handle"]}", target: "_blank", | ||
title: t("shared.go_to_page") + t("social.telegram", org: setting["org_name"]) + t("shared.target_blank") do %> | ||
<span class="show-for-sr"><%= t("social.telegram", org: setting["org_name"]) %></span> | ||
<span class="icon-telegram" aria-hidden="true"></span> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
<% if setting["instagram_handle"] %> | ||
<li class="inline-block"> | ||
<%= link_to "https://www.instagram.com/#{setting["instagram_handle"]}", target: "_blank", | ||
title: t("shared.go_to_page") + t("social.instagram", org: setting["org_name"]) + t("shared.target_blank") do %> | ||
<span class="show-for-sr"><%= t("social.instagram", org: setting["org_name"]) %></span> | ||
<span class="icon-instagram" aria-hidden="true"></span> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
<%= raw content_block("footer", I18n.locale) %> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
production: | ||
piwik: | ||
id_site: <%= ENV["MATOMO_SITE_ID"] %> | ||
url: matomo.digidemlab.org | ||
disabled: <%= ENV["MATOMO_SITE_ID"].blank? %> | ||
|
||
preproduction: | ||
piwik: | ||
id_site: <%= ENV["MATOMO_SITE_ID"] %> | ||
url: matomo.digidemlab.org | ||
disabled: <%= ENV["MATOMO_SITE_ID"].blank? %> | ||
|
||
staging: | ||
piwik: | ||
id_site: <%= ENV["MATOMO_SITE_ID"] %> | ||
url: matomo.digidemlab.org | ||
disabled: <%= ENV["MATOMO_SITE_ID"].blank? %> | ||
|
||
test: | ||
piwik: | ||
id_site: <%= ENV["MATOMO_SITE_ID"] %> | ||
url: matomo.digidemlab.org | ||
disabled: true | ||
|
||
development: | ||
piwik: | ||
id_site: <%= ENV["MATOMO_SITE_ID"] %> | ||
url: matomo.digidemlab.org | ||
disabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
class CensusCaller | ||
def call(document_type, document_number, date_of_birth, postal_code) | ||
if ENV["NO_CENSUS"].present? && ENV["NO_CENSUS"] == true | ||
response = NoBorderApi.new.call(document_type, document_number) unless response.valid? | ||
return response | ||
end | ||
|
||
if Setting["feature.remote_census"].present? | ||
response = RemoteCensusApi.new.call(document_type, document_number, date_of_birth, postal_code) | ||
else | ||
response = CensusApi.new.call(document_type, document_number) | ||
end | ||
response = LocalCensus.new.call(document_type, document_number) unless response.valid? | ||
response = NoBorderApi.new.call(document_type, document_number) unless response.valid? | ||
|
||
response | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters