diff --git a/asuzr/static/del.png b/asuzr/static/del.png new file mode 100644 index 0000000..4ac4b81 Binary files /dev/null and b/asuzr/static/del.png differ diff --git a/asuzr/static/rubbish.png b/asuzr/static/rubbish.png new file mode 100644 index 0000000..679fe94 Binary files /dev/null and b/asuzr/static/rubbish.png differ diff --git a/record/urls.py b/record/urls.py index 390c34f..69cbab6 100644 --- a/record/urls.py +++ b/record/urls.py @@ -20,7 +20,7 @@ urlpatterns = patterns('', url(r'^desreport/$', 'asuzr.views.desreport'), url(r'^production_table/(?P\d+)/$', 'asuzr.views.production_table'), url(r'^sketches/(?P\d+)/$', 'asuzr.views.sketches'), - url(r'^sketches/delete/$', 'asuzr.views.delete_sketch'), + url(r'^sketches/delete/$', 'asuzr.views.delete_sketch', name = 'asuzr-del-sketch'), url(r'^prodplan/$', 'asuzr.views.prod_plan_view'), url(r'^admin/', include(admin.site.urls)), url(r'^inplaceeditform/', include('inplaceeditform.urls')), @@ -33,4 +33,5 @@ if settings.DEBUG: # static files (images, css, javascript, etc.) urlpatterns += patterns('', (r'^media/(?P.*)$', 'django.views.static.serve', { - 'document_root': settings.MEDIA_ROOT})) + 'document_root': settings.MEDIA_ROOT})) + diff --git a/templates/asuzr/base.html b/templates/asuzr/base.html index 5e3a587..d37d13d 100644 --- a/templates/asuzr/base.html +++ b/templates/asuzr/base.html @@ -37,6 +37,9 @@ .gray { color: lightgray; } + body { + background: #F5F5F5 + } diff --git a/templates/asuzr/sketches.html b/templates/asuzr/sketches.html index 0e30591..23978e9 100644 --- a/templates/asuzr/sketches.html +++ b/templates/asuzr/sketches.html @@ -1,15 +1,40 @@ {% extends "asuzr/base.html" %} {% load thumbnail %} +{% load staticfiles %} {% block page %} {% if sketch_list %}
    {% for sketch in sketch_list %} -
  • {% thumbnail sketch.sketch_file "200x200" crop="center" as im %} {% endthumbnail %}
  • +
  • {% thumbnail sketch.sketch_file "200x200" crop="center" as im %} {% endthumbnail %}
  • {% endfor %}
{% endif %}