From 7670a7188762e4b2b4197afdcb19da400e0b1d6d Mon Sep 17 00:00:00 2001 From: Anastasia Date: Thu, 16 Jul 2015 10:07:09 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D1=8D=D1=81=D0=BA=D0=B8=D0=B7=D0=BE=D0=B2,=20=D0=A4=D0=BE?= =?UTF-8?q?=D0=BD=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=20=D0=91?= =?UTF-8?q?=D0=B5=D0=BB=D1=8B=D0=B9=20=D0=B4=D1=8B=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asuzr/static/del.png | Bin 0 -> 1117 bytes asuzr/static/rubbish.png | Bin 0 -> 505 bytes record/urls.py | 5 +++-- templates/asuzr/base.html | 3 +++ templates/asuzr/sketches.html | 27 ++++++++++++++++++++++++++- 5 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 asuzr/static/del.png create mode 100644 asuzr/static/rubbish.png diff --git a/asuzr/static/del.png b/asuzr/static/del.png new file mode 100644 index 0000000000000000000000000000000000000000..4ac4b81e844aa6ba546bb7a33bd52315a6bcb80f GIT binary patch literal 1117 zcmV-j1fu(iP)2B-so&$DwLbh=|NjzZX$KG1{tfG1 zzp3qV+T4|Oa$QVKuOgQzCd(t9FuQj8ENycL1Bk)6iuh{fy6NuU9aU=kv!8z4cOx{i zeto`9^1<}9;@V`fusW5`HKo!5m7rD~82((Coo^WCH$%gNFam91QdwfxRHKW%M^w4; zR?Fc-7XSv=tX*X1bKBE%+g7ED(`Tj|H7lx(P;a;=eXssrx#}GeX6u$iESN!dEb5${lqw~D>nCjZ~@o;fcEMZEFkM;{x=g;CO=en;sFCJdi3) z$x$8!KLV*yGNkMW-w$i`>=LEUO?20qs2E@SeY<^gM}|xqlmZ=tj!6JH%UYg^#B;}? z@SmW8=D=y%n|+|`UMu0*^!0+#L^6zYtc@^+oSjTfv8^o*)}~2815TWBo=J8se%v@p zi0&&O1hG`qD&7~$ZG0O?F~S&%c2cwmd)HC8Ws(lQ-w3F|^toaB^H*}aTF*W-H1uIFlI#$)jXfHfj8}&XYKz01^GElb?A3KkE z*AM+c$F{_*RI)1v5B~|aO?MDx9<@;r0)#-z$Wuf9mqj=+(Il6n4)hYgFSRD)q>CMb zJN7~I7+CQojYc2750(G{W}tB{2!j0+VdJ@kdFPr8e#&Ax^(25)Uk>bK@bMuZx0s@PUJj| zR8$m9FBN}QQM?OuZfDmWgYIE!duQ3%AByR& zsrsktpX#Q=G3?-Mu#0$xrm&Z|RK)IJ+>(s~@g5%Ia`0{8N=}UUg-@6V-xoZ=+alIY zeC?@jsQtjL*nW!xyuohy#eq1)?{*WVI3>w2E;9yVhW%XNLdA!ua8J^86YS$@OIi}c zHg4ehhQzP&JUU9^BTR$8(aF{1=cwo1H0Q1)o}do<_c)1jx`{cDZ&KTPIj+vRD{%oY zbR)EjyZD@+xA778r32B%y|Os}whH1pw-xsj{LB7nUf0qT#JJe$5^<%_Y9Q(|uOu!t z9*W62;!=vCSo(P-aXkA&(MY;S&6kKtI?sCi>xdW7NBnm~;%UxVOI%shd9=b>%=(DS zlSlfyGpWT#xQf%bBei@+Iw;oyakaXk4iBVDd!7^Oygte{&%P>u{3jj`srZj1#Rw;Y v|9DuBb@z5}#eEuoz<0w&uF0|Q$`}6uNMVU$178Rf00000NkvXXu0mjf;XLLK literal 0 HcmV?d00001 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 %}