Merge remote branch 'remotes/gullydwarf-cfdv/f401_prev_next_media_nav'
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 3 Jul 2011 02:16:39 +0000 (21:16 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 3 Jul 2011 02:16:39 +0000 (21:16 -0500)
Conflicts:
mediagoblin/db/models.py
mediagoblin/templates/mediagoblin/user_pages/media.html

1  2 
mediagoblin/db/models.py
mediagoblin/templates/mediagoblin/user_pages/media.html

index 1d91a14bbed0042958f43ae4267e7ec2423e89d3,cfd834301d251412bd729979de1f950e76705e45..8aa35ca9c59d8085f3d1ef46c71c0520718b491a
@@@ -22,7 -22,8 +22,7 @@@ from mediagoblin import uti
  from mediagoblin.auth import lib as auth_lib
  from mediagoblin import mg_globals
  from mediagoblin.db import migrations
- from mediagoblin.db.util import DESCENDING, ObjectId
+ from mediagoblin.db.util import ASCENDING, DESCENDING, ObjectId
 -from mediagoblin.util import Pagination
  
  ###################
  # Custom validators
index 0c13f5c441c14ed25845e01ea09838f77f054e08,6159a853c5e4e1a9e41bf643d88c75c6d9b9126b..21506ee495b21cf5fe7f3eef81411aab8e141c30
          {% include "mediagoblin/utils/pagination.html" %}
        </div>
      {% endif %}
 -
      <div class="grid_4 omega media_sidebar">
 -      <p>This is a sidebar! Yay!</p>
+       {% include "mediagoblin/utils/prev_next.html" %}
 +      <h3>Sidebar content here!</h3>
 +      <p>
 +        {% if media['uploader'] == request.user['_id'] %}
 +          <p>
 +            <a href="{{ request.urlgen('mediagoblin.edit.edit_media',
 +                                       user= media.uploader().username,
 +                                       media= media._id) }}"
 +               ><img src="{{ request.staticdirect('/images/icon_edit.png') }}"
 +                     class="media_icon" />edit</a>
 +          </p>
 +          <p>
 +            <img src="{{ request.staticdirect('/images/icon_delete.png') }}"
 +                 class="media_icon" />delete
 +          </p>
 +        {% endif %}
 +      </p>
      </div>
    {% else %}
 -  <p>Sorry, no such media found.<p/>
 +    <p>Sorry, no such media found.<p/>
    {% endif %}
  {% endblock %}