Source

beerfingers / bf-templates / mobile / results.html

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

{% block title %}{% if query %}{{ query }}{% endif %}{% 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="">{% if query %}{{ query }}{%endif%}</a></div>
</div>

<div id="content">
	<ul>
            {% for i in results %}
		<li>
		<span class="number"><a href="{% url mobile.views.mobile_rate i.brewery.brewery_slug i.beer_slug %}" style="color:green;">_Rate</a></span><span class="auto"></span>
                <a class="noeffect" href="{{ i.get_absolute_url }}"><span class="name"> 
		{{ i.beername }} : <span style="color: #009999;">{{ i.brewery }}</span></span></a></li>
            {% endfor %}
            {%if not results %}
            <li><a class="noeffect" href="#"><span class="number"></span><span class="auto"></span>
                <span class="name">Yuck, nothing was found for "{% if query %}{{ query }}{%endif%}".</span></li>
            <li><a class="noeffect" href="{% url mobile.views.mobile_index %}">
                <span class="number"></span><span class="auto"></span><span class="name" style="color:#9fee00;">Search Again</span></a>
                </li>
            {% endif %}
	</ul>
	
</div>
{% endblock %}