Changeset - 421d2a0bc61b
[Not reviewed]
tip default
0 2 0
Branko Majic (branko) - 12 years ago 2013-02-24 17:25:53
branko@majic.rs
Always show the headings on user page. Show pagination _only_ if there's at least one page available.
2 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general) First comment
djangoshaker/templates/djangoshaker/pagination.html
Show inline comments
 
{% if page_obj.number %}
 
<div class="pagination">
 
  <ul>
 
    {% if page_obj.has_previous %}
 
@@ -13,3 +14,4 @@
 
    {% endif %}
 
  </ul>
 
</div>
 
{% endif %}
 
\ No newline at end of file
djangoshaker/templates/djangoshaker/user.html
Show inline comments
 
@@ -5,9 +5,10 @@
 
{% block content %}
 
<div class="row">
 

	
 
  <div class="span6">  
 
  <div class="span6">
 
    <h1>Your Drinks</h1>
 
    <div>This is a list of drinks you can make with the ingredients you have.</div>
 
{% if available_recipes %}
 
<h1>Your Drinks</h1>
 
<ul class="unstyled">
 
  {% for recipe in available_recipes %}
 
  <li>{% html_link 'recipe' recipe.name recipe.id "btn btn-link" %}</li>
 
@@ -18,7 +19,8 @@
 
  </div>
 

	
 
  <div class="span6">
 
<h1>Your Ingredients</h1>
 
    <h1>Your Ingredients</h1>
 
    <div>This is a list of ingredients you have.</div>
 
{% if user_ingredients %}
 
{% include "djangoshaker/ingredient_selection.html" with ingredients=user_ingredients %}
 
{% endif %}
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now