fixed some templating issues
This commit is contained in:
		@@ -79,7 +79,7 @@
 | 
			
		||||
        </ul>
 | 
			
		||||
        <ul id="dropdown-tags" class="dropdown-content">
 | 
			
		||||
          {% for tag in unique_tags %}
 | 
			
		||||
          <li><a href="{{tag.get_absolute_url}}">{{tag}}</a></li>
 | 
			
		||||
          <li><a href="{{tag.get_absolute_url}}">{{tag}} ({{tag.num_books}})</a></li>
 | 
			
		||||
          {% endfor %}
 | 
			
		||||
        </ul>
 | 
			
		||||
 | 
			
		||||
@@ -110,10 +110,11 @@
 | 
			
		||||
          <div class="col s12 m6 offset-m3">
 | 
			
		||||
            <div class="card">
 | 
			
		||||
              <div class="card-content center">
 | 
			
		||||
                <p>You don't have permission to view this.</p> 
 | 
			
		||||
                <p>You don't have permission to view this.</p>
 | 
			
		||||
              </div>
 | 
			
		||||
              <div class="card-action center">
 | 
			
		||||
                <a class="waves-effect waves-light btn-large green accent-4" href="{% url 'login'%}?next={{request.path}}">Login</a>
 | 
			
		||||
                <a class="waves-effect waves-light btn-large green accent-4"
 | 
			
		||||
                  href="{% url 'login'%}?next={{request.path}}">Login</a>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,8 @@
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></td>
 | 
			
		||||
        <td>{{book.author_sort}}</td>
 | 
			
		||||
        <td> {% for rating in book.ratings.all %}
 | 
			
		||||
        <td> 
 | 
			
		||||
            {% for rating in book.ratings.all %}
 | 
			
		||||
            {{rating}}
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </td>
 | 
			
		||||
 
 | 
			
		||||
@@ -17,9 +17,8 @@
 | 
			
		||||
    <tr>
 | 
			
		||||
        <td><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></td>
 | 
			
		||||
        <td>{{book.author_sort}}</td>
 | 
			
		||||
        <td> {% for rating in book.rating.all %}
 | 
			
		||||
        <td> 
 | 
			
		||||
            {{rating}}
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </td>
 | 
			
		||||
        <td>
 | 
			
		||||
            {% for tag in book.tags.all %}
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </td>
 | 
			
		||||
        <td>
 | 
			
		||||
            {% for tag in book.tag.all %}
 | 
			
		||||
            {% for tag in book.tags.all %}
 | 
			
		||||
            {{tag}},
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user