Skip to content

Instantly share code, notes, and snippets.

@BenjaminRH
Created May 24, 2013 03:45
Show Gist options
  • Save BenjaminRH/5641163 to your computer and use it in GitHub Desktop.
Save BenjaminRH/5641163 to your computer and use it in GitHub Desktop.
Template.timelinePublic.helpers({
timelineItems: function() {
return timelineItems.find({ timeline: Session.get("currentTimeline") });
}
});
<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