This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
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.
* develop: Hide carbon cycle insight in production Text changes and improvements Adds default thresh to tabs and enables it on the javascript Small adjustments Update table name Fixes some queries due to changes on carto tables More fixes to display and indicators list Fixed bug with the total carbon stored widget: name of the country wasn't properly shown Fixed bug with the total carbon stored widget: name of the country wasn't properly shown Fixed download widget (query was buggy) Fixed the open data portal link in the widgets download modal Fix table name Update code and indicators ids following changes from David
- Loading branch information
Showing
17 changed files
with
161 additions
and
156 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
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
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,16 @@ | ||
class ApplicationController < ActionController::Base | ||
|
||
helper_method :terms_cookie | ||
|
||
protect_from_forgery with: :exception | ||
|
||
|
||
def index | ||
@is_production = Rails.env.production? | ||
end | ||
|
||
private | ||
def terms_cookie | ||
cookies.permanent[ENV['TERMS_COOKIE'].to_sym] | ||
end | ||
|
||
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ADMIN_BOUNDARY_ID = 1 | ||
CDB_INDICATORS_VALUES_TABLE = "indicators_values" | ||
CDB_INDICATORS_TABLE = "indicators" | ||
CDB_BOUNDARIES_TABLE="boundaries_table" | ||
ADMIN_BOUNDARY_ID = "admin" | ||
CDB_INDICATORS_VALUES_TABLE = "gfw_climate_country_pages_indicator_values_2017_data_20180913" | ||
CDB_INDICATORS_TABLE = "gfw_climate_country_pages_indicator_info_2017_data" | ||
CDB_BOUNDARIES_TABLE="gfw_climate_country_pages_boundary_info_2017_data" | ||
CDB_COUNTRIES_TABLE = "gadm28_countries" | ||
CDB_SUBNAT_TABLE = "gadm28_adm1" |
Oops, something went wrong.