Skip to content

Commit

Permalink
feat(ui): update simple loading partial
Browse files Browse the repository at this point in the history
Now you can pass text to simpleloading partial specifying what to display. By default it still says "Loading...".

Signed-off-by: Aleksuei Riabtsev <aleksuei.riabtsev@ec.gc.ca>
  • Loading branch information
AleksueiR committed Jul 6, 2015
1 parent 976c57a commit c1f643c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 7 additions & 1 deletion site/includes/loadingsimple.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<div class="loading-simple">
<span>{{t "map.loadingTitle"}}</span>
<span>
{{#if text}}
{{t text }}
{{else}}
{{t "map.loadingTitle"}}
{{/if}}
</span>
<ul role="presentation">
<li></li>
<li></li>
Expand Down
2 changes: 1 addition & 1 deletion site/includes/mapexport.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</section>
</div>
</div>
{{>loadingsimple}}
{{>loadingsimple text="map.generatingTitle" }}
</div>
<div class="map-export-controls">
<header>
Expand Down
5 changes: 3 additions & 2 deletions src/locales/en-CA/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@
},
"s13": {
"h1": "Usage",
"h2": "Limitations",
"h2": "Limitations",
"header": "Map Export",
"img1": "The Toolbar Button",
"img2": "Download Image Button",
"img2": "Download Image Button",
"p1": "Map Export is used to convert the contents of the map into an image that can be downloaded by the user.",
"p2": "Click the Map Export button in the toolbar to initiate the image generation. The Map Export window will open. A \"Loading\" message will display, and the image preview will appear once it is generated. Click the Download Image button to save the image. Click the X to close the Map Export window.",
"p3": "Currently Map Export will only capture layers that are hosted on a public internet service. Layers hosted privately (e.g. on an intranet) or added from file-based sources will not appear in the resultant image file. Images are currently only available in PNG format."
Expand Down Expand Up @@ -547,6 +547,7 @@
"title": "Help"
},
"map": {
"generatingTitle": "Generating",
"loadingTitle": "Loading",
"scale": "Scale"
},
Expand Down
1 change: 1 addition & 0 deletions src/locales/fr-CA/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@
"title": "Aide"
},
"map": {
"generatingTitle": "[fr] Generating",
"loadingTitle": "Chargement",
"scale": "Échelle"
},
Expand Down

0 comments on commit c1f643c

Please sign in to comment.