Skip to content
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
9 changes: 7 additions & 2 deletions app/base/tmpl/index.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@
<small>
{{#langlinks}}
| {{#lang_code}}
<a href="/prism/{{lang_code}}">{{name}}</a>
{{#default}}
<a href="/prism/">{{name}}</a>
{{/default}}
{{^default}}
<a href="/prism/index.{{lang_code}}.html">{{name}}</a>
{{/default}}
{{/lang_code}}
{{^lang_code}}
<b>{{name}}</b>
Expand Down Expand Up @@ -129,4 +134,4 @@
</footer>
</div>
{{> partial_analytics}}
</body>
</body>
4 changes: 2 additions & 2 deletions app/lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function build() {
var obj = {name: 'english'};
if (lang_code != 'en')
obj.lang_code = 'en';
obj.default = true;
result.push(obj);
var obj = {name: 'française'};
if (lang_code != 'fr')
Expand All @@ -99,7 +100,7 @@ function build() {
geoinfo: JSON.stringify(geo_data),
agencies: JSON.stringify(agencies),
jstexts: JSON.stringify(lang_texts.js),
main_url: "http://apps.opendatacity.de/prism/" + (lang_texts.lang_code == 'de' ? '' : lang_texts.lang_code),
main_url: "https://opendatacity.github.io/prism/" + (lang_texts.lang_code == 'en' ? '' : 'index.' + lang_texts.lang_code + '.html'),
screenshot: "http://opendatacity.de/traceprism.jpg"
};
}
Expand All @@ -124,4 +125,3 @@ function build() {
}

exports.build = build;