Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button lang #288

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# compiled output
/dist
/tmp
.idea/
package-lock.json

# dependencies
/node_modules
Expand Down
2 changes: 1 addition & 1 deletion Brocfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var app = new EmberApp({
});

// FileSaver
app.import('bower_components/FileSaver.js/FileSaver.min.js');
app.import('bower_components/FileSaver.js/dist/FileSaver.min.js');

// PapaParse
app.import('bower_components/papaparse/papaparse.min.js');
Expand Down
4 changes: 3 additions & 1 deletion app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ export default Ember.Controller.extend({
return this.get('currentRouteName').endsWith(".show");
}),
isHomePageRoute: computed.equal('currentRouteName','index'),

isSearchRoute: computed.equal('currentRouteName','search'),

showStreamer: computed('isHomePageRoute', function(){
return !this.get('isHomePageRoute');
}),
heroImageStyle: computed(function(){
let url = this.get('featureToggle.hero_image');
return Ember.String.htmlSafe(`background-image: url('${url}');`);
})
});
});
2 changes: 1 addition & 1 deletion app/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {computed, get} = Ember;
export default Ember.Controller.extend({
i18n: Ember.inject.service(),
featureToggle: Ember.inject.service(),

needs: ['search'],
firstYear: computed.alias('featureToggle.first_year'),
lastYear: computed.alias('featureToggle.last_year'),
agcensusLastYear: computed.alias('featureToggle.year_ranges.agcensus.last_year'),
Expand Down
14 changes: 10 additions & 4 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html style="margin: 0%;">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand All @@ -21,25 +21,31 @@
<link rel="icon" type="image/png" href="assets/img/branding/favicon/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="assets/img/branding/favicon/manifest.json">
<link rel="shortcut icon" href="assets/img/branding/favicon/favicon.ico">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css">
<link href="https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/css/bootstrap4-toggle.min.css" rel="stylesheet">
<meta name="msapplication-TileColor" content="#ee4036">
<meta name="msapplication-TileImage" content="assets/img/branding/favicon/mstile-144x144.png">
<meta name="msapplication-config" content="assets/img/branding/favicon/browserconfig.xml">
<meta name="theme-color" content="#ee4036">

{{content-for 'head'}}

<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700,300,900|Bitter:400,400italic,700|Alegreya:400,700,400italic,700italic,900,900italic|Source+Serif+Pro:400,600,700|Alegreya+SC:400,700|Alegreya+Sans+SC:400,300,500,700|Alegreya+Sans:400,300,500,700,800&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href='assets/font/RF_Rufo/RFRufo-Bold.ttf' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/atlas-colombia.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

{{content-for 'head-footer'}}
</head>
<body class="body">
<body class="body m-0">
{{content-for 'body'}}

<script src="assets/vendor.js"></script>
<script src="assets/atlas-colombia.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>


{{content-for 'body-footer'}}
</body>
Expand Down
24 changes: 12 additions & 12 deletions app/locales/en-col/translations.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading