Source

beerfingers / bf-templates / bar / index_journal.html

Full commit
{% extends "index.html" %}

{% block title %} Ratings Index {% endblock %}

{% block content %}
	<!-- start recent ratings -->
	<h3>What you've rated</h3>
	<div class="accordion clearleft">
	<div id="consumption">	
{% for item in journal_list.object_list %}

	<p class="head beerpanel">
		<span class="beername">
		<a href="#">{{item.beer}}</a>
		</span>
		
		<span class="desire">{{ item.satisfaction.satgroup }}</span> 
	</p>
	<div class="details">
		<span class="note">Note: {{ item.note }}</span>
		<hr>
		<span class="brewery">{{ item.brewery.breweryname }}</span>
		<span class="abv">{{ item.beer.abv }}% ABV</span>
		<span class="date">{{ item.datetime }}</span>
		<span class="beerstyle" style="">{{ item.beer.beerstyle.stylename }}</span>
		
		<a href="{% url bar.views.edit_journal item.id %}" class="small-link">{Edit}</a>
		<p class='spacer'></p>
	</div>

{% empty %}
	<p>No Ratings yet. Add One!</p>
{% endfor %}
	</div>
	</div><!-- end recent ratings -->
	
		<!-- pagination -->
	<div class="pagination" style="clear: both;">
		<span class="step-links">
			{% 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 %}
		</span>
	</div><!-- end pagination -->
{% endblock %}	
{% block column %}

      <div><img alt="Profile picture" src="{{ MEDIA_URL }}images/default-avatar.png"/>
	<div>	{% if user %}
		<a href="{% url profiles.views.profile_detail user %}" rel="Personal Information">{{ user.first_name}} {{ user.last_name }}</a>
		<a href="{% url profiles.views.profile_detail user %}" rel="Personal Information">Profile</a>
		{% endif %}
	</div> 
	<div>
	<p><strong>Search</strong> for beer or breweries to <strong>rate</strong> the beers you've drank. You can rate multiple time if you choose too, and <strong>no mininum</strong> word requirements. <strong>No deletes!</strong></p>
	<p>BeerFingers rating system is very <strong>simple.</strong> If you want to do the standard five paragraph review it's up to you.</p>
	<p>Give me feedback at <a href="http://twitter.com/beerfingers" rel="nofollow">@BeerFingers</a></p>
		
	</div>
      </div>


{% endblock %}