Created
March 25, 2014 04:43
-
-
Save majornorth/9755391 to your computer and use it in GitHub Desktop.
Game detail conditionals
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="soloGameSummary"> | |
<div class="game-summary"> | |
{{#if organizing}} | |
<strong class="text-{{#if past startsAt}}muted{{else}}info{{/if}}"> | |
{{participle startsAt past='Organized' present='Organizing'}} | |
</strong> | |
{{else}} | |
{{#if playing}} | |
<strong class="text-{{#if past startsAt}}muted{{else}}info{{/if}}"> | |
{{participle startsAt past='Played' present='Playing'}} | |
</strong> | |
{{/if}} | |
{{/if}} | |
<strong>{{type}}</strong> {{> gameWhen}} | |
<div class="needed">{{#unless past startsAt}}{{numNeeded}} needed{{/unless}}</div> | |
<div class="place"> | |
<div class="place-name"> | |
{{placeName}} | |
</div> | |
<div class-"place-location">{{placeLocation}}</div> | |
</div> | |
<div class="organizer-info"> | |
{{#unless organizing}}Added by {{creator.name}}{{/unless}} | |
</div> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dwinston lol...I'm gonna have to take a few minutes of quiet time to digest that.