Skip to content

Commit

Permalink
(hotfix) refactor raingardens-handlebars-helpers.js for static site
Browse files Browse the repository at this point in the history
  • Loading branch information
goldpbear committed Dec 11, 2017
1 parent 4345919 commit 5504c4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
32 changes: 13 additions & 19 deletions src/flavors/raingardens/static/js/raingardens-handlebars-helpers.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
/*global Handlebars _ moment */

var Shareabouts = Shareabouts || {};

(function(NS) {
Handlebars.registerHelper("rain_garden_title", function(
gardenNumber,
gardenName,
) {
var gardenTitle = "";
if (gardenName) {
gardenTitle = gardenName;
if (gardenNumber) gardenTitle += " - Rain Garden " + gardenNumber;
} else {
if (gardenNumber) gardenTitle = "Rain Garden " + gardenNumber;
}
return gardenTitle;
});
})(Shareabouts);
Handlebars.registerHelper("rain_garden_title", function(
gardenNumber,
gardenName,
) {
var gardenTitle = "";
if (gardenName) {
gardenTitle = gardenName;
if (gardenNumber) gardenTitle += " - Rain Garden " + gardenNumber;
} else {
if (gardenNumber) gardenTitle = "Rain Garden " + gardenNumber;
}
return gardenTitle;
});
1 change: 0 additions & 1 deletion src/flavors/raingardens/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
-->

{{#block "includes"}}
<script src="{{STATIC_URL}}js/raingardens-handlebars-helpers.js"></script>
<script>
(function(S) {
// ========================================
Expand Down

0 comments on commit 5504c4f

Please sign in to comment.