Show More
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
@@ -0,0 +1,16 b'' | |||||
|
1 | @charset "UTF-8";/*! | |||
|
2 | * jQuery contextMenu - Plugin for simple contextMenu handling | |||
|
3 | * | |||
|
4 | * Version: v2.4.2 | |||
|
5 | * | |||
|
6 | * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF) | |||
|
7 | * Web: http://swisnl.github.io/jQuery-contextMenu/ | |||
|
8 | * | |||
|
9 | * Copyright (c) 2011-2017 SWIS BV and contributors | |||
|
10 | * | |||
|
11 | * Licensed under | |||
|
12 | * MIT License http://www.opensource.org/licenses/mit-license | |||
|
13 | * | |||
|
14 | * Date: 2017-01-02T09:03:00.383Z | |||
|
15 | */@-webkit-keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@-o-keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);-o-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}@keyframes cm-spin{0%{-webkit-transform:translateY(-50%) rotate(0);-o-transform:translateY(-50%) rotate(0);transform:translateY(-50%) rotate(0)}100%{-webkit-transform:translateY(-50%) rotate(359deg);-o-transform:translateY(-50%) rotate(359deg);transform:translateY(-50%) rotate(359deg)}}.context-menu-icon.context-menu-icon--fa::before,.context-menu-icon::before{left:0;width:2em;font-size:1em;font-style:normal;font-weight:400;line-height:1;text-align:center;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:50%}@font-face{font-family:context-menu-icons;font-style:normal;font-weight:400;src:url(font/context-menu-icons.eot?3lfph);src:url(font/context-menu-icons.eot?3lfph#iefix) format("embedded-opentype"),url(font/context-menu-icons.woff2?3lfph) format("woff2"),url(font/context-menu-icons.woff?3lfph) format("woff"),url(font/context-menu-icons.ttf?3lfph) format("truetype")}.context-menu-icon-add:before{content:"\EA01"}.context-menu-icon-copy:before{content:"\EA02"}.context-menu-icon-cut:before{content:"\EA03"}.context-menu-icon-delete:before{content:"\EA04"}.context-menu-icon-edit:before{content:"\EA05"}.context-menu-icon-loading:before{content:"\EA06"}.context-menu-icon-paste:before{content:"\EA07"}.context-menu-icon-quit:before{content:"\EA08"}.context-menu-icon::before{font-family:context-menu-icons;color:#2980b9;transform:translateY(-50%)}.context-menu-icon.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-disabled::before{color:#bbb}.context-menu-icon.context-menu-icon-loading:before{-webkit-animation:cm-spin 2s infinite;-o-animation:cm-spin 2s infinite;animation:cm-spin 2s infinite}.context-menu-icon.context-menu-icon--fa{display:list-item;font-family:inherit}.context-menu-icon.context-menu-icon--fa::before{font-family:FontAwesome;color:#2980b9;transform:translateY(-50%)}.context-menu-icon.context-menu-icon--fa.context-menu-hover:before{color:#fff}.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before{color:#bbb}.context-menu-list{position:absolute;display:inline-block;min-width:13em;max-width:26em;padding:.25em 0;margin:.3em;font-family:inherit;font-size:inherit;list-style-type:none;background:#fff;border:1px solid #bebebe;border-radius:.2em;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.5);box-shadow:0 2px 5px rgba(0,0,0,.5)}.context-menu-item{position:relative;padding:.2em 2em;color:#2f2f2f;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.context-menu-separator{padding:0;margin:.35em 0;border-bottom:1px solid #e6e6e6}.context-menu-item>label>input,.context-menu-item>label>textarea{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.context-menu-item.context-menu-hover{color:#fff;cursor:pointer;background-color:#2980b9}.context-menu-item.context-menu-disabled{color:#bbb;cursor:default;background-color:#fff}.context-menu-input.context-menu-hover{color:#2f2f2f;cursor:default}.context-menu-submenu:after{position:absolute;top:50%;right:.5em;z-index:1;width:0;height:0;content:'';border-color:transparent transparent transparent #2f2f2f;border-style:solid;border-width:.25em 0 .25em .25em;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.context-menu-item.context-menu-input{padding:.3em .6em}.context-menu-input>label>*{vertical-align:top}.context-menu-input>label>input[type=checkbox],.context-menu-input>label>input[type=radio]{position:relative;top:.12em;margin-right:.4em}.context-menu-input>label{margin:0}.context-menu-input>label,.context-menu-input>label>input[type=text],.context-menu-input>label>select,.context-menu-input>label>textarea{display:block;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.context-menu-input>label>textarea{height:7em}.context-menu-item>.context-menu-list{top:.3em;right:-.3em;display:none}.context-menu-item.context-menu-visible>.context-menu-list{display:block}.context-menu-accesskey{text-decoration:underline} | |||
|
16 | /*# sourceMappingURL=jquery.contextMenu.min.css.map */ |
@@ -0,0 +1,18 b'' | |||||
|
1 | /*! | |||
|
2 | * jQuery contextMenu v2.4.2 - Plugin for simple contextMenu handling | |||
|
3 | * | |||
|
4 | * Version: v2.4.2 | |||
|
5 | * | |||
|
6 | * Authors: Björn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF) | |||
|
7 | * Web: http://swisnl.github.io/jQuery-contextMenu/ | |||
|
8 | * | |||
|
9 | * Copyright (c) 2011-2017 SWIS BV and contributors | |||
|
10 | * | |||
|
11 | * Licensed under | |||
|
12 | * MIT License http://www.opensource.org/licenses/mit-license | |||
|
13 | * GPL v3 http://opensource.org/licenses/GPL-3.0 | |||
|
14 | * | |||
|
15 | * Date: 2017-01-02T09:03:00.678Z | |||
|
16 | */ | |||
|
17 | !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){"use strict";function t(e){for(var t,n=e.split(/\s+/),a=[],o=0;t=n[o];o++)t=t.charAt(0).toUpperCase(),a.push(t);return a}function n(t){return t.id&&e('label[for="'+t.id+'"]').val()||t.name}function a(t,o,s){return s||(s=0),o.each(function(){var o,i,c=e(this),r=this,l=this.nodeName.toLowerCase();switch("label"===l&&c.find("input, textarea, select").length&&(o=c.text(),c=c.children().first(),r=c.get(0),l=r.nodeName.toLowerCase()),l){case"menu":i={name:c.attr("label"),items:{}},s=a(i.items,c.children(),s);break;case"a":case"button":i={name:c.text(),disabled:!!c.attr("disabled"),callback:function(){return function(){c.click()}}()};break;case"menuitem":case"command":switch(c.attr("type")){case void 0:case"command":case"menuitem":i={name:c.attr("label"),disabled:!!c.attr("disabled"),icon:c.attr("icon"),callback:function(){return function(){c.click()}}()};break;case"checkbox":i={type:"checkbox",disabled:!!c.attr("disabled"),name:c.attr("label"),selected:!!c.attr("checked")};break;case"radio":i={type:"radio",disabled:!!c.attr("disabled"),name:c.attr("label"),radio:c.attr("radiogroup"),value:c.attr("id"),selected:!!c.attr("checked")};break;default:i=void 0}break;case"hr":i="-------";break;case"input":switch(c.attr("type")){case"text":i={type:"text",name:o||n(r),disabled:!!c.attr("disabled"),value:c.val()};break;case"checkbox":i={type:"checkbox",name:o||n(r),disabled:!!c.attr("disabled"),selected:!!c.attr("checked")};break;case"radio":i={type:"radio",name:o||n(r),disabled:!!c.attr("disabled"),radio:!!c.attr("name"),value:c.val(),selected:!!c.attr("checked")};break;default:i=void 0}break;case"select":i={type:"select",name:o||n(r),disabled:!!c.attr("disabled"),selected:c.val(),options:{}},c.children().each(function(){i.options[this.value]=e(this).text()});break;case"textarea":i={type:"textarea",name:o||n(r),disabled:!!c.attr("disabled"),value:c.val()};break;case"label":break;default:i={type:"html",html:c.clone(!0)}}i&&(s++,t["key"+s]=i)}),s}e.support.htmlMenuitem="HTMLMenuItemElement"in window,e.support.htmlCommand="HTMLCommandElement"in window,e.support.eventSelectstart="onselectstart"in document.documentElement,e.ui&&e.widget||(e.cleanData=function(t){return function(n){var a,o,s;for(s=0;null!=n[s];s++){o=n[s];try{a=e._data(o,"events"),a&&a.remove&&e(o).triggerHandler("remove")}catch(e){}}t(n)}}(e.cleanData));var o=null,s=!1,i=e(window),c=0,r={},l={},u={},d={selector:null,appendTo:null,trigger:"right",autoHide:!1,delay:200,reposition:!0,selectableSubMenu:!1,classNames:{hover:"context-menu-hover",disabled:"context-menu-disabled",visible:"context-menu-visible",notSelectable:"context-menu-not-selectable",icon:"context-menu-icon",iconEdit:"context-menu-icon-edit",iconCut:"context-menu-icon-cut",iconCopy:"context-menu-icon-copy",iconPaste:"context-menu-icon-paste",iconDelete:"context-menu-icon-delete",iconAdd:"context-menu-icon-add",iconQuit:"context-menu-icon-quit",iconLoadingClass:"context-menu-icon-loading"},determinePosition:function(t){if(e.ui&&e.ui.position)t.css("display","block").position({my:"center top",at:"center bottom",of:this,offset:"0 5",collision:"fit"}).css("display","none");else{var n=this.offset();n.top+=this.outerHeight(),n.left+=this.outerWidth()/2-t.outerWidth()/2,t.css(n)}},position:function(e,t,n){var a;if(!t&&!n)return void e.determinePosition.call(this,e.$menu);a="maintain"===t&&"maintain"===n?e.$menu.position():{top:n,left:t};var o=i.scrollTop()+i.height(),s=i.scrollLeft()+i.width(),c=e.$menu.outerHeight(),r=e.$menu.outerWidth();a.top+c>o&&(a.top-=c),a.top<0&&(a.top=0),a.left+r>s&&(a.left-=r),a.left<0&&(a.left=0),e.$menu.css(a)},positionSubmenu:function(t){if(void 0!==t)if(e.ui&&e.ui.position)t.css("display","block").position({my:"left top-5",at:"right top",of:this,collision:"flipfit fit"}).css("display","");else{var n={top:-9,left:this.outerWidth()-5};t.css(n)}},zIndex:1,animation:{duration:50,show:"slideDown",hide:"slideUp"},events:{show:e.noop,hide:e.noop},callback:null,items:{}},m={timer:null,pageX:null,pageY:null},p=function(e){for(var t=0,n=e;;)if(t=Math.max(t,parseInt(n.css("z-index"),10)||0),n=n.parent(),!n||!n.length||"html body".indexOf(n.prop("nodeName").toLowerCase())>-1)break;return t},f={abortevent:function(e){e.preventDefault(),e.stopImmediatePropagation()},contextmenu:function(t){var n=e(this);if("right"===t.data.trigger&&(t.preventDefault(),t.stopImmediatePropagation()),!("right"!==t.data.trigger&&"demand"!==t.data.trigger&&t.originalEvent||!(void 0===t.mouseButton||!t.data||"left"===t.data.trigger&&0===t.mouseButton||"right"===t.data.trigger&&2===t.mouseButton)||n.hasClass("context-menu-active")||n.hasClass("context-menu-disabled"))){if(o=n,t.data.build){var a=t.data.build(o,t);if(a===!1)return;if(t.data=e.extend(!0,{},d,t.data,a||{}),!t.data.items||e.isEmptyObject(t.data.items))throw window.console&&(console.error||console.log).call(console,"No items specified to show in contextMenu"),new Error("No Items specified");t.data.$trigger=o,h.create(t.data)}var s=!1;for(var i in t.data.items)if(t.data.items.hasOwnProperty(i)){var c;c=e.isFunction(t.data.items[i].visible)?t.data.items[i].visible.call(e(t.currentTarget),i,t.data):"undefined"==typeof t.data.items[i]||!t.data.items[i].visible||t.data.items[i].visible===!0,c&&(s=!0)}s&&h.show.call(n,t.data,t.pageX,t.pageY)}},click:function(t){t.preventDefault(),t.stopImmediatePropagation(),e(this).trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))},mousedown:function(t){var n=e(this);o&&o.length&&!o.is(n)&&o.data("contextMenu").$menu.trigger("contextmenu:hide"),2===t.button&&(o=n.data("contextMenuActive",!0))},mouseup:function(t){var n=e(this);n.data("contextMenuActive")&&o&&o.length&&o.is(n)&&!n.hasClass("context-menu-disabled")&&(t.preventDefault(),t.stopImmediatePropagation(),o=n,n.trigger(e.Event("contextmenu",{data:t.data,pageX:t.pageX,pageY:t.pageY}))),n.removeData("contextMenuActive")},mouseenter:function(t){var n=e(this),a=e(t.relatedTarget),s=e(document);a.is(".context-menu-list")||a.closest(".context-menu-list").length||o&&o.length||(m.pageX=t.pageX,m.pageY=t.pageY,m.data=t.data,s.on("mousemove.contextMenuShow",f.mousemove),m.timer=setTimeout(function(){m.timer=null,s.off("mousemove.contextMenuShow"),o=n,n.trigger(e.Event("contextmenu",{data:m.data,pageX:m.pageX,pageY:m.pageY}))},t.data.delay))},mousemove:function(e){m.pageX=e.pageX,m.pageY=e.pageY},mouseleave:function(t){var n=e(t.relatedTarget);if(!n.is(".context-menu-list")&&!n.closest(".context-menu-list").length){try{clearTimeout(m.timer)}catch(e){}m.timer=null}},layerClick:function(t){var n,a,o=e(this),s=o.data("contextMenuRoot"),c=t.button,r=t.pageX,l=t.pageY;t.preventDefault(),t.stopImmediatePropagation(),setTimeout(function(){var o,u="left"===s.trigger&&0===c||"right"===s.trigger&&2===c;if(document.elementFromPoint&&s.$layer){if(s.$layer.hide(),n=document.elementFromPoint(r-i.scrollLeft(),l-i.scrollTop()),n.isContentEditable){var d=document.createRange(),m=window.getSelection();d.selectNode(n),d.collapse(!0),m.removeAllRanges(),m.addRange(d)}s.$layer.show()}if(s.reposition&&u)if(document.elementFromPoint){if(s.$trigger.is(n)||s.$trigger.has(n).length)return void s.position.call(s.$trigger,s,r,l)}else if(a=s.$trigger.offset(),o=e(window),a.top+=o.scrollTop(),a.top<=t.pageY&&(a.left+=o.scrollLeft(),a.left<=t.pageX&&(a.bottom=a.top+s.$trigger.outerHeight(),a.bottom>=t.pageY&&(a.right=a.left+s.$trigger.outerWidth(),a.right>=t.pageX))))return void s.position.call(s.$trigger,s,r,l);n&&u&&s.$trigger.one("contextmenu:hidden",function(){e(n).contextMenu({x:r,y:l,button:c})}),null!=s&&null!=s.$menu&&s.$menu.trigger("contextmenu:hide")},50)},keyStop:function(e,t){t.isInput||e.preventDefault(),e.stopPropagation()},key:function(e){var t={};o&&(t=o.data("contextMenu")||{}),void 0===t.zIndex&&(t.zIndex=0);var n=0,a=function(e){""!==e.style.zIndex?n=e.style.zIndex:null!==e.offsetParent&&void 0!==e.offsetParent?a(e.offsetParent):null!==e.parentElement&&void 0!==e.parentElement&&a(e.parentElement)};if(a(e.target),!(n>t.zIndex)){switch(e.keyCode){case 9:case 38:if(f.keyStop(e,t),t.isInput){if(9===e.keyCode&&e.shiftKey)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!=t.$menu&&t.$menu.trigger("prevcommand"));if(38===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault()}else if(9!==e.keyCode||e.shiftKey)return void(null!=t.$menu&&t.$menu.trigger("prevcommand"));break;case 40:if(f.keyStop(e,t),!t.isInput)return void(null!=t.$menu&&t.$menu.trigger("nextcommand"));if(9===e.keyCode)return e.preventDefault(),t.$selected&&t.$selected.find("input, textarea, select").blur(),void(null!=t.$menu&&t.$menu.trigger("nextcommand"));if(40===e.keyCode&&"checkbox"===t.$selected.find("input, textarea, select").prop("type"))return void e.preventDefault();break;case 37:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;if(!t.$selected.parent().hasClass("context-menu-root")){var s=t.$selected.parent().parent();return t.$selected.trigger("contextmenu:blur"),void(t.$selected=s)}break;case 39:if(f.keyStop(e,t),t.isInput||!t.$selected||!t.$selected.length)break;var i=t.$selected.data("contextMenu")||{};if(i.$menu&&t.$selected.hasClass("context-menu-submenu"))return t.$selected=null,i.$selected=null,void i.$menu.trigger("nextcommand");break;case 35:case 36:return t.$selected&&t.$selected.find("input, textarea, select").length?void 0:((t.$selected&&t.$selected.parent()||t.$menu).children(":not(."+t.classNames.disabled+", ."+t.classNames.notSelectable+")")[36===e.keyCode?"first":"last"]().trigger("contextmenu:focus"),void e.preventDefault());case 13:if(f.keyStop(e,t),t.isInput){if(t.$selected&&!t.$selected.is("textarea, select"))return void e.preventDefault();break}return void("undefined"!=typeof t.$selected&&null!==t.$selected&&t.$selected.trigger("mouseup"));case 32:case 33:case 34:return void f.keyStop(e,t);case 27:return f.keyStop(e,t),void(null!=t.$menu&&t.$menu.trigger("contextmenu:hide"));default:var c=String.fromCharCode(e.keyCode).toUpperCase();if(t.accesskeys&&t.accesskeys[c])return void t.accesskeys[c].$node.trigger(t.accesskeys[c].$menu?"contextmenu:focus":"mouseup")}e.stopPropagation(),"undefined"!=typeof t.$selected&&null!==t.$selected&&t.$selected.trigger(e)}},prevItem:function(t){t.stopPropagation();var n=e(this).data("contextMenu")||{},a=e(this).data("contextMenuRoot")||{};if(n.$selected){var o=n.$selected;n=n.$selected.parent().data("contextMenu")||{},n.$selected=o}for(var s=n.$menu.children(),i=n.$selected&&n.$selected.prev().length?n.$selected.prev():s.last(),c=i;i.hasClass(a.classNames.disabled)||i.hasClass(a.classNames.notSelectable)||i.is(":hidden");)if(i=i.prev().length?i.prev():s.last(),i.is(c))return;n.$selected&&f.itemMouseleave.call(n.$selected.get(0),t),f.itemMouseenter.call(i.get(0),t);var r=i.find("input, textarea, select");r.length&&r.focus()},nextItem:function(t){t.stopPropagation();var n=e(this).data("contextMenu")||{},a=e(this).data("contextMenuRoot")||{};if(n.$selected){var o=n.$selected;n=n.$selected.parent().data("contextMenu")||{},n.$selected=o}for(var s=n.$menu.children(),i=n.$selected&&n.$selected.next().length?n.$selected.next():s.first(),c=i;i.hasClass(a.classNames.disabled)||i.hasClass(a.classNames.notSelectable)||i.is(":hidden");)if(i=i.next().length?i.next():s.first(),i.is(c))return;n.$selected&&f.itemMouseleave.call(n.$selected.get(0),t),f.itemMouseenter.call(i.get(0),t);var r=i.find("input, textarea, select");r.length&&r.focus()},focusInput:function(){var t=e(this).closest(".context-menu-item"),n=t.data(),a=n.contextMenu,o=n.contextMenuRoot;o.$selected=a.$selected=t,o.isInput=a.isInput=!0},blurInput:function(){var t=e(this).closest(".context-menu-item"),n=t.data(),a=n.contextMenu,o=n.contextMenuRoot;o.isInput=a.isInput=!1},menuMouseenter:function(){var t=e(this).data().contextMenuRoot;t.hovering=!0},menuMouseleave:function(t){var n=e(this).data().contextMenuRoot;n.$layer&&n.$layer.is(t.relatedTarget)&&(n.hovering=!1)},itemMouseenter:function(t){var n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;return s.hovering=!0,t&&s.$layer&&s.$layer.is(t.relatedTarget)&&(t.preventDefault(),t.stopImmediatePropagation()),(o.$menu?o:s).$menu.children("."+s.classNames.hover).trigger("contextmenu:blur").children(".hover").trigger("contextmenu:blur"),n.hasClass(s.classNames.disabled)||n.hasClass(s.classNames.notSelectable)?void(o.$selected=null):void n.trigger("contextmenu:focus")},itemMouseleave:function(t){var n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;return s!==o&&s.$layer&&s.$layer.is(t.relatedTarget)?("undefined"!=typeof s.$selected&&null!==s.$selected&&s.$selected.trigger("contextmenu:blur"),t.preventDefault(),t.stopImmediatePropagation(),void(s.$selected=o.$selected=o.$node)):void n.trigger("contextmenu:blur")},itemClick:function(t){var n,a=e(this),o=a.data(),s=o.contextMenu,i=o.contextMenuRoot,c=o.contextMenuKey;if(!(!s.items[c]||a.is("."+i.classNames.disabled+", .context-menu-separator, ."+i.classNames.notSelectable)||a.is(".context-menu-submenu")&&i.selectableSubMenu===!1)){if(t.preventDefault(),t.stopImmediatePropagation(),e.isFunction(s.callbacks[c])&&Object.prototype.hasOwnProperty.call(s.callbacks,c))n=s.callbacks[c];else{if(!e.isFunction(i.callback))return;n=i.callback}n.call(i.$trigger,c,i)!==!1?i.$menu.trigger("contextmenu:hide"):i.$menu.parent().length&&h.update.call(i.$trigger,i)}},inputClick:function(e){e.stopImmediatePropagation()},hideMenu:function(t,n){var a=e(this).data("contextMenuRoot");h.hide.call(a.$trigger,a,n&&n.force)},focusItem:function(t){t.stopPropagation();var n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;n.hasClass(s.classNames.disabled)||n.hasClass(s.classNames.notSelectable)||(n.addClass([s.classNames.hover,s.classNames.visible].join(" ")).parent().find(".context-menu-item").not(n).removeClass(s.classNames.visible).filter("."+s.classNames.hover).trigger("contextmenu:blur"),o.$selected=s.$selected=n,o.$node&&s.positionSubmenu.call(o.$node,o.$menu))},blurItem:function(t){t.stopPropagation();var n=e(this),a=n.data(),o=a.contextMenu,s=a.contextMenuRoot;o.autoHide&&n.removeClass(s.classNames.visible),n.removeClass(s.classNames.hover),o.$selected=null}},h={show:function(t,n,a){var s=e(this),i={};if(e("#context-menu-layer").trigger("mousedown"),t.$trigger=s,t.events.show.call(s,t)===!1)return void(o=null);if(h.update.call(s,t),t.position.call(s,t,n,a),t.zIndex){var c=t.zIndex;"function"==typeof t.zIndex&&(c=t.zIndex.call(s,t)),i.zIndex=p(s)+c}h.layer.call(t.$menu,t,i.zIndex),t.$menu.find("ul").css("zIndex",i.zIndex+1),t.$menu.css(i)[t.animation.show](t.animation.duration,function(){s.trigger("contextmenu:visible")}),s.data("contextMenu",t).addClass("context-menu-active"),e(document).off("keydown.contextMenu").on("keydown.contextMenu",f.key),t.autoHide&&e(document).on("mousemove.contextMenuAutoHide",function(e){var n=s.offset();n.right=n.left+s.outerWidth(),n.bottom=n.top+s.outerHeight(),!t.$layer||t.hovering||e.pageX>=n.left&&e.pageX<=n.right&&e.pageY>=n.top&&e.pageY<=n.bottom||setTimeout(function(){t.hovering||null==t.$menu||t.$menu.trigger("contextmenu:hide")},50)})},hide:function(t,n){var a=e(this);if(t||(t=a.data("contextMenu")||{}),n||!t.events||t.events.hide.call(a,t)!==!1){if(a.removeData("contextMenu").removeClass("context-menu-active"),t.$layer){setTimeout(function(e){return function(){e.remove()}}(t.$layer),10);try{delete t.$layer}catch(e){t.$layer=null}}o=null,t.$menu.find("."+t.classNames.hover).trigger("contextmenu:blur"),t.$selected=null,t.$menu.find("."+t.classNames.visible).removeClass(t.classNames.visible),e(document).off(".contextMenuAutoHide").off("keydown.contextMenu"),t.$menu&&t.$menu[t.animation.hide](t.animation.duration,function(){t.build&&(t.$menu.remove(),e.each(t,function(e){switch(e){case"ns":case"selector":case"build":case"trigger":return!0;default:t[e]=void 0;try{delete t[e]}catch(e){}return!0}})),setTimeout(function(){a.trigger("contextmenu:hidden")},10)})}},create:function(n,a){function o(t){var n=e("<span></span>");if(t._accesskey)t._beforeAccesskey&&n.append(document.createTextNode(t._beforeAccesskey)),e("<span></span>").addClass("context-menu-accesskey").text(t._accesskey).appendTo(n),t._afterAccesskey&&n.append(document.createTextNode(t._afterAccesskey));else if(t.isHtmlName){if("undefined"!=typeof t.accesskey)throw new Error("accesskeys are not compatible with HTML names and cannot be used together in the same item");n.html(t.name)}else n.text(t.name);return n}void 0===a&&(a=n),n.$menu=e('<ul class="context-menu-list"></ul>').addClass(n.className||"").data({contextMenu:n,contextMenuRoot:a}),e.each(["callbacks","commands","inputs"],function(e,t){n[t]={},a[t]||(a[t]={})}),a.accesskeys||(a.accesskeys={}),e.each(n.items,function(s,i){var c=e('<li class="context-menu-item"></li>').addClass(i.className||""),r=null,l=null;if(c.on("click",e.noop),"string"!=typeof i&&"cm_separator"!==i.type||(i={type:"cm_seperator"}),i.$node=c.data({contextMenu:n,contextMenuRoot:a,contextMenuKey:s}),"undefined"!=typeof i.accesskey)for(var d,m=t(i.accesskey),p=0;d=m[p];p++)if(!a.accesskeys[d]){a.accesskeys[d]=i;var x=i.name.match(new RegExp("^(.*?)("+d+")(.*)$","i"));x&&(i._beforeAccesskey=x[1],i._accesskey=x[2],i._afterAccesskey=x[3]);break}if(i.type&&u[i.type])u[i.type].call(c,i,n,a),e.each([n,a],function(t,a){a.commands[s]=i,!e.isFunction(i.callback)||void 0!==a.callbacks[s]&&void 0!==n.type||(a.callbacks[s]=i.callback)});else{switch("cm_seperator"===i.type?c.addClass("context-menu-separator "+a.classNames.notSelectable):"html"===i.type?c.addClass("context-menu-html "+a.classNames.notSelectable):"sub"===i.type||(i.type?(r=e("<label></label>").appendTo(c),o(i).appendTo(r),c.addClass("context-menu-input"),n.hasTypes=!0,e.each([n,a],function(e,t){t.commands[s]=i,t.inputs[s]=i})):i.items&&(i.type="sub")),i.type){case"cm_seperator":break;case"text":l=e('<input type="text" value="1" name="" />').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r);break;case"textarea":l=e('<textarea name=""></textarea>').attr("name","context-menu-input-"+s).val(i.value||"").appendTo(r),i.height&&l.height(i.height);break;case"checkbox":l=e('<input type="checkbox" value="1" name="" />').attr("name","context-menu-input-"+s).val(i.value||"").prop("checked",!!i.selected).prependTo(r);break;case"radio":l=e('<input type="radio" value="1" name="" />').attr("name","context-menu-input-"+i.radio).val(i.value||"").prop("checked",!!i.selected).prependTo(r);break;case"select":l=e('<select name=""></select>').attr("name","context-menu-input-"+s).appendTo(r),i.options&&(e.each(i.options,function(t,n){e("<option></option>").val(t).text(n).appendTo(l)}),l.val(i.selected));break;case"sub":o(i).appendTo(c),i.appendTo=i.$node,c.data("contextMenu",i).addClass("context-menu-submenu"),i.callback=null,"function"==typeof i.items.then?h.processPromises(i,a,i.items):h.create(i,a);break;case"html":e(i.html).appendTo(c);break;default:e.each([n,a],function(t,a){a.commands[s]=i,!e.isFunction(i.callback)||void 0!==a.callbacks[s]&&void 0!==n.type||(a.callbacks[s]=i.callback)}),o(i).appendTo(c)}i.type&&"sub"!==i.type&&"html"!==i.type&&"cm_seperator"!==i.type&&(l.on("focus",f.focusInput).on("blur",f.blurInput),i.events&&l.on(i.events,n)),i.icon&&(e.isFunction(i.icon)?i._icon=i.icon.call(this,this,c,s,i):"string"==typeof i.icon&&"fa-"===i.icon.substring(0,3)?i._icon=a.classNames.icon+" "+a.classNames.icon+"--fa fa "+i.icon:i._icon=a.classNames.icon+" "+a.classNames.icon+"-"+i.icon,c.addClass(i._icon))}i.$input=l,i.$label=r,c.appendTo(n.$menu),!n.hasTypes&&e.support.eventSelectstart&&c.on("selectstart.disableTextSelect",f.abortevent)}),n.$node||n.$menu.css("display","none").addClass("context-menu-root"),n.$menu.appendTo(n.appendTo||document.body)},resize:function(t,n){var a;t.css({position:"absolute",display:"block"}),t.data("width",(a=t.get(0)).getBoundingClientRect?Math.ceil(a.getBoundingClientRect().width):t.outerWidth()+1),t.css({position:"static",minWidth:"0px",maxWidth:"100000px"}),t.find("> li > ul").each(function(){h.resize(e(this),!0)}),n||t.find("ul").addBack().css({position:"",display:"",minWidth:"",maxWidth:""}).outerWidth(function(){return e(this).data("width")})},update:function(t,n){var a=this;void 0===n&&(n=t,h.resize(t.$menu)),t.$menu.children().each(function(){var o,s=e(this),i=s.data("contextMenuKey"),c=t.items[i],r=e.isFunction(c.disabled)&&c.disabled.call(a,i,n)||c.disabled===!0;if(o=e.isFunction(c.visible)?c.visible.call(a,i,n):"undefined"==typeof c.visible||c.visible===!0,s[o?"show":"hide"](),s[r?"addClass":"removeClass"](n.classNames.disabled),e.isFunction(c.icon)&&(s.removeClass(c._icon),c._icon=c.icon.call(this,a,s,i,c),s.addClass(c._icon)),c.type)switch(s.find("input, select, textarea").prop("disabled",r),c.type){case"text":case"textarea":c.$input.val(c.value||"");break;case"checkbox":case"radio":c.$input.val(c.value||"").prop("checked",!!c.selected);break;case"select":c.$input.val(c.selected||"")}c.$menu&&h.update.call(a,c,n)})},layer:function(t,n){var a=t.$layer=e('<div id="context-menu-layer" style="position:fixed; z-index:'+n+'; top:0; left:0; opacity: 0; filter: alpha(opacity=0); background-color: #000;"></div>').css({height:i.height(),width:i.width(),display:"block"}).data("contextMenuRoot",t).insertBefore(this).on("contextmenu",f.abortevent).on("mousedown",f.layerClick);return void 0===document.body.style.maxWidth&&a.css({position:"absolute",height:e(document).height()}),a},processPromises:function(e,t,n){function a(e,t,n){void 0===n&&o(void 0),s(e,t,n)}function o(e,t,n){void 0===n?(n={error:{name:"No items and no error item",icon:"context-menu-icon context-menu-icon-quit"}},window.console&&(console.error||console.log).call(console,'When you reject a promise, provide an "items" object, equal to normal sub-menu items')):"string"==typeof n&&(n={error:{name:n}}),s(e,t,n)}function s(e,t,n){void 0!==t.$menu&&t.$menu.is(":visible")&&(e.$node.removeClass(t.classNames.iconLoadingClass),e.items=n,h.create(e,t,!0),h.update(e,t),t.positionSubmenu.call(e.$node,e.$menu))}e.$node.addClass(t.classNames.iconLoadingClass),n.then(a.bind(this,e,t),o.bind(this,e,t))}};e.fn.contextMenu=function(t){var n=this,a=t;if(this.length>0)if(void 0===t)this.first().trigger("contextmenu");else if(void 0!==t.x&&void 0!==t.y)this.first().trigger(e.Event("contextmenu",{pageX:t.x,pageY:t.y,mouseButton:t.button}));else if("hide"===t){var o=this.first().data("contextMenu")?this.first().data("contextMenu").$menu:null;o&&o.trigger("contextmenu:hide")}else"destroy"===t?e.contextMenu("destroy",{context:this}):e.isPlainObject(t)?(t.context=this,e.contextMenu("create",t)):t?this.removeClass("context-menu-disabled"):t||this.addClass("context-menu-disabled");else e.each(l,function(){this.selector===n.selector&&(a.data=this,e.extend(a.data,{trigger:"demand"}))}),f.contextmenu.call(a.target,a);return this},e.contextMenu=function(t,n){"string"!=typeof t&&(n=t,t="create"),"string"==typeof n?n={selector:n}:void 0===n&&(n={});var a=e.extend(!0,{},d,n||{}),o=e(document),i=o,u=!1;switch(a.context&&a.context.length?(i=e(a.context).first(),a.context=i.get(0),u=!e(a.context).is(document)):a.context=document,t){case"create":if(!a.selector)throw new Error("No selector specified");if(a.selector.match(/.context-menu-(list|item|input)($|\s)/))throw new Error('Cannot bind to selector "'+a.selector+'" as it contains a reserved className');if(!a.build&&(!a.items||e.isEmptyObject(a.items)))throw new Error("No Items specified");if(c++,a.ns=".contextMenu"+c,u||(r[a.selector]=a.ns),l[a.ns]=a,a.trigger||(a.trigger="right"),!s){var m="click"===a.itemClickEvent?"click.contextMenu":"mouseup.contextMenu",p={"contextmenu:focus.contextMenu":f.focusItem,"contextmenu:blur.contextMenu":f.blurItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.itemMouseenter,"mouseleave.contextMenu":f.itemMouseleave};p[m]=f.itemClick,o.on({"contextmenu:hide.contextMenu":f.hideMenu,"prevcommand.contextMenu":f.prevItem,"nextcommand.contextMenu":f.nextItem,"contextmenu.contextMenu":f.abortevent,"mouseenter.contextMenu":f.menuMouseenter,"mouseleave.contextMenu":f.menuMouseleave},".context-menu-list").on("mouseup.contextMenu",".context-menu-input",f.inputClick).on(p,".context-menu-item"),s=!0}switch(i.on("contextmenu"+a.ns,a.selector,a,f.contextmenu),u&&i.on("remove"+a.ns,function(){e(this).contextMenu("destroy")}),a.trigger){case"hover":i.on("mouseenter"+a.ns,a.selector,a,f.mouseenter).on("mouseleave"+a.ns,a.selector,a,f.mouseleave);break;case"left":i.on("click"+a.ns,a.selector,a,f.click)}a.build||h.create(a);break;case"destroy":var x;if(u){var g=a.context;e.each(l,function(t,n){if(!n)return!0;if(!e(g).is(n.selector))return!0;x=e(".context-menu-list").filter(":visible"),x.length&&x.data().contextMenuRoot.$trigger.is(e(n.context).find(n.selector))&&x.trigger("contextmenu:hide",{force:!0});try{l[n.ns].$menu&&l[n.ns].$menu.remove(),delete l[n.ns]}catch(e){l[n.ns]=null}return e(n.context).off(n.ns),!0})}else if(a.selector){if(r[a.selector]){x=e(".context-menu-list").filter(":visible"),x.length&&x.data().contextMenuRoot.$trigger.is(a.selector)&&x.trigger("contextmenu:hide",{force:!0});try{l[r[a.selector]].$menu&&l[r[a.selector]].$menu.remove(),delete l[r[a.selector]]}catch(e){l[r[a.selector]]=null}o.off(r[a.selector])}}else o.off(".contextMenu .contextMenuAutoHide"),e.each(l,function(t,n){e(n.context).off(n.ns)}),r={},l={},c=0,s=!1,e("#context-menu-layer, .context-menu-list").remove();break;case"html5":(!e.support.htmlCommand&&!e.support.htmlMenuitem||"boolean"==typeof n&&n)&&e('menu[type="context"]').each(function(){this.id&&e.contextMenu({selector:"[contextmenu="+this.id+"]",items:e.contextMenu.fromMenu(this)})}).css("display","none");break;default:throw new Error('Unknown operation "'+t+'"')}return this},e.contextMenu.setInputValues=function(t,n){void 0===n&&(n={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":t.value=n[e]||"";break;case"checkbox":t.selected=!!n[e];break;case"radio":t.selected=(n[t.radio]||"")===t.value;break;case"select":t.selected=n[e]||""}})},e.contextMenu.getInputValues=function(t,n){return void 0===n&&(n={}),e.each(t.inputs,function(e,t){switch(t.type){case"text":case"textarea":case"select":n[e]=t.$input.val();break;case"checkbox":n[e]=t.$input.prop("checked");break;case"radio":t.$input.prop("checked")&&(n[t.radio]=t.value)}}),n},e.contextMenu.fromMenu=function(t){var n=e(t),o={};return a(o,n.children()),o},e.contextMenu.defaults=d,e.contextMenu.types=u,e.contextMenu.handle=f,e.contextMenu.op=h,e.contextMenu.menus=l}); | |||
|
18 | //# sourceMappingURL=jquery.contextMenu.min.js.map |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -1,580 +1,583 b'' | |||||
1 | # SOME DESCRIPTIVE TITLE. |
|
1 | # SOME DESCRIPTIVE TITLE. | |
2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
|
2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | |
3 | # This file is distributed under the same license as the PACKAGE package. |
|
3 | # This file is distributed under the same license as the PACKAGE package. | |
4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
|
4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | |
5 | # |
|
5 | # | |
6 | msgid "" |
|
6 | msgid "" | |
7 | msgstr "" |
|
7 | msgstr "" | |
8 | "Project-Id-Version: PACKAGE VERSION\n" |
|
8 | "Project-Id-Version: PACKAGE VERSION\n" | |
9 | "Report-Msgid-Bugs-To: \n" |
|
9 | "Report-Msgid-Bugs-To: \n" | |
10 | "POT-Creation-Date: 2015-10-09 23:21+0300\n" |
|
10 | "POT-Creation-Date: 2015-10-09 23:21+0300\n" | |
11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
|
11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | |
12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
|
12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
13 | "Language-Team: LANGUAGE <LL@li.org>\n" |
|
13 | "Language-Team: LANGUAGE <LL@li.org>\n" | |
14 | "Language: ru\n" |
|
14 | "Language: ru\n" | |
15 | "MIME-Version: 1.0\n" |
|
15 | "MIME-Version: 1.0\n" | |
16 | "Content-Type: text/plain; charset=UTF-8\n" |
|
16 | "Content-Type: text/plain; charset=UTF-8\n" | |
17 | "Content-Transfer-Encoding: 8bit\n" |
|
17 | "Content-Transfer-Encoding: 8bit\n" | |
18 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" |
|
18 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | |
19 | "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" |
|
19 | "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" | |
20 |
|
20 | |||
21 | #: admin.py:22 |
|
21 | #: admin.py:22 | |
22 | msgid "{} posters were banned" |
|
22 | msgid "{} posters were banned" | |
23 | msgstr "" |
|
23 | msgstr "" | |
24 |
|
24 | |||
25 | #: authors.py:9 |
|
25 | #: authors.py:9 | |
26 | msgid "author" |
|
26 | msgid "author" | |
27 | msgstr "автор" |
|
27 | msgstr "автор" | |
28 |
|
28 | |||
29 | #: authors.py:10 |
|
29 | #: authors.py:10 | |
30 | msgid "developer" |
|
30 | msgid "developer" | |
31 | msgstr "разработчик" |
|
31 | msgstr "разработчик" | |
32 |
|
32 | |||
33 | #: authors.py:11 |
|
33 | #: authors.py:11 | |
34 | msgid "javascript developer" |
|
34 | msgid "javascript developer" | |
35 | msgstr "разработчик javascript" |
|
35 | msgstr "разработчик javascript" | |
36 |
|
36 | |||
37 | #: authors.py:12 |
|
37 | #: authors.py:12 | |
38 | msgid "designer" |
|
38 | msgid "designer" | |
39 | msgstr "дизайнер" |
|
39 | msgstr "дизайнер" | |
40 |
|
40 | |||
41 | #: forms.py:30 |
|
41 | #: forms.py:30 | |
42 | msgid "Type message here. Use formatting panel for more advanced usage." |
|
42 | msgid "Type message here. Use formatting panel for more advanced usage." | |
43 | msgstr "" |
|
43 | msgstr "" | |
44 | "Вводите сообщение сюда. Используйте панель для более сложного форматирования." |
|
44 | "Вводите сообщение сюда. Используйте панель для более сложного форматирования." | |
45 |
|
45 | |||
46 | #: forms.py:31 |
|
46 | #: forms.py:31 | |
47 | msgid "music images i_dont_like_tags" |
|
47 | msgid "music images i_dont_like_tags" | |
48 | msgstr "музыка картинки теги_не_нужны" |
|
48 | msgstr "музыка картинки теги_не_нужны" | |
49 |
|
49 | |||
50 | #: forms.py:33 |
|
50 | #: forms.py:33 | |
51 | msgid "Title" |
|
51 | msgid "Title" | |
52 | msgstr "Заголовок" |
|
52 | msgstr "Заголовок" | |
53 |
|
53 | |||
54 | #: forms.py:34 |
|
54 | #: forms.py:34 | |
55 | msgid "Text" |
|
55 | msgid "Text" | |
56 | msgstr "Текст" |
|
56 | msgstr "Текст" | |
57 |
|
57 | |||
58 | #: forms.py:35 |
|
58 | #: forms.py:35 | |
59 | msgid "Tag" |
|
59 | msgid "Tag" | |
60 | msgstr "Метка" |
|
60 | msgstr "Метка" | |
61 |
|
61 | |||
62 | #: forms.py:36 templates/boards/base.html:40 templates/search/search.html:7 |
|
62 | #: forms.py:36 templates/boards/base.html:40 templates/search/search.html:7 | |
63 | msgid "Search" |
|
63 | msgid "Search" | |
64 | msgstr "Поиск" |
|
64 | msgstr "Поиск" | |
65 |
|
65 | |||
66 | #: forms.py:48 |
|
66 | #: forms.py:48 | |
67 | msgid "File 1" |
|
67 | msgid "File 1" | |
68 | msgstr "Файл 1" |
|
68 | msgstr "Файл 1" | |
69 |
|
69 | |||
70 | #: forms.py:48 |
|
70 | #: forms.py:48 | |
71 | msgid "File 2" |
|
71 | msgid "File 2" | |
72 | msgstr "Файл 2" |
|
72 | msgstr "Файл 2" | |
73 |
|
73 | |||
74 | #: forms.py:142 |
|
74 | #: forms.py:142 | |
75 | msgid "File URL" |
|
75 | msgid "File URL" | |
76 | msgstr "URL файла" |
|
76 | msgstr "URL файла" | |
77 |
|
77 | |||
78 | #: forms.py:148 |
|
78 | #: forms.py:148 | |
79 | msgid "e-mail" |
|
79 | msgid "e-mail" | |
80 | msgstr "" |
|
80 | msgstr "" | |
81 |
|
81 | |||
82 | #: forms.py:151 |
|
82 | #: forms.py:151 | |
83 | msgid "Additional threads" |
|
83 | msgid "Additional threads" | |
84 | msgstr "Дополнительные темы" |
|
84 | msgstr "Дополнительные темы" | |
85 |
|
85 | |||
86 | #: forms.py:162 |
|
86 | #: forms.py:162 | |
87 | #, python-format |
|
87 | #, python-format | |
88 | msgid "Title must have less than %s characters" |
|
88 | msgid "Title must have less than %s characters" | |
89 | msgstr "Заголовок должен иметь меньше %s символов" |
|
89 | msgstr "Заголовок должен иметь меньше %s символов" | |
90 |
|
90 | |||
91 | #: forms.py:172 |
|
91 | #: forms.py:172 | |
92 | #, python-format |
|
92 | #, python-format | |
93 | msgid "Text must have less than %s characters" |
|
93 | msgid "Text must have less than %s characters" | |
94 | msgstr "Текст должен быть короче %s символов" |
|
94 | msgstr "Текст должен быть короче %s символов" | |
95 |
|
95 | |||
96 | #: forms.py:192 |
|
96 | #: forms.py:192 | |
97 | msgid "Invalid URL" |
|
97 | msgid "Invalid URL" | |
98 | msgstr "Неверный URL" |
|
98 | msgstr "Неверный URL" | |
99 |
|
99 | |||
100 | #: forms.py:213 |
|
100 | #: forms.py:213 | |
101 | msgid "Invalid additional thread list" |
|
101 | msgid "Invalid additional thread list" | |
102 | msgstr "Неверный список дополнительных тем" |
|
102 | msgstr "Неверный список дополнительных тем" | |
103 |
|
103 | |||
104 | #: forms.py:258 |
|
104 | #: forms.py:258 | |
105 | msgid "Either text or file must be entered." |
|
105 | msgid "Either text or file must be entered." | |
106 | msgstr "Текст или файл должны быть введены." |
|
106 | msgstr "Текст или файл должны быть введены." | |
107 |
|
107 | |||
108 | #: forms.py:317 templates/boards/all_threads.html:153 |
|
108 | #: forms.py:317 templates/boards/all_threads.html:153 | |
109 | #: templates/boards/rss/post.html:10 templates/boards/tags.html:6 |
|
109 | #: templates/boards/rss/post.html:10 templates/boards/tags.html:6 | |
110 | msgid "Tags" |
|
110 | msgid "Tags" | |
111 | msgstr "Метки" |
|
111 | msgstr "Метки" | |
112 |
|
112 | |||
113 | #: forms.py:324 |
|
113 | #: forms.py:324 | |
114 | msgid "Inappropriate characters in tags." |
|
114 | msgid "Inappropriate characters in tags." | |
115 | msgstr "Недопустимые символы в метках." |
|
115 | msgstr "Недопустимые символы в метках." | |
116 |
|
116 | |||
117 | #: forms.py:344 |
|
117 | #: forms.py:344 | |
118 | msgid "Need at least one section." |
|
118 | msgid "Need at least one section." | |
119 | msgstr "Нужен хотя бы один раздел." |
|
119 | msgstr "Нужен хотя бы один раздел." | |
120 |
|
120 | |||
121 | #: forms.py:356 |
|
121 | #: forms.py:356 | |
122 | msgid "Theme" |
|
122 | msgid "Theme" | |
123 | msgstr "Тема" |
|
123 | msgstr "Тема" | |
124 |
|
124 | |||
125 | #: forms.py:357 |
|
125 | #: forms.py:357 | |
126 | msgid "Image view mode" |
|
126 | msgid "Image view mode" | |
127 | msgstr "Режим просмотра изображений" |
|
127 | msgstr "Режим просмотра изображений" | |
128 |
|
128 | |||
129 | #: forms.py:358 |
|
129 | #: forms.py:358 | |
130 | msgid "User name" |
|
130 | msgid "User name" | |
131 | msgstr "Имя пользователя" |
|
131 | msgstr "Имя пользователя" | |
132 |
|
132 | |||
133 | #: forms.py:359 |
|
133 | #: forms.py:359 | |
134 | msgid "Time zone" |
|
134 | msgid "Time zone" | |
135 | msgstr "Часовой пояс" |
|
135 | msgstr "Часовой пояс" | |
136 |
|
136 | |||
137 | #: forms.py:365 |
|
137 | #: forms.py:365 | |
138 | msgid "Inappropriate characters." |
|
138 | msgid "Inappropriate characters." | |
139 | msgstr "Недопустимые символы." |
|
139 | msgstr "Недопустимые символы." | |
140 |
|
140 | |||
141 | #: templates/boards/404.html:6 |
|
141 | #: templates/boards/404.html:6 | |
142 | msgid "Not found" |
|
142 | msgid "Not found" | |
143 | msgstr "Не найдено" |
|
143 | msgstr "Не найдено" | |
144 |
|
144 | |||
145 | #: templates/boards/404.html:12 |
|
145 | #: templates/boards/404.html:12 | |
146 | msgid "This page does not exist" |
|
146 | msgid "This page does not exist" | |
147 | msgstr "Этой страницы не существует" |
|
147 | msgstr "Этой страницы не существует" | |
148 |
|
148 | |||
149 | #: templates/boards/all_threads.html:35 |
|
149 | #: templates/boards/all_threads.html:35 | |
150 | msgid "Details" |
|
150 | msgid "Details" | |
151 | msgstr "Подробности" |
|
151 | msgstr "Подробности" | |
152 |
|
152 | |||
153 | #: templates/boards/all_threads.html:69 |
|
153 | #: templates/boards/all_threads.html:69 | |
154 | msgid "Edit tag" |
|
154 | msgid "Edit tag" | |
155 | msgstr "Изменить метку" |
|
155 | msgstr "Изменить метку" | |
156 |
|
156 | |||
157 | #: templates/boards/all_threads.html:76 |
|
157 | #: templates/boards/all_threads.html:76 | |
158 | #, python-format |
|
158 | #, python-format | |
159 | msgid "%(count)s active thread" |
|
159 | msgid "%(count)s active thread" | |
160 | msgid_plural "%(count)s active threads" |
|
160 | msgid_plural "%(count)s active threads" | |
161 | msgstr[0] "%(count)s активная тема" |
|
161 | msgstr[0] "%(count)s активная тема" | |
162 | msgstr[1] "%(count)s активные темы" |
|
162 | msgstr[1] "%(count)s активные темы" | |
163 | msgstr[2] "%(count)s активных тем" |
|
163 | msgstr[2] "%(count)s активных тем" | |
164 |
|
164 | |||
165 | #: templates/boards/all_threads.html:76 |
|
165 | #: templates/boards/all_threads.html:76 | |
166 | #, python-format |
|
166 | #, python-format | |
167 | msgid "%(count)s thread in bumplimit" |
|
167 | msgid "%(count)s thread in bumplimit" | |
168 | msgid_plural "%(count)s threads in bumplimit" |
|
168 | msgid_plural "%(count)s threads in bumplimit" | |
169 | msgstr[0] "%(count)s тема в бамплимите" |
|
169 | msgstr[0] "%(count)s тема в бамплимите" | |
170 | msgstr[1] "%(count)s темы в бамплимите" |
|
170 | msgstr[1] "%(count)s темы в бамплимите" | |
171 | msgstr[2] "%(count)s тем в бамплимите" |
|
171 | msgstr[2] "%(count)s тем в бамплимите" | |
172 |
|
172 | |||
173 | #: templates/boards/all_threads.html:77 |
|
173 | #: templates/boards/all_threads.html:77 | |
174 | #, python-format |
|
174 | #, python-format | |
175 | msgid "%(count)s archived thread" |
|
175 | msgid "%(count)s archived thread" | |
176 | msgid_plural "%(count)s archived thread" |
|
176 | msgid_plural "%(count)s archived thread" | |
177 | msgstr[0] "%(count)s архивная тема" |
|
177 | msgstr[0] "%(count)s архивная тема" | |
178 | msgstr[1] "%(count)s архивные темы" |
|
178 | msgstr[1] "%(count)s архивные темы" | |
179 | msgstr[2] "%(count)s архивных тем" |
|
179 | msgstr[2] "%(count)s архивных тем" | |
180 |
|
180 | |||
181 | #: templates/boards/all_threads.html:78 templates/boards/post.html:102 |
|
181 | #: templates/boards/all_threads.html:78 templates/boards/post.html:102 | |
182 | #, python-format |
|
182 | #, python-format | |
183 | #| msgid "%(count)s message" |
|
183 | #| msgid "%(count)s message" | |
184 | #| msgid_plural "%(count)s messages" |
|
184 | #| msgid_plural "%(count)s messages" | |
185 | msgid "%(count)s message" |
|
185 | msgid "%(count)s message" | |
186 | msgid_plural "%(count)s messages" |
|
186 | msgid_plural "%(count)s messages" | |
187 | msgstr[0] "%(count)s сообщение" |
|
187 | msgstr[0] "%(count)s сообщение" | |
188 | msgstr[1] "%(count)s сообщения" |
|
188 | msgstr[1] "%(count)s сообщения" | |
189 | msgstr[2] "%(count)s сообщений" |
|
189 | msgstr[2] "%(count)s сообщений" | |
190 |
|
190 | |||
191 | #: templates/boards/all_threads.html:95 templates/boards/feed.html:30 |
|
191 | #: templates/boards/all_threads.html:95 templates/boards/feed.html:30 | |
192 | #: templates/boards/notifications.html:17 templates/search/search.html:26 |
|
192 | #: templates/boards/notifications.html:17 templates/search/search.html:26 | |
193 | msgid "Previous page" |
|
193 | msgid "Previous page" | |
194 | msgstr "Предыдущая страница" |
|
194 | msgstr "Предыдущая страница" | |
195 |
|
195 | |||
196 | #: templates/boards/all_threads.html:109 |
|
196 | #: templates/boards/all_threads.html:109 | |
197 | #, python-format |
|
197 | #, python-format | |
198 | msgid "Skipped %(count)s reply. Open thread to see all replies." |
|
198 | msgid "Skipped %(count)s reply. Open thread to see all replies." | |
199 | msgid_plural "Skipped %(count)s replies. Open thread to see all replies." |
|
199 | msgid_plural "Skipped %(count)s replies. Open thread to see all replies." | |
200 | msgstr[0] "Пропущен %(count)s ответ. Откройте тред, чтобы увидеть все ответы." |
|
200 | msgstr[0] "Пропущен %(count)s ответ. Откройте тред, чтобы увидеть все ответы." | |
201 | msgstr[1] "" |
|
201 | msgstr[1] "" | |
202 | "Пропущено %(count)s ответа. Откройте тред, чтобы увидеть все ответы." |
|
202 | "Пропущено %(count)s ответа. Откройте тред, чтобы увидеть все ответы." | |
203 | msgstr[2] "" |
|
203 | msgstr[2] "" | |
204 | "Пропущено %(count)s ответов. Откройте тред, чтобы увидеть все ответы." |
|
204 | "Пропущено %(count)s ответов. Откройте тред, чтобы увидеть все ответы." | |
205 |
|
205 | |||
206 | #: templates/boards/all_threads.html:127 templates/boards/feed.html:40 |
|
206 | #: templates/boards/all_threads.html:127 templates/boards/feed.html:40 | |
207 | #: templates/boards/notifications.html:27 templates/search/search.html:37 |
|
207 | #: templates/boards/notifications.html:27 templates/search/search.html:37 | |
208 | msgid "Next page" |
|
208 | msgid "Next page" | |
209 | msgstr "Следующая страница" |
|
209 | msgstr "Следующая страница" | |
210 |
|
210 | |||
211 | #: templates/boards/all_threads.html:132 |
|
211 | #: templates/boards/all_threads.html:132 | |
212 | msgid "No threads exist. Create the first one!" |
|
212 | msgid "No threads exist. Create the first one!" | |
213 | msgstr "Нет тем. Создайте первую!" |
|
213 | msgstr "Нет тем. Создайте первую!" | |
214 |
|
214 | |||
215 | #: templates/boards/all_threads.html:138 |
|
215 | #: templates/boards/all_threads.html:138 | |
216 | msgid "Create new thread" |
|
216 | msgid "Create new thread" | |
217 | msgstr "Создать новую тему" |
|
217 | msgstr "Создать новую тему" | |
218 |
|
218 | |||
219 | #: templates/boards/all_threads.html:143 templates/boards/preview.html:16 |
|
219 | #: templates/boards/all_threads.html:143 templates/boards/preview.html:16 | |
220 | #: templates/boards/thread_normal.html:51 |
|
220 | #: templates/boards/thread_normal.html:51 | |
221 | msgid "Post" |
|
221 | msgid "Post" | |
222 | msgstr "Отправить" |
|
222 | msgstr "Отправить" | |
223 |
|
223 | |||
224 | #: templates/boards/all_threads.html:144 templates/boards/preview.html:6 |
|
224 | #: templates/boards/all_threads.html:144 templates/boards/preview.html:6 | |
225 | #: templates/boards/staticpages/help.html:21 |
|
225 | #: templates/boards/staticpages/help.html:21 | |
226 | #: templates/boards/thread_normal.html:52 |
|
226 | #: templates/boards/thread_normal.html:52 | |
227 | msgid "Preview" |
|
227 | msgid "Preview" | |
228 | msgstr "Предпросмотр" |
|
228 | msgstr "Предпросмотр" | |
229 |
|
229 | |||
230 | #: templates/boards/all_threads.html:149 |
|
230 | #: templates/boards/all_threads.html:149 | |
231 | msgid "Tags must be delimited by spaces. Text or image is required." |
|
231 | msgid "Tags must be delimited by spaces. Text or image is required." | |
232 | msgstr "" |
|
232 | msgstr "" | |
233 | "Метки должны быть разделены пробелами. Текст или изображение обязательны." |
|
233 | "Метки должны быть разделены пробелами. Текст или изображение обязательны." | |
234 |
|
234 | |||
235 | #: templates/boards/all_threads.html:152 templates/boards/thread_normal.html:58 |
|
235 | #: templates/boards/all_threads.html:152 templates/boards/thread_normal.html:58 | |
236 | msgid "Text syntax" |
|
236 | msgid "Text syntax" | |
237 | msgstr "Синтаксис текста" |
|
237 | msgstr "Синтаксис текста" | |
238 |
|
238 | |||
239 | #: templates/boards/all_threads.html:166 templates/boards/feed.html:53 |
|
239 | #: templates/boards/all_threads.html:166 templates/boards/feed.html:53 | |
240 | msgid "Pages:" |
|
240 | msgid "Pages:" | |
241 | msgstr "Страницы: " |
|
241 | msgstr "Страницы: " | |
242 |
|
242 | |||
243 | #: templates/boards/authors.html:6 templates/boards/authors.html.py:12 |
|
243 | #: templates/boards/authors.html:6 templates/boards/authors.html.py:12 | |
244 | msgid "Authors" |
|
244 | msgid "Authors" | |
245 | msgstr "Авторы" |
|
245 | msgstr "Авторы" | |
246 |
|
246 | |||
247 | #: templates/boards/authors.html:26 |
|
247 | #: templates/boards/authors.html:26 | |
248 | msgid "Distributed under the" |
|
248 | msgid "Distributed under the" | |
249 | msgstr "Распространяется под" |
|
249 | msgstr "Распространяется под" | |
250 |
|
250 | |||
251 | #: templates/boards/authors.html:28 |
|
251 | #: templates/boards/authors.html:28 | |
252 | msgid "license" |
|
252 | msgid "license" | |
253 | msgstr "лицензией" |
|
253 | msgstr "лицензией" | |
254 |
|
254 | |||
255 | #: templates/boards/authors.html:30 |
|
255 | #: templates/boards/authors.html:30 | |
256 | msgid "Repository" |
|
256 | msgid "Repository" | |
257 | msgstr "Репозиторий" |
|
257 | msgstr "Репозиторий" | |
258 |
|
258 | |||
259 | #: templates/boards/base.html:14 templates/boards/base.html.py:41 |
|
259 | #: templates/boards/base.html:14 templates/boards/base.html.py:41 | |
260 | msgid "Feed" |
|
260 | msgid "Feed" | |
261 | msgstr "Лента" |
|
261 | msgstr "Лента" | |
262 |
|
262 | |||
263 | #: templates/boards/base.html:31 |
|
263 | #: templates/boards/base.html:31 | |
264 | msgid "All threads" |
|
264 | msgid "All threads" | |
265 | msgstr "Все темы" |
|
265 | msgstr "Все темы" | |
266 |
|
266 | |||
267 | #: templates/boards/base.html:37 |
|
267 | #: templates/boards/base.html:37 | |
268 | msgid "Add tags" |
|
268 | msgid "Add tags" | |
269 | msgstr "Добавить метки" |
|
269 | msgstr "Добавить метки" | |
270 |
|
270 | |||
271 | #: templates/boards/base.html:39 |
|
271 | #: templates/boards/base.html:39 | |
272 | msgid "Tag management" |
|
272 | msgid "Tag management" | |
273 | msgstr "Управление метками" |
|
273 | msgstr "Управление метками" | |
274 |
|
274 | |||
275 | #: templates/boards/base.html:39 |
|
275 | #: templates/boards/base.html:39 | |
276 | msgid "tags" |
|
276 | msgid "tags" | |
277 | msgstr "метки" |
|
277 | msgstr "метки" | |
278 |
|
278 | |||
279 | #: templates/boards/base.html:40 |
|
279 | #: templates/boards/base.html:40 | |
280 | msgid "search" |
|
280 | msgid "search" | |
281 | msgstr "поиск" |
|
281 | msgstr "поиск" | |
282 |
|
282 | |||
283 | #: templates/boards/base.html:41 templates/boards/feed.html:11 |
|
283 | #: templates/boards/base.html:41 templates/boards/feed.html:11 | |
284 | msgid "feed" |
|
284 | msgid "feed" | |
285 | msgstr "лента" |
|
285 | msgstr "лента" | |
286 |
|
286 | |||
287 | #: templates/boards/base.html:42 templates/boards/random.html:6 |
|
287 | #: templates/boards/base.html:42 templates/boards/random.html:6 | |
288 | msgid "Random images" |
|
288 | msgid "Random images" | |
289 | msgstr "Случайные изображения" |
|
289 | msgstr "Случайные изображения" | |
290 |
|
290 | |||
291 | #: templates/boards/base.html:42 |
|
291 | #: templates/boards/base.html:42 | |
292 | msgid "random" |
|
292 | msgid "random" | |
293 | msgstr "случайные" |
|
293 | msgstr "случайные" | |
294 |
|
294 | |||
295 | #: templates/boards/base.html:44 |
|
295 | #: templates/boards/base.html:44 | |
296 | msgid "favorites" |
|
296 | msgid "favorites" | |
297 | msgstr "избранное" |
|
297 | msgstr "избранное" | |
298 |
|
298 | |||
299 | #: templates/boards/base.html:48 templates/boards/base.html.py:49 |
|
299 | #: templates/boards/base.html:48 templates/boards/base.html.py:49 | |
300 | #: templates/boards/notifications.html:8 |
|
300 | #: templates/boards/notifications.html:8 | |
301 | msgid "Notifications" |
|
301 | msgid "Notifications" | |
302 | msgstr "Уведомления" |
|
302 | msgstr "Уведомления" | |
303 |
|
303 | |||
304 | #: templates/boards/base.html:56 templates/boards/settings.html:8 |
|
304 | #: templates/boards/base.html:56 templates/boards/settings.html:8 | |
305 | msgid "Settings" |
|
305 | msgid "Settings" | |
306 | msgstr "Настройки" |
|
306 | msgstr "Настройки" | |
307 |
|
307 | |||
308 | #: templates/boards/base.html:59 |
|
308 | #: templates/boards/base.html:59 | |
309 | msgid "Loading..." |
|
309 | msgid "Loading..." | |
310 | msgstr "Загрузка..." |
|
310 | msgstr "Загрузка..." | |
311 |
|
311 | |||
312 | #: templates/boards/base.html:71 |
|
312 | #: templates/boards/base.html:71 | |
313 | msgid "Admin" |
|
313 | msgid "Admin" | |
314 | msgstr "Администрирование" |
|
314 | msgstr "Администрирование" | |
315 |
|
315 | |||
316 | #: templates/boards/base.html:73 |
|
316 | #: templates/boards/base.html:73 | |
317 | #, python-format |
|
317 | #, python-format | |
318 | msgid "Speed: %(ppd)s posts per day" |
|
318 | msgid "Speed: %(ppd)s posts per day" | |
319 | msgstr "Скорость: %(ppd)s сообщений в день" |
|
319 | msgstr "Скорость: %(ppd)s сообщений в день" | |
320 |
|
320 | |||
321 | #: templates/boards/base.html:75 |
|
321 | #: templates/boards/base.html:75 | |
322 | msgid "Up" |
|
322 | msgid "Up" | |
323 | msgstr "Вверх" |
|
323 | msgstr "Вверх" | |
324 |
|
324 | |||
325 | #: templates/boards/feed.html:45 |
|
325 | #: templates/boards/feed.html:45 | |
326 | msgid "No posts exist. Create the first one!" |
|
326 | msgid "No posts exist. Create the first one!" | |
327 | msgstr "Нет сообщений. Создайте первое!" |
|
327 | msgstr "Нет сообщений. Создайте первое!" | |
328 |
|
328 | |||
329 | #: templates/boards/post.html:33 |
|
329 | #: templates/boards/post.html:33 | |
330 | msgid "Open" |
|
330 | msgid "Open" | |
331 | msgstr "Открыть" |
|
331 | msgstr "Открыть" | |
332 |
|
332 | |||
333 | #: templates/boards/post.html:35 templates/boards/post.html.py:46 |
|
333 | #: templates/boards/post.html:35 templates/boards/post.html.py:46 | |
334 | msgid "Reply" |
|
334 | msgid "Reply" | |
335 | msgstr "Ответить" |
|
335 | msgstr "Ответить" | |
336 |
|
336 | |||
337 | #: templates/boards/post.html:41 |
|
337 | #: templates/boards/post.html:41 | |
338 | msgid " in " |
|
338 | msgid " in " | |
339 | msgstr " в " |
|
339 | msgstr " в " | |
340 |
|
340 | |||
341 | #: templates/boards/post.html:51 |
|
341 | #: templates/boards/post.html:51 | |
342 | msgid "Edit" |
|
342 | msgid "Edit" | |
343 | msgstr "Изменить" |
|
343 | msgstr "Изменить" | |
344 |
|
344 | |||
345 | #: templates/boards/post.html:53 |
|
345 | #: templates/boards/post.html:53 | |
346 | msgid "Edit thread" |
|
346 | msgid "Edit thread" | |
347 | msgstr "Изменить тему" |
|
347 | msgstr "Изменить тему" | |
348 |
|
348 | |||
349 | #: templates/boards/post.html:91 |
|
349 | #: templates/boards/post.html:91 | |
350 | msgid "Replies" |
|
350 | msgid "Replies" | |
351 | msgstr "Ответы" |
|
351 | msgstr "Ответы" | |
352 |
|
352 | |||
353 | #: templates/boards/post.html:103 |
|
353 | #: templates/boards/post.html:103 | |
354 | #, python-format |
|
354 | #, python-format | |
355 | msgid "%(count)s image" |
|
355 | msgid "%(count)s image" | |
356 | msgid_plural "%(count)s images" |
|
356 | msgid_plural "%(count)s images" | |
357 | msgstr[0] "%(count)s изображение" |
|
357 | msgstr[0] "%(count)s изображение" | |
358 | msgstr[1] "%(count)s изображения" |
|
358 | msgstr[1] "%(count)s изображения" | |
359 | msgstr[2] "%(count)s изображений" |
|
359 | msgstr[2] "%(count)s изображений" | |
360 |
|
360 | |||
361 | #: templates/boards/rss/post.html:5 |
|
361 | #: templates/boards/rss/post.html:5 | |
362 | msgid "Post image" |
|
362 | msgid "Post image" | |
363 | msgstr "Изображение сообщения" |
|
363 | msgstr "Изображение сообщения" | |
364 |
|
364 | |||
365 | #: templates/boards/settings.html:15 |
|
365 | #: templates/boards/settings.html:15 | |
366 | msgid "You are moderator." |
|
366 | msgid "You are moderator." | |
367 | msgstr "Вы модератор." |
|
367 | msgstr "Вы модератор." | |
368 |
|
368 | |||
369 | #: templates/boards/settings.html:19 |
|
369 | #: templates/boards/settings.html:19 | |
370 | msgid "Hidden tags:" |
|
370 | msgid "Hidden tags:" | |
371 | msgstr "Скрытые метки:" |
|
371 | msgstr "Скрытые метки:" | |
372 |
|
372 | |||
373 | #: templates/boards/settings.html:25 |
|
373 | #: templates/boards/settings.html:25 | |
374 | msgid "No hidden tags." |
|
374 | msgid "No hidden tags." | |
375 | msgstr "Нет скрытых меток." |
|
375 | msgstr "Нет скрытых меток." | |
376 |
|
376 | |||
377 | #: templates/boards/settings.html:34 |
|
377 | #: templates/boards/settings.html:34 | |
378 | msgid "Save" |
|
378 | msgid "Save" | |
379 | msgstr "Сохранить" |
|
379 | msgstr "Сохранить" | |
380 |
|
380 | |||
381 | #: templates/boards/staticpages/banned.html:6 |
|
381 | #: templates/boards/staticpages/banned.html:6 | |
382 | msgid "Banned" |
|
382 | msgid "Banned" | |
383 | msgstr "Заблокирован" |
|
383 | msgstr "Заблокирован" | |
384 |
|
384 | |||
385 | #: templates/boards/staticpages/banned.html:11 |
|
385 | #: templates/boards/staticpages/banned.html:11 | |
386 | msgid "Your IP address has been banned. Contact the administrator" |
|
386 | msgid "Your IP address has been banned. Contact the administrator" | |
387 | msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором" |
|
387 | msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором" | |
388 |
|
388 | |||
389 | #: templates/boards/staticpages/help.html:6 |
|
389 | #: templates/boards/staticpages/help.html:6 | |
390 | #: templates/boards/staticpages/help.html:10 |
|
390 | #: templates/boards/staticpages/help.html:10 | |
391 | msgid "Syntax" |
|
391 | msgid "Syntax" | |
392 | msgstr "Синтаксис" |
|
392 | msgstr "Синтаксис" | |
393 |
|
393 | |||
394 | #: templates/boards/staticpages/help.html:11 |
|
394 | #: templates/boards/staticpages/help.html:11 | |
395 | msgid "Italic text" |
|
395 | msgid "Italic text" | |
396 | msgstr "Курсивный текст" |
|
396 | msgstr "Курсивный текст" | |
397 |
|
397 | |||
398 | #: templates/boards/staticpages/help.html:12 |
|
398 | #: templates/boards/staticpages/help.html:12 | |
399 | msgid "Bold text" |
|
399 | msgid "Bold text" | |
400 | msgstr "Полужирный текст" |
|
400 | msgstr "Полужирный текст" | |
401 |
|
401 | |||
402 | #: templates/boards/staticpages/help.html:13 |
|
402 | #: templates/boards/staticpages/help.html:13 | |
403 | msgid "Spoiler" |
|
403 | msgid "Spoiler" | |
404 | msgstr "Спойлер" |
|
404 | msgstr "Спойлер" | |
405 |
|
405 | |||
406 | #: templates/boards/staticpages/help.html:14 |
|
406 | #: templates/boards/staticpages/help.html:14 | |
407 | msgid "Link to a post" |
|
407 | msgid "Link to a post" | |
408 | msgstr "Ссылка на сообщение" |
|
408 | msgstr "Ссылка на сообщение" | |
409 |
|
409 | |||
410 | #: templates/boards/staticpages/help.html:15 |
|
410 | #: templates/boards/staticpages/help.html:15 | |
411 | msgid "Strikethrough text" |
|
411 | msgid "Strikethrough text" | |
412 | msgstr "Зачеркнутый текст" |
|
412 | msgstr "Зачеркнутый текст" | |
413 |
|
413 | |||
414 | #: templates/boards/staticpages/help.html:16 |
|
414 | #: templates/boards/staticpages/help.html:16 | |
415 | msgid "Comment" |
|
415 | msgid "Comment" | |
416 | msgstr "Комментарий" |
|
416 | msgstr "Комментарий" | |
417 |
|
417 | |||
418 | #: templates/boards/staticpages/help.html:17 |
|
418 | #: templates/boards/staticpages/help.html:17 | |
419 | #: templates/boards/staticpages/help.html:18 |
|
419 | #: templates/boards/staticpages/help.html:18 | |
420 | msgid "Quote" |
|
420 | msgid "Quote" | |
421 | msgstr "Цитата" |
|
421 | msgstr "Цитата" | |
422 |
|
422 | |||
423 | #: templates/boards/staticpages/help.html:21 |
|
423 | #: templates/boards/staticpages/help.html:21 | |
424 | msgid "You can try pasting the text and previewing the result here:" |
|
424 | msgid "You can try pasting the text and previewing the result here:" | |
425 | msgstr "Вы можете попробовать вставить текст и проверить результат здесь:" |
|
425 | msgstr "Вы можете попробовать вставить текст и проверить результат здесь:" | |
426 |
|
426 | |||
427 | #: templates/boards/tags.html:17 |
|
427 | #: templates/boards/tags.html:17 | |
428 | msgid "Sections:" |
|
428 | msgid "Sections:" | |
429 | msgstr "Разделы:" |
|
429 | msgstr "Разделы:" | |
430 |
|
430 | |||
431 | #: templates/boards/tags.html:30 |
|
431 | #: templates/boards/tags.html:30 | |
432 | msgid "Other tags:" |
|
432 | msgid "Other tags:" | |
433 | msgstr "Другие метки:" |
|
433 | msgstr "Другие метки:" | |
434 |
|
434 | |||
435 | #: templates/boards/tags.html:43 |
|
435 | #: templates/boards/tags.html:43 | |
436 | msgid "All tags..." |
|
436 | msgid "All tags..." | |
437 | msgstr "Все метки..." |
|
437 | msgstr "Все метки..." | |
438 |
|
438 | |||
439 | #: templates/boards/thread.html:14 |
|
439 | #: templates/boards/thread.html:14 | |
440 | msgid "Normal" |
|
440 | msgid "Normal" | |
441 | msgstr "Нормальный" |
|
441 | msgstr "Нормальный" | |
442 |
|
442 | |||
443 | #: templates/boards/thread.html:15 |
|
443 | #: templates/boards/thread.html:15 | |
444 | msgid "Gallery" |
|
444 | msgid "Gallery" | |
445 | msgstr "Галерея" |
|
445 | msgstr "Галерея" | |
446 |
|
446 | |||
447 | #: templates/boards/thread.html:16 |
|
447 | #: templates/boards/thread.html:16 | |
448 | msgid "Tree" |
|
448 | msgid "Tree" | |
449 | msgstr "Дерево" |
|
449 | msgstr "Дерево" | |
450 |
|
450 | |||
451 | #: templates/boards/thread.html:35 |
|
451 | #: templates/boards/thread.html:35 | |
452 | msgid "message" |
|
452 | msgid "message" | |
453 | msgid_plural "messages" |
|
453 | msgid_plural "messages" | |
454 | msgstr[0] "сообщение" |
|
454 | msgstr[0] "сообщение" | |
455 | msgstr[1] "сообщения" |
|
455 | msgstr[1] "сообщения" | |
456 | msgstr[2] "сообщений" |
|
456 | msgstr[2] "сообщений" | |
457 |
|
457 | |||
458 | #: templates/boards/thread.html:38 |
|
458 | #: templates/boards/thread.html:38 | |
459 | msgid "image" |
|
459 | msgid "image" | |
460 | msgid_plural "images" |
|
460 | msgid_plural "images" | |
461 | msgstr[0] "изображение" |
|
461 | msgstr[0] "изображение" | |
462 | msgstr[1] "изображения" |
|
462 | msgstr[1] "изображения" | |
463 | msgstr[2] "изображений" |
|
463 | msgstr[2] "изображений" | |
464 |
|
464 | |||
465 | #: templates/boards/thread.html:40 |
|
465 | #: templates/boards/thread.html:40 | |
466 | msgid "Last update: " |
|
466 | msgid "Last update: " | |
467 | msgstr "Последнее обновление: " |
|
467 | msgstr "Последнее обновление: " | |
468 |
|
468 | |||
469 | #: templates/boards/thread_gallery.html:36 |
|
469 | #: templates/boards/thread_gallery.html:36 | |
470 | msgid "No images." |
|
470 | msgid "No images." | |
471 | msgstr "Нет изображений." |
|
471 | msgstr "Нет изображений." | |
472 |
|
472 | |||
473 | #: templates/boards/thread_normal.html:30 |
|
473 | #: templates/boards/thread_normal.html:30 | |
474 | msgid "posts to bumplimit" |
|
474 | msgid "posts to bumplimit" | |
475 | msgstr "сообщений до бамплимита" |
|
475 | msgstr "сообщений до бамплимита" | |
476 |
|
476 | |||
477 | #: templates/boards/thread_normal.html:44 |
|
477 | #: templates/boards/thread_normal.html:44 | |
478 | msgid "Reply to thread" |
|
478 | msgid "Reply to thread" | |
479 | msgstr "Ответить в тему" |
|
479 | msgstr "Ответить в тему" | |
480 |
|
480 | |||
481 | #: templates/boards/thread_normal.html:44 |
|
481 | #: templates/boards/thread_normal.html:44 | |
482 | msgid "to message " |
|
482 | msgid "to message " | |
483 | msgstr "на сообщение" |
|
483 | msgstr "на сообщение" | |
484 |
|
484 | |||
485 | #: templates/boards/thread_normal.html:59 |
|
485 | #: templates/boards/thread_normal.html:59 | |
486 | msgid "Close form" |
|
486 | msgid "Close form" | |
487 | msgstr "Закрыть форму" |
|
487 | msgstr "Закрыть форму" | |
488 |
|
488 | |||
489 | #: templates/search/search.html:17 |
|
489 | #: templates/search/search.html:17 | |
490 | msgid "Ok" |
|
490 | msgid "Ok" | |
491 | msgstr "Ок" |
|
491 | msgstr "Ок" | |
492 |
|
492 | |||
493 | #: utils.py:120 |
|
493 | #: utils.py:120 | |
494 | #, python-format |
|
494 | #, python-format | |
495 | msgid "File must be less than %s but is %s." |
|
495 | msgid "File must be less than %s but is %s." | |
496 | msgstr "Файл должен быть менее %s, но его размер %s." |
|
496 | msgstr "Файл должен быть менее %s, но его размер %s." | |
497 |
|
497 | |||
498 | msgid "Please wait %(delay)d second before sending message" |
|
498 | msgid "Please wait %(delay)d second before sending message" | |
499 | msgid_plural "Please wait %(delay)d seconds before sending message" |
|
499 | msgid_plural "Please wait %(delay)d seconds before sending message" | |
500 | msgstr[0] "Пожалуйста подождите %(delay)d секунду перед отправкой сообщения" |
|
500 | msgstr[0] "Пожалуйста подождите %(delay)d секунду перед отправкой сообщения" | |
501 | msgstr[1] "Пожалуйста подождите %(delay)d секунды перед отправкой сообщения" |
|
501 | msgstr[1] "Пожалуйста подождите %(delay)d секунды перед отправкой сообщения" | |
502 | msgstr[2] "Пожалуйста подождите %(delay)d секунд перед отправкой сообщения" |
|
502 | msgstr[2] "Пожалуйста подождите %(delay)d секунд перед отправкой сообщения" | |
503 |
|
503 | |||
504 | msgid "New threads" |
|
504 | msgid "New threads" | |
505 | msgstr "Новые темы" |
|
505 | msgstr "Новые темы" | |
506 |
|
506 | |||
507 | #, python-format |
|
507 | #, python-format | |
508 | msgid "Max file size is %(size)s." |
|
508 | msgid "Max file size is %(size)s." | |
509 | msgstr "Максимальный размер файла %(size)s." |
|
509 | msgstr "Максимальный размер файла %(size)s." | |
510 |
|
510 | |||
511 | msgid "Size of media:" |
|
511 | msgid "Size of media:" | |
512 | msgstr "Размер медиа:" |
|
512 | msgstr "Размер медиа:" | |
513 |
|
513 | |||
514 | msgid "Statistics" |
|
514 | msgid "Statistics" | |
515 | msgstr "Статистика" |
|
515 | msgstr "Статистика" | |
516 |
|
516 | |||
517 | msgid "Invalid PoW." |
|
517 | msgid "Invalid PoW." | |
518 | msgstr "Неверный PoW." |
|
518 | msgstr "Неверный PoW." | |
519 |
|
519 | |||
520 | msgid "Stale PoW." |
|
520 | msgid "Stale PoW." | |
521 | msgstr "PoW устарел." |
|
521 | msgstr "PoW устарел." | |
522 |
|
522 | |||
523 | msgid "Show" |
|
523 | msgid "Show" | |
524 | msgstr "Показывать" |
|
524 | msgstr "Показывать" | |
525 |
|
525 | |||
526 | msgid "Hide" |
|
526 | msgid "Hide" | |
527 | msgstr "Скрывать" |
|
527 | msgstr "Скрывать" | |
528 |
|
528 | |||
529 | msgid "Add to favorites" |
|
529 | msgid "Add to favorites" | |
530 | msgstr "Добавить в избранное" |
|
530 | msgstr "Добавить в избранное" | |
531 |
|
531 | |||
532 | msgid "Remove from favorites" |
|
532 | msgid "Remove from favorites" | |
533 | msgstr "Убрать из избранного" |
|
533 | msgstr "Убрать из избранного" | |
534 |
|
534 | |||
535 | msgid "Monochrome" |
|
535 | msgid "Monochrome" | |
536 | msgstr "Монохромный" |
|
536 | msgstr "Монохромный" | |
537 |
|
537 | |||
538 | msgid "Subsections: " |
|
538 | msgid "Subsections: " | |
539 | msgstr "Подразделы: " |
|
539 | msgstr "Подразделы: " | |
540 |
|
540 | |||
541 | msgid "Change file source" |
|
541 | msgid "Change file source" | |
542 | msgstr "Изменить источник файла" |
|
542 | msgstr "Изменить источник файла" | |
543 |
|
543 | |||
544 | msgid "interesting" |
|
544 | msgid "interesting" | |
545 | msgstr "интересное" |
|
545 | msgstr "интересное" | |
546 |
|
546 | |||
547 | msgid "images" |
|
547 | msgid "images" | |
548 | msgstr "изображения" |
|
548 | msgstr "изображения" | |
549 |
|
549 | |||
550 | msgid "Delete post" |
|
550 | msgid "Delete post" | |
551 | msgstr "Удалить пост" |
|
551 | msgstr "Удалить пост" | |
552 |
|
552 | |||
553 | msgid "Delete thread" |
|
553 | msgid "Delete thread" | |
554 | msgstr "Удалить тему" |
|
554 | msgstr "Удалить тему" | |
555 |
|
555 | |||
556 | msgid "Messages per day/week/month:" |
|
556 | msgid "Messages per day/week/month:" | |
557 | msgstr "Сообщений за день/неделю/месяц:" |
|
557 | msgstr "Сообщений за день/неделю/месяц:" | |
558 |
|
558 | |||
559 | msgid "Subscribe to thread" |
|
559 | msgid "Subscribe to thread" | |
560 | msgstr "Подписаться на тему" |
|
560 | msgstr "Подписаться на тему" | |
561 |
|
561 | |||
562 | msgid "Active threads:" |
|
562 | msgid "Active threads:" | |
563 | msgstr "Активные темы:" |
|
563 | msgstr "Активные темы:" | |
564 |
|
564 | |||
565 | msgid "No active threads today." |
|
565 | msgid "No active threads today." | |
566 | msgstr "Сегодня нет активных тем." |
|
566 | msgstr "Сегодня нет активных тем." | |
567 |
|
567 | |||
568 | msgid "Insert URLs on separate lines." |
|
568 | msgid "Insert URLs on separate lines." | |
569 | msgstr "Вставляйте ссылки на отдельных строках." |
|
569 | msgstr "Вставляйте ссылки на отдельных строках." | |
570 |
|
570 | |||
571 | msgid "You can post no more than %(files)d file." |
|
571 | msgid "You can post no more than %(files)d file." | |
572 | msgid_plural "You can post no more than %(files)d files." |
|
572 | msgid_plural "You can post no more than %(files)d files." | |
573 | msgstr[0] "Вы можете отправить не более %(files)d файла." |
|
573 | msgstr[0] "Вы можете отправить не более %(files)d файла." | |
574 | msgstr[1] "Вы можете отправить не более %(files)d файлов." |
|
574 | msgstr[1] "Вы можете отправить не более %(files)d файлов." | |
575 | msgstr[2] "Вы можете отправить не более %(files)d файлов." |
|
575 | msgstr[2] "Вы можете отправить не более %(files)d файлов." | |
576 |
|
576 | |||
577 | #, python-format |
|
577 | #, python-format | |
578 | msgid "Max file number is %(max_files)s." |
|
578 | msgid "Max file number is %(max_files)s." | |
579 | msgstr "Максимальное количество файлов %(max_files)s." |
|
579 | msgstr "Максимальное количество файлов %(max_files)s." | |
580 |
|
580 | |||
|
581 | msgid "Moderation" | |||
|
582 | msgstr "Модерация" | |||
|
583 |
@@ -1,94 +1,97 b'' | |||||
1 | {% load staticfiles %} |
|
1 | {% load staticfiles %} | |
2 | {% load i18n %} |
|
2 | {% load i18n %} | |
3 | {% load l10n %} |
|
3 | {% load l10n %} | |
4 | {% load static from staticfiles %} |
|
4 | {% load static from staticfiles %} | |
5 |
|
5 | |||
6 | <!DOCTYPE html> |
|
6 | <!DOCTYPE html> | |
7 | <html> |
|
7 | <html> | |
8 | <head> |
|
8 | <head> | |
9 | <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}" media="all"/> |
|
9 | <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}" media="all"/> | |
10 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/highlight.css' %}" media="all"/> |
|
10 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/highlight.css' %}" media="all"/> | |
11 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery-ui.min.css' %}" media="all"/> |
|
11 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery-ui.min.css' %}" media="all"/> | |
|
12 | <link rel="stylesheet" type="text/css" href="{% static 'css/3party/jquery.contextMenu.min.css' %}" media="all"/> | |||
12 | <link rel="stylesheet" type="text/css" href="{% static theme_css %}" media="all"/> |
|
13 | <link rel="stylesheet" type="text/css" href="{% static theme_css %}" media="all"/> | |
13 |
|
14 | |||
14 | {% if rss_url %} |
|
15 | {% if rss_url %} | |
15 | <link rel="alternate" type="application/rss+xml" href="{{ rss_url }}" title="{% trans 'Feed' %}"/> |
|
16 | <link rel="alternate" type="application/rss+xml" href="{{ rss_url }}" title="{% trans 'Feed' %}"/> | |
16 | {% endif %} |
|
17 | {% endif %} | |
17 |
|
18 | |||
18 | <link rel="icon" type="image/png" |
|
19 | <link rel="icon" type="image/png" | |
19 | href="{% static 'favicon.png' %}"> |
|
20 | href="{% static 'favicon.png' %}"> | |
20 |
|
21 | |||
21 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
|
22 | <meta name="viewport" content="width=device-width, initial-scale=1"/> | |
22 | <meta charset="utf-8"/> |
|
23 | <meta charset="utf-8"/> | |
23 |
|
24 | |||
24 | {% block head %}{% endblock %} |
|
25 | {% block head %}{% endblock %} | |
25 | </head> |
|
26 | </head> | |
26 | <body data-image-viewer="{{ image_viewer }}" |
|
27 | <body data-image-viewer="{{ image_viewer }}" | |
27 | data-pow-difficulty="{{ pow_difficulty }}" |
|
28 | data-pow-difficulty="{{ pow_difficulty }}" | |
28 | data-update-script="{% static 'js/updates.js' %}"> |
|
29 | data-update-script="{% static 'js/updates.js' %}"> | |
29 | <script src="{% static 'js/jquery-2.2.0.min.js' %}"></script> |
|
30 | <script src="{% static 'js/jquery-2.2.0.min.js' %}"></script> | |
30 |
|
31 | |||
31 | <header class="navigation_panel"> |
|
32 | <header class="navigation_panel"> | |
32 | <a class="link" href="{% url 'landing' %}">{{ site_name }}</a> |
|
33 | <a class="link" href="{% url 'landing' %}">{{ site_name }}</a> | |
33 | <a href="{% url 'index' %}" title="{% trans "All threads" %}">~~~</a>, |
|
34 | <a href="{% url 'index' %}" title="{% trans "All threads" %}">~~~</a>, | |
34 | {% if tags_str %} |
|
35 | {% if tags_str %} | |
35 | <form action="{% url 'index' %}" method="post" class="post-button-form">{% csrf_token %} |
|
36 | <form action="{% url 'index' %}" method="post" class="post-button-form">{% csrf_token %} | |
36 | {% if only_favorites %} |
|
37 | {% if only_favorites %} | |
37 | <button name="method" value="toggle_fav" class="fav">★</button>, |
|
38 | <button name="method" value="toggle_fav" class="fav">★</button>, | |
38 | {% else %} |
|
39 | {% else %} | |
39 | <button name="method" value="toggle_fav" class="not_fav">★</button>, |
|
40 | <button name="method" value="toggle_fav" class="not_fav">★</button>, | |
40 | {% endif %} |
|
41 | {% endif %} | |
41 | </form> |
|
42 | </form> | |
42 | {{ tags_str|safe }}, |
|
43 | {{ tags_str|safe }}, | |
43 | {% endif %} |
|
44 | {% endif %} | |
44 | <a href="{% url 'tags' %}" title="{% trans 'Tag management' %}">{% trans "tags" %}</a>, |
|
45 | <a href="{% url 'tags' %}" title="{% trans 'Tag management' %}">{% trans "tags" %}</a>, | |
45 | <a href="{% url 'search' %}" title="{% trans 'Search' %}">{% trans 'search' %}</a>, |
|
46 | <a href="{% url 'search' %}" title="{% trans 'Search' %}">{% trans 'search' %}</a>, | |
46 | <a href="{% url 'feed' %}" title="{% trans 'Feed' %}">{% trans 'feed' %}</a>, |
|
47 | <a href="{% url 'feed' %}" title="{% trans 'Feed' %}">{% trans 'feed' %}</a>, | |
47 | <a href="{% url 'random' %}" title="{% trans 'Random images' %}">{% trans 'images' %}</a>{% if has_fav_threads %}, |
|
48 | <a href="{% url 'random' %}" title="{% trans 'Random images' %}">{% trans 'images' %}</a>{% if has_fav_threads %}, | |
48 |
|
49 | |||
49 | <a href="{% url 'feed' %}?favorites" id="fav-panel-btn">{% trans 'favorites' %} <span id="new-fav-post-count" {% if not new_post_count %}style="display: none" {% endif %}>{{ new_post_count }}</span></a> |
|
50 | <a href="{% url 'feed' %}?favorites" id="fav-panel-btn">{% trans 'favorites' %} <span id="new-fav-post-count" {% if not new_post_count %}style="display: none" {% endif %}>{{ new_post_count }}</span></a> | |
50 | {% endif %} |
|
51 | {% endif %} | |
51 |
|
52 | |||
52 | {% if usernames %} |
|
53 | {% if usernames %} | |
53 | <a class="right-link link" href="{% url 'notifications' %}" title="{% trans 'Notifications' %}"> |
|
54 | <a class="right-link link" href="{% url 'notifications' %}" title="{% trans 'Notifications' %}"> | |
54 | {% trans 'Notifications' %} |
|
55 | {% trans 'Notifications' %} | |
55 | {% ifnotequal new_notifications_count 0 %} |
|
56 | {% ifnotequal new_notifications_count 0 %} | |
56 | (<b>{{ new_notifications_count }}</b>) |
|
57 | (<b>{{ new_notifications_count }}</b>) | |
57 | {% endifnotequal %} |
|
58 | {% endifnotequal %} | |
58 | </a> |
|
59 | </a> | |
59 | {% endif %} |
|
60 | {% endif %} | |
60 |
|
61 | |||
61 | <a class="right-link link" href="{% url 'settings' %}">{% trans 'Settings' %}</a> |
|
62 | <a class="right-link link" href="{% url 'settings' %}">{% trans 'Settings' %}</a> | |
62 | </header> |
|
63 | </header> | |
63 |
|
64 | |||
64 | <div id="fav-panel"><div class="post">{% trans "Loading..." %}</div></div> |
|
65 | <div id="fav-panel"><div class="post">{% trans "Loading..." %}</div></div> | |
65 |
|
66 | |||
|
67 | <script src="{% static 'js/3party/jquery-ui.min.js' %}"></script> | |||
|
68 | <script src="{% static 'js/3party/jquery.contextMenu.min.js' %}"></script> | |||
|
69 | ||||
66 | {% block content %}{% endblock %} |
|
70 | {% block content %}{% endblock %} | |
67 |
|
71 | |||
68 | <script src="{% static 'js/3party/jquery-ui.min.js' %}"></script> |
|
|||
69 | <script src="{% static 'js/jquery.mousewheel.js' %}"></script> |
|
72 | <script src="{% static 'js/jquery.mousewheel.js' %}"></script> | |
70 | <script src="{% static 'js/3party/highlight.min.js' %}"></script> |
|
73 | <script src="{% static 'js/3party/highlight.min.js' %}"></script> | |
71 |
|
74 | |||
72 | <script src="{% url 'js_info_dict' %}"></script> |
|
75 | <script src="{% url 'js_info_dict' %}"></script> | |
73 |
|
76 | |||
74 | <script src="{% static 'js/popup.js' %}"></script> |
|
77 | <script src="{% static 'js/popup.js' %}"></script> | |
75 | <script src="{% static 'js/image.js' %}"></script> |
|
78 | <script src="{% static 'js/image.js' %}"></script> | |
76 | <script src="{% static 'js/refpopup.js' %}"></script> |
|
79 | <script src="{% static 'js/refpopup.js' %}"></script> | |
77 | <script src="{% static 'js/main.js' %}"></script> |
|
80 | <script src="{% static 'js/main.js' %}"></script> | |
78 |
|
81 | |||
79 | <footer class="navigation_panel"> |
|
82 | <footer class="navigation_panel"> | |
80 | <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b> |
|
83 | <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b> | |
81 | {% block metapanel %}{% endblock %} |
|
84 | {% block metapanel %}{% endblock %} | |
82 | {% if rss_url %} |
|
85 | {% if rss_url %} | |
83 | [<a href="{{ rss_url }}">RSS</a>] |
|
86 | [<a href="{{ rss_url }}">RSS</a>] | |
84 | {% endif %} |
|
87 | {% endif %} | |
85 | [<a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>] |
|
88 | [<a href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>] | |
86 | [<a href="{% url 'index' %}?order=pub">{% trans 'New threads' %}</a>] |
|
89 | [<a href="{% url 'index' %}?order=pub">{% trans 'New threads' %}</a>] | |
87 | {% with ppd=posts_per_day|floatformat:2 %} |
|
90 | {% with ppd=posts_per_day|floatformat:2 %} | |
88 | {% blocktrans %}Speed: {{ ppd }} posts per day{% endblocktrans %} |
|
91 | {% blocktrans %}Speed: {{ ppd }} posts per day{% endblocktrans %} | |
89 | {% endwith %} |
|
92 | {% endwith %} | |
90 | <a class="link" href="#top" id="up">{% trans 'Up' %}</a> |
|
93 | <a class="link" href="#top" id="up">{% trans 'Up' %}</a> | |
91 | </footer> |
|
94 | </footer> | |
92 |
|
95 | |||
93 | </body> |
|
96 | </body> | |
94 | </html> |
|
97 | </html> |
@@ -1,112 +1,140 b'' | |||||
1 | {% load i18n %} |
|
1 | {% load i18n %} | |
2 | {% load board %} |
|
2 | {% load board %} | |
3 |
|
3 | |||
4 | {% get_current_language as LANGUAGE_CODE %} |
|
4 | {% get_current_language as LANGUAGE_CODE %} | |
5 |
|
5 | |||
6 | <div class="{{ css_class }}" id="{{ post.id }}" data-uid="{{ post.uid }}" {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}> |
|
6 | <div class="{{ css_class }}" id="{{ post.id }}" data-uid="{{ post.uid }}" {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}> | |
7 | <div class="post-info"> |
|
7 | <div class="post-info"> | |
8 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.id }}</a> |
|
8 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.id }}</a> | |
9 | <span class="title">{{ post.title }}</span> |
|
9 | <span class="title">{{ post.title }}</span> | |
10 | {% if perms.boards.change_post and post.has_ip %} |
|
10 | {% if perms.boards.change_post and post.has_ip %} | |
11 | <a href="{% url 'feed' %}?ip={{ post.poster_ip }}">*</a> |
|
11 | <a href="{% url 'feed' %}?ip={{ post.poster_ip }}">*</a> | |
12 | <span class="pub_time" style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}"> |
|
12 | <span class="pub_time" style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}"> | |
13 | {% else %} |
|
13 | {% else %} | |
14 | <span class="pub_time"> |
|
14 | <span class="pub_time"> | |
15 | {% endif %} |
|
15 | {% endif %} | |
16 | <time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span> |
|
16 | <time datetime="{{ post.pub_time|date:'c' }}">{{ post.pub_time }}</time></span> | |
17 | {% if post.tripcode %} |
|
17 | {% if post.tripcode %} | |
18 | / |
|
18 | / | |
19 | {% with tripcode=post.get_tripcode %} |
|
19 | {% with tripcode=post.get_tripcode %} | |
20 | <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}" |
|
20 | <a href="{% url 'feed' %}?tripcode={{ tripcode.get_full_text }}" | |
21 | class="tripcode" title="{{ tripcode.get_full_text }}" |
|
21 | class="tripcode" title="{{ tripcode.get_full_text }}" | |
22 | style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a> |
|
22 | style="border: solid 2px #{{ tripcode.get_color }}; border-left: solid 1ex #{{ tripcode.get_color }};">{{ tripcode.get_short_text }}</a> | |
23 | {% endwith %} |
|
23 | {% endwith %} | |
24 | {% endif %} |
|
24 | {% endif %} | |
25 | {% comment %} |
|
25 | {% comment %} | |
26 | Thread death time needs to be shown only if the thread is alredy archived |
|
26 | Thread death time needs to be shown only if the thread is alredy archived | |
27 | and this is an opening post (thread death time) or a post for popup |
|
27 | and this is an opening post (thread death time) or a post for popup | |
28 | (we don't see OP here so we show the death time in the post itself). |
|
28 | (we don't see OP here so we show the death time in the post itself). | |
29 | {% endcomment %} |
|
29 | {% endcomment %} | |
30 | {% if is_opening and thread.is_archived %} |
|
30 | {% if is_opening and thread.is_archived %} | |
31 | — <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time> |
|
31 | — <time datetime="{{ thread.bump_time|date:'c' }}">{{ thread.bump_time }}</time> | |
32 | {% endif %} |
|
32 | {% endif %} | |
33 | {% if is_opening %} |
|
33 | {% if is_opening %} | |
34 | {% if need_open_link %} |
|
34 | {% if need_open_link %} | |
35 | {% if thread.is_archived %} |
|
35 | {% if thread.is_archived %} | |
36 | <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a> |
|
36 | <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a> | |
37 | {% else %} |
|
37 | {% else %} | |
38 | <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a> |
|
38 | <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a> | |
39 | {% endif %} |
|
39 | {% endif %} | |
40 | {% endif %} |
|
40 | {% endif %} | |
41 | {% else %} |
|
41 | {% else %} | |
42 | {% if need_op_data %} |
|
42 | {% if need_op_data %} | |
43 | {% with thread.get_opening_post as op %} |
|
43 | {% with thread.get_opening_post as op %} | |
44 | {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span> |
|
44 | {% trans " in " %}{{ op.get_link_view|safe }} <span class="title">{{ op.get_title_or_text }}</span> | |
45 | {% endwith %} |
|
45 | {% endwith %} | |
46 | {% endif %} |
|
46 | {% endif %} | |
47 | {% endif %} |
|
47 | {% endif %} | |
48 | {% if reply_link and not thread.is_archived %} |
|
48 | {% if reply_link and not thread.is_archived %} | |
49 | <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> |
|
49 | <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a> | |
50 | {% endif %} |
|
50 | {% endif %} | |
51 |
|
51 | |||
52 | {% if perms.boards.change_post or perms.boards.delete_post or perms.boards.change_thread or perms_boards.delete_thread %} |
|
52 | {% if perms.boards.change_post or perms.boards.delete_post or perms.boards.change_thread or perms_boards.delete_thread %} | |
53 | <span class="moderator_info"> |
|
53 | <a class="moderation-menu" href="#">{% trans 'Moderation' %}</a> | |
54 | {% if perms.boards.change_post or perms.boards.delete_post %} |
|
54 | <script> | |
55 | | <a href="{% url 'admin:boards_post_change' post.id %}">{% trans 'Edit' %}</a> |
|
55 | $.contextMenu({ | |
56 | {% endif %} |
|
56 | selector: '#{{ post.id }} .moderation-menu', | |
57 | {% if perms.boards.change_thread or perms_boards.delete_thread %} |
|
57 | trigger: 'left', | |
58 |
|
|
58 | items: { | |
59 | | <a href="{% url 'admin:boards_thread_change' thread.id %}">{% trans 'Edit thread' %}</a> |
|
59 | edit: { | |
60 | | <a href="{% url 'admin:boards_thread_delete' thread.id %}">{% trans 'Delete thread' %}</a> |
|
60 | name: '{% trans "Edit" %}', | |
61 | {% else %} |
|
61 | callback: function(key, opt) { | |
62 |
|
|
62 | window.location = '{% url 'admin:boards_post_change' post.id %}'; | |
63 |
|
|
63 | }, | |
64 | {% endif %} |
|
64 | visible: {% if perms.boards.change_post %}true{% else %}false{% endif %} | |
65 | {% if post.global_id_id %} |
|
65 | }, | |
66 | | <a href="{% url 'post_sync_data' post.id %}">RAW</a> |
|
66 | deletePost: { | |
67 | {% endif %} |
|
67 | name: '{% trans "Delete post" %}', | |
68 | </span> |
|
68 | callback: function(key, opt) { | |
|
69 | window.location = '{% url 'admin:boards_post_delete' post.id %}'; | |||
|
70 | }, | |||
|
71 | visible: {% if not is_opening and perms.boards.delete_post %}true{% else %}false{% endif %} | |||
|
72 | }, | |||
|
73 | editThread: { | |||
|
74 | name: '{% trans "Edit thread" %}', | |||
|
75 | callback: function(key, opt) { | |||
|
76 | window.location = '{% url 'admin:boards_thread_change' thread.id %}'; | |||
|
77 | }, | |||
|
78 | visible: {% if is_opening and perms.boards.change_thread %}true{% else %}false{% endif %} | |||
|
79 | }, | |||
|
80 | deleteThread: { | |||
|
81 | name: '{% trans "Delete thread" %}', | |||
|
82 | callback: function(key, opt) { | |||
|
83 | window.location = '{% url 'admin:boards_thread_delete' thread.id %}'; | |||
|
84 | }, | |||
|
85 | visible: {% if is_opening and perms.boards.delete_thread %}true{% else %}false{% endif %} | |||
|
86 | }, | |||
|
87 | raw: { | |||
|
88 | name: 'RAW', | |||
|
89 | callback: function(key, opt) { | |||
|
90 | window.location = '{% url 'post_sync_data' post.id %}'; | |||
|
91 | }, | |||
|
92 | visible: {% if post.global_id_id %}true{% else %}false{% endif %} | |||
|
93 | } | |||
|
94 | } | |||
|
95 | }); | |||
|
96 | </script> | |||
69 | {% endif %} |
|
97 | {% endif %} | |
70 | </div> |
|
98 | </div> | |
71 | {% comment %} |
|
99 | {% comment %} | |
72 | Post images. Currently only 1 image can be posted and shown, but post model |
|
100 | Post images. Currently only 1 image can be posted and shown, but post model | |
73 | supports multiple. |
|
101 | supports multiple. | |
74 | {% endcomment %} |
|
102 | {% endcomment %} | |
75 | {% for image in post.images.all %} |
|
103 | {% for image in post.images.all %} | |
76 | {{ image.get_view|safe }} |
|
104 | {{ image.get_view|safe }} | |
77 | {% endfor %} |
|
105 | {% endfor %} | |
78 | {% for file in post.attachments.all %} |
|
106 | {% for file in post.attachments.all %} | |
79 | {{ file.get_view|safe }} |
|
107 | {{ file.get_view|safe }} | |
80 | {% endfor %} |
|
108 | {% endfor %} | |
81 | {% comment %} |
|
109 | {% comment %} | |
82 | Post message (text) |
|
110 | Post message (text) | |
83 | {% endcomment %} |
|
111 | {% endcomment %} | |
84 | <div class="message"> |
|
112 | <div class="message"> | |
85 | {% if truncated %} |
|
113 | {% if truncated %} | |
86 | {{ post.get_text|truncatewords_html:50|truncatenewlines_html:3|safe }} |
|
114 | {{ post.get_text|truncatewords_html:50|truncatenewlines_html:3|safe }} | |
87 | {% else %} |
|
115 | {% else %} | |
88 | {{ post.get_text|safe }} |
|
116 | {{ post.get_text|safe }} | |
89 | {% endif %} |
|
117 | {% endif %} | |
90 | </div> |
|
118 | </div> | |
91 | {% if post.is_referenced and not mode_tree %} |
|
119 | {% if post.is_referenced and not mode_tree %} | |
92 | <div class="refmap"> |
|
120 | <div class="refmap"> | |
93 | {% trans "Replies" %}: {{ post.refmap|safe }} |
|
121 | {% trans "Replies" %}: {{ post.refmap|safe }} | |
94 | </div> |
|
122 | </div> | |
95 | {% endif %} |
|
123 | {% endif %} | |
96 | {% comment %} |
|
124 | {% comment %} | |
97 | Thread metadata: counters, tags etc |
|
125 | Thread metadata: counters, tags etc | |
98 | {% endcomment %} |
|
126 | {% endcomment %} | |
99 | {% if is_opening %} |
|
127 | {% if is_opening %} | |
100 | <div class="metadata"> |
|
128 | <div class="metadata"> | |
101 | {% if need_open_link %} |
|
129 | {% if need_open_link %} | |
102 | ♥ {{ thread.get_reply_count }} |
|
130 | ♥ {{ thread.get_reply_count }} | |
103 | ❄ {{ thread.get_images_count }} |
|
131 | ❄ {{ thread.get_images_count }} | |
104 | <a href="{% url 'thread_gallery' post.id %}">G</a> |
|
132 | <a href="{% url 'thread_gallery' post.id %}">G</a> | |
105 | <a href="{% url 'thread_tree' post.id %}">T</a> |
|
133 | <a href="{% url 'thread_tree' post.id %}">T</a> | |
106 | {% endif %} |
|
134 | {% endif %} | |
107 | <span class="tags"> |
|
135 | <span class="tags"> | |
108 | {{ thread.get_tag_url_list|safe }} |
|
136 | {{ thread.get_tag_url_list|safe }} | |
109 | </span> |
|
137 | </span> | |
110 | </div> |
|
138 | </div> | |
111 | {% endif %} |
|
139 | {% endif %} | |
112 | </div> |
|
140 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now