# HG changeset patch # User neko259 # Date 2017-04-10 13:47:39 # Node ID c535358de3a99dfa8146a76187cc968d65d1fe96 # Parent fa0799803c0dec41cb0c789801dfec20b3fbb26d Added confirmation for banning user and deleting post diff --git a/boards/locale/ru/LC_MESSAGES/django.mo b/boards/locale/ru/LC_MESSAGES/django.mo index 25e7149e4bd1b8cce63eed54fde08472706ddb8a..10a53e1985b34f6ec7972558998048683e7fd2db GIT binary patch literal 11656 zc$~#pdvILUc|Wuef>O(R*eSOBI6}58*WR^clN1&UEU;_@l4T?r!Xq(P+AHbWyL*>= zcV&w}V#(OX#e*qZSOxqZum<>j;0?eZ0>MK4y}|c^ z%YYvOZv_4tSP8rlgP#C?8h8_M?K0uB3Ah3nStj(|z-r(_%Y>h^O!%eE{Bht);B#i( zxn**$OUp#gIkWE1m&tiDX8zyI{=YPMU8T@}vQp@(D~11Ofe=~USt;x8uM|D(2i5~0 z2d)B+1J?n+X6WZCW#7Lv{xE>X6DBXo-y;U zEEj&0%SC_lz?*5mrj5_uj4{ub%CO3oRp68=vZ z`lo@zz-P?-&#Hv~&#OdF|6%ytP%VB?TP@G4s>ME=s)erA%(qvIocC7?pGOT2Rtx_p zs%77iYLWBlYO&8LGyg)h=6?k)v=&ij*_Uo?^zK0B^YsAlv;ine(l^T)r zTQ#!Z6!5o!S89a+_iJRoAJj-3yl0-PvAB`^w^sDjS}W)3s1-YO*NWW3X56b4{U5EB z^=|=p0l!fzdjG)C|Fl-*`v}+v{KN{`_fcR3`05Ig^M@-$AOEmI*8Rlb&sGTke_tVf z_$xzy(@K%EYNf=vgjJ$Lqvjwm>Pj zQ(UbVyS}wv&U*p44ft2Wxivpod5Bya{lyIp?_to=<7Sc z&jNq4RpM}UNapv3gx@0u?U0-+3543!ep~~%T9w!@_)8n4976GToO}~kLP`A4ALU2N zWsfMynYr}_DHlDYBzCr`;=f(Eo>p?sqqw?p9a9oNCvpA0k~2hcc_nM_#Pu+) zLG!%D;2pU3D9I_y3+UUG^jDM%+sxQu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Y-)Kj21VVB>MBzNWe6&a!WkVx}N5$ zW?G90?&;=e_lwlBbJVbzndKZ8Jd@6Ixz>1l!HaqJY*+-Mx7ZU@zODqXgS@3s8grkO z_j9ULxu%iBJX|nwiJfw)xP;CGZ@5#1a^}D3=G)re94ks}|Le>aIK@gx%?G82GoyK% zDtPM+LM#YEdGnbGLUoD_46RF6(h|8?b0$J2n#ev&U#!9OBENQyaZJ(c>~#6h9o&*m zB3>_vrx7Pj%O)0mt1)JzmQ#_`@~F6APD@k4SyU1V|DNY=j;}{O7!- z8k8m8fS07c%4cJZn7zwOsq^346~CCBWG>Sr3^pk9zE`GcEA#b_(mnSb{OUN%pEt)@ tyOfyO@MzEvk_Hb_L6Ia~h7+fka-aAnh`6M`Q|x)BK`QvDx5TUKe**t_kZ=G1 diff --git a/boards/locale/ru/LC_MESSAGES/django.po b/boards/locale/ru/LC_MESSAGES/django.po --- a/boards/locale/ru/LC_MESSAGES/django.po +++ b/boards/locale/ru/LC_MESSAGES/django.po @@ -593,3 +593,6 @@ msgstr "Не загружать ссылки" msgid "Ban and delete" msgstr "Забанить и удалить" +msgid "Are you sure?" +msgstr "Вы уверены?" + diff --git a/boards/templates/boards/post.html b/boards/templates/boards/post.html --- a/boards/templates/boards/post.html +++ b/boards/templates/boards/post.html @@ -102,7 +102,9 @@ banAndDelete: { name: '{% trans "Ban and delete" %}', callback: function(key, opt) { - window.location = '{% url 'utils' %}?method=ban_and_delete&post_id={{ post.id }}'; + if (confirm('{% trans "Are you sure?" %}')) { + window.location = '{% url 'utils' %}?method=ban_and_delete&post_id={{ post.id }}'; + } }, visible: {% if post.has_ip %}true{% else %}false{% endif %} }