Skip to content

Instantly share code, notes, and snippets.

@d6veteran
Created April 12, 2011 18:12
Show Gist options
  • Save d6veteran/916056 to your computer and use it in GitHub Desktop.
Save d6veteran/916056 to your computer and use it in GitHub Desktop.
Score Lists
<!-- HIGH SCORES -->
<div class="block">
<div class="score-block">
<div class="block-header">
<h2>High Scores</h2>
</div>
{% if high_scores %}
{% for s in high_scores %}
<div class="tiny-score">
<div class="player">
{% if s.player.fb_id%}
<a title="{{s.player.name}}" href="/user/{{s.player.fb_id}}">
<img alt="{{s.player.name}}" title="{{s.player.name}}" src="http://graph.facebook.com/{{s.player.fb_id}}/picture?type=square"/>
</a>
<a title="{{s.player.name}}" href="/user/{{s.player.fb_id}}">{{s.player.name}}</a>
{% else %}
{{s.player.name}}
{% endif %}
<span class="points">{{s.points}}</span>
</div>
<div class="time">
<p>{{s.created|timesince}} ago</p>
</div>
</div>
<div class="liner"></div>
{% endfor %}
{% else %}
<p>No one has logged a score for {{game.name}} yet. Be the first! Checkin and then add a score.</p>
{% endif %}
</div><!-- /high-scores-list -->
</div><!-- /block -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment