Ticket #997: issue_997.patch

File issue_997.patch, 969 bytes (added by Ben Sturmfels, 9 years ago)

Add "Add media" button

  • mediagoblin/templates/mediagoblin/utils/object_gallery.html

    From 0ac697631bc9efd1da84e1b12888dfb63fc949f7 Mon Sep 17 00:00:00 2001
    From: Ben Sturmfels <ben@sturm.com.au>
    Date: Tue, 4 Aug 2015 14:19:09 +1000
    Subject: [PATCH] Add "Add media" button on home page when no media is present.
    
    This is an addition to the button hidden in the top toolbar.
    ---
     mediagoblin/templates/mediagoblin/utils/object_gallery.html | 5 +++++
     1 file changed, 5 insertions(+)
    
    diff --git a/mediagoblin/templates/mediagoblin/utils/object_gallery.html b/mediagoblin/templates/mediagoblin/utils/object_gallery.html
    index 1b4a15e..1f05eed 100644
    a b  
    7272        {%- endtrans -%}
    7373      </i>
    7474    </p>
     75    <p>
     76      <a class="button_action" href="{{ request.urlgen('mediagoblin.submit.start') }}">
     77        {%- trans %}Add media{% endtrans -%}
     78      </a>
     79    </p>
    7580  {% endif %}
    7681{% endmacro %}