Add "Add media" button on home page when no media is present.
authorBen Sturmfels <ben@sturm.com.au>
Tue, 4 Aug 2015 04:19:09 +0000 (14:19 +1000)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 10 Dec 2015 17:33:10 +0000 (11:33 -0600)
This is an addition to the button hidden in the top toolbar.

mediagoblin/templates/mediagoblin/utils/object_gallery.html

index 1b4a15ed7682548502193872108750b93415d82c..1f05eed209d8da9dffe3968717d23e8e198848b6 100644 (file)
         {%- endtrans -%}
       </i>
     </p>
+    <p>
+      <a class="button_action" href="{{ request.urlgen('mediagoblin.submit.start') }}">
+        {%- trans %}Add media{% endtrans -%}
+      </a>
+    </p>
   {% endif %}
 {% endmacro %}