Source

beerfingers / bf-templates / mobile / myratings.html

Full commit
{%extends "mobile/mdataview.html"%}

{%block title%}My Ratings{%endblock%}

{% block content %}

<div id="topbar" class="black">
	<div id="leftnav">
		<a href="{% url mobile.views.mobile_index %}"><img alt="home" src="/media/iwebkit5/images/home.png" /></a><a href="">My Ratings</a></div>
</div>

<div id="content">
<ul>
{% for item in journal_list.object_list %}
	<li><a class="noeffect" href="{% url mobile.views.mobile_ratingdetail item.id %}"><span class="number"></span><span class="auto"></span>
                <span class="name">{{item.beer}} : <span style="color: #009999;">{{ item.satisfaction.satgroup }}</span></span></a>
	</li>
{% empty %}
	<li><a class="noeffect" href="#"><span class="number"></span><span class="auto"></span>
                <span class="name">No Ratings yet. Add One!</span></li>
{% endfor %}
</ul>

<!-- pagination -->

		{% if journal_list.has_previous %}
			<a href="?page={{ journal_list.previous_page_number }}">previous</a>
		{% endif %}

		<span class="current">
			Page {{ journal_list.number }} of {{ journal_list.paginator.num_pages }}.
		</span>

		{% if journal_list.has_next %}
			<a href="?page={{ journal_list.next_page_number }}">next</a>
		{% endif %}
<!-- end pagination -->
</div>
{% endblock %}