Commits

powersurge360 committed f8a5242

Fixed a weird add a photo bug.

Comments (0)

Files changed (1)

share_search/reviews/templates/reviews/store_detail.html

     <div class="row">
         <h1 class="span12">Photo</h1>
     </div>
+    {% if object.photos.count %}
     <div class="row">
         <h3 class="span12">
             {% if user.is_authenticated %}<a href="#add-photo" data-toggle="modal">Add a photo</a>{% else %}<a href="{% url "site:register" %}">Register to add a photo.</a>{% endif %}
         </h3>
     </div>
-    {% if object.photos.count %}
         <div class="gallery">
             {% gridify object.photos.all 4 as photos %}
             {% for row in photos %}