Created
May 24, 2013 03:45
-
-
Save BenjaminRH/5641163 to your computer and use it in GitHub Desktop.
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
Template.timelinePublic.helpers({ | |
timelineItems: function() { | |
return timelineItems.find({ timeline: Session.get("currentTimeline") }); | |
} | |
}); |
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
<template name="timelinePublic"> | |
<div id="timeline"> | |
<div class="timeline-bar"></div> | |
<ul class="timeline-items"> | |
{{#each timelineItems}} | |
{{>timelineItem}} | |
{{else}} | |
{{>itemsBlankState}} | |
{{/each}} | |
</ul> <!-- end .timeline-items --> | |
</div> <!-- end #timeline --> | |
</template> | |
<template name="itemsBlankState"> | |
<div class="blank-state"> | |
<h3>No items have been added to this timeline yet.</h3> | |
<p class="bs-subtitle">Bummer, right? Hang in there. Should be something soon.</p> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment