-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(hotfix) refactor raingardens-handlebars-helpers.js for static site
- Loading branch information
Showing
2 changed files
with
13 additions
and
20 deletions.
There are no files selected for viewing
32 changes: 13 additions & 19 deletions
32
src/flavors/raingardens/static/js/raingardens-handlebars-helpers.js
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,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; | ||
}); |
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