Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
4ee872e4ce
11 files changed
+248
-78
No files matched your search
@@ -1,9 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Bootstrap Responsive v2.3.2
|
|
||||||
*
|
|
||||||
* Copyright 2013 Twitter, Inc
|
|
||||||
* Licensed under the Apache License v2.0
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Designed and built with all the love in the world by @mdo and @fat.
|
|
||||||
*/.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}.visible-desktop{display:inherit!important}@media(min-width:768px) and (max-width:979px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}}@media(max-width:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:inherit!important}.hidden-print{display:none!important}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:30px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.564102564102564%;*margin-left:2.5109110747408616%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.564102564102564%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145299145%;*width:91.39979996362975%}.row-fluid .span10{width:82.90598290598291%;*width:82.8527914166212%}.row-fluid .span9{width:74.35897435897436%;*width:74.30578286961266%}.row-fluid .span8{width:65.81196581196582%;*width:65.75877432260411%}.row-fluid .span7{width:57.26495726495726%;*width:57.21176577559556%}.row-fluid .span6{width:48.717948717948715%;*width:48.664757228587014%}.row-fluid .span5{width:40.17094017094017%;*width:40.11774868157847%}.row-fluid .span4{width:31.623931623931625%;*width:31.570740134569924%}.row-fluid .span3{width:23.076923076923077%;*width:23.023731587561375%}.row-fluid .span2{width:14.52991452991453%;*width:14.476723040552828%}.row-fluid .span1{width:5.982905982905983%;*width:5.929714493544281%}.row-fluid .offset12{margin-left:105.12820512820512%;*margin-left:105.02182214948171%}.row-fluid .offset12:first-child{margin-left:102.56410256410257%;*margin-left:102.45771958537915%}.row-fluid .offset11{margin-left:96.58119658119658%;*margin-left:96.47481360247316%}.row-fluid .offset11:first-child{margin-left:94.01709401709402%;*margin-left:93.91071103837061%}.row-fluid .offset10{margin-left:88.03418803418803%;*margin-left:87.92780505546462%}.row-fluid .offset10:first-child{margin-left:85.47008547008548%;*margin-left:85.36370249136206%}.row-fluid .offset9{margin-left:79.48717948717949%;*margin-left:79.38079650845607%}.row-fluid .offset9:first-child{margin-left:76.92307692307693%;*margin-left:76.81669394435352%}.row-fluid .offset8{margin-left:70.94017094017094%;*margin-left:70.83378796144753%}.row-fluid .offset8:first-child{margin-left:68.37606837606839%;*margin-left:68.26968539734497%}.row-fluid .offset7{margin-left:62.393162393162385%;*margin-left:62.28677941443899%}.row-fluid .offset7:first-child{margin-left:59.82905982905982%;*margin-left:59.72267685033642%}.row-fluid .offset6{margin-left:53.84615384615384%;*margin-left:53.739770867430444%}.row-fluid .offset6:first-child{margin-left:51.28205128205128%;*margin-left:51.175668303327875%}.row-fluid .offset5{margin-left:45.299145299145295%;*margin-left:45.1927623204219%}.row-fluid .offset5:first-child{margin-left:42.73504273504273%;*margin-left:42.62865975631933%}.row-fluid .offset4{margin-left:36.75213675213675%;*margin-left:36.645753773413354%}.row-fluid .offset4:first-child{margin-left:34.18803418803419%;*margin-left:34.081651209310785%}.row-fluid .offset3{margin-left:28.205128205128204%;*margin-left:28.09874522640Line truncated
|
|
||||||
@@ -284,10 +284,6 @@ select.autocomplete {
|
|||||||
* application customization
|
* application customization
|
||||||
* add custom rules
|
* add custom rules
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
|
||||||
padding-top: 70px;
|
|
||||||
}
|
|
||||||
/* web2py logo */
|
/* web2py logo */
|
||||||
#web2py-logo {
|
#web2py-logo {
|
||||||
color: #c6cecc;
|
color: #c6cecc;
|
||||||
@@ -317,18 +313,19 @@ body {
|
|||||||
color: #428bca;
|
color: #428bca;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
max-width: 600px;
|
||||||
|
}
|
||||||
ul.w2p_list {
|
ul.w2p_list {
|
||||||
margin-left: 0px;
|
margin-left: 0;
|
||||||
}
|
padding-left: 0;
|
||||||
input.date,input.time,input.datetime,input.double,input.integer {
|
|
||||||
width: 33.333%;
|
|
||||||
}
|
|
||||||
.container-full {
|
|
||||||
margin: 0 auto; width: 100%;
|
|
||||||
}
|
}
|
||||||
.background {
|
.background {
|
||||||
background: url(../images/background.jpg) no-repeat center center;
|
background: url(../images/background.jpg) no-repeat center center;
|
||||||
}
|
}
|
||||||
|
html {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
padding-top: 50px
|
padding-top: 50px
|
||||||
}
|
}
|
||||||
@@ -347,6 +344,9 @@ footer {
|
|||||||
header h1 {
|
header h1 {
|
||||||
color: white !important; text-shadow: 0 0 7px black;
|
color: white !important; text-shadow: 0 0 7px black;
|
||||||
}
|
}
|
||||||
|
header .jumbotron {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
.nav a, .btn, .btn-default {
|
.nav a, .btn, .btn-default {
|
||||||
text-shadow: none; font-weight: bold;
|
text-shadow: none; font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -363,3 +363,181 @@ header h1 {
|
|||||||
#w2padmin-btn {
|
#w2padmin-btn {
|
||||||
margin:30px 0 30px 0;
|
margin:30px 0 30px 0;
|
||||||
}
|
}
|
||||||
|
.hidden {display:none;visibility:visible}
|
||||||
|
.right {float:right; text-align:right}
|
||||||
|
.left {float:left; text-align:left}
|
||||||
|
.center {width:100%; text-align:center; vertical-align:middle}
|
||||||
|
|
||||||
|
/* fix ie problem with menu */
|
||||||
|
|
||||||
|
td.w2p_fw {padding-bottom:1px}
|
||||||
|
td.w2p_fl,td.w2p_fw,td.w2p_fc {vertical-align:top}
|
||||||
|
td.w2p_fl {text-align:left}
|
||||||
|
td.w2p_fl, td.w2p_fw {padding-right:7px}
|
||||||
|
td.w2p_fl,td.w2p_fc {padding-top:4px}
|
||||||
|
div.w2p_export_menu {margin:5px 0}
|
||||||
|
div.w2p_export_menu a, div.w2p_wiki_tags a, div.w2p_cloud a {margin-left:5px; padding:2px 5px; background-color:#f1f1f1; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;}
|
||||||
|
|
||||||
|
/* tr#submit_record__row {border-top:1px solid #E5E5E5} */
|
||||||
|
#submit_record__row td {padding-top:.5em}
|
||||||
|
|
||||||
|
/* Fix */
|
||||||
|
#auth_user_remember__row label {display:inline}
|
||||||
|
#web2py_user_form td {vertical-align:top}
|
||||||
|
|
||||||
|
div.error_wrapper {display:block}
|
||||||
|
div.error {
|
||||||
|
color:red;
|
||||||
|
padding:5px;
|
||||||
|
display:inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copyright {float:left}
|
||||||
|
#poweredBy {float:right}
|
||||||
|
|
||||||
|
/* #MEDIA QUERIES SECTION */
|
||||||
|
|
||||||
|
/*
|
||||||
|
*Grid
|
||||||
|
*
|
||||||
|
* The default style for SQLFORM.grid even using jquery-iu or another ui framework
|
||||||
|
* will look better with the declarations below
|
||||||
|
* if needed to remove base.css consider keeping these following lines in some css file.
|
||||||
|
*/
|
||||||
|
/* .web2py_table {border:1px solid #ccc} */
|
||||||
|
.web2py_paginator {}
|
||||||
|
.web2py_grid {width:100%}
|
||||||
|
.web2py_grid table {width:100%}
|
||||||
|
.web2py_grid tbody td {padding:2px 5px 2px 5px; vertical-align: middle;}
|
||||||
|
.web2py_grid .web2py_form td {vertical-align: top;}
|
||||||
|
|
||||||
|
.web2py_grid thead th,.web2py_grid tfoot td {
|
||||||
|
background-color:#EAEAEA;
|
||||||
|
padding:10px 5px 10px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_grid tr.odd {background-color:#F9F9F9}
|
||||||
|
.web2py_grid tr:hover {background-color:#F5F5F5}
|
||||||
|
|
||||||
|
/*
|
||||||
|
.web2py_breadcrumbs a {
|
||||||
|
line-height:20px; margin-right:5px; display:inline-block;
|
||||||
|
padding:3px 5px 3px 5px;
|
||||||
|
font-family:'lucida grande',tahoma,verdana,arial,sans-serif;
|
||||||
|
color:#3C3C3D;
|
||||||
|
text-shadow:1px 1px 0 #FFFFFF;
|
||||||
|
white-space:nowrap; overflow:visible; cursor:pointer;
|
||||||
|
background:#ECECEC;
|
||||||
|
border:1px solid #CACACA;
|
||||||
|
-webkit-border-radius:2px; -moz-border-radius:2px;
|
||||||
|
-webkit-background-clip:padding-box; border-radius:2px;
|
||||||
|
outline:none; position:relative; zoom:1; *display:inline;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
.web2py_console form {
|
||||||
|
width: 100%;
|
||||||
|
display: inline;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin: 0 0 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_console form select {
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_search_actions {
|
||||||
|
float:left;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_grid .row_buttons {
|
||||||
|
min-height:25px;
|
||||||
|
vertical-align:middle;
|
||||||
|
}
|
||||||
|
.web2py_grid .row_buttons a {
|
||||||
|
margin:3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_search_actions {
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_grid .row_buttons a,
|
||||||
|
.web2py_paginator ul li a,
|
||||||
|
.web2py_search_actions a,
|
||||||
|
.web2py_console input[type=submit],
|
||||||
|
.web2py_console input[type=button],
|
||||||
|
.web2py_console button {
|
||||||
|
line-height:20px;
|
||||||
|
margin-right:2px; display:inline-block;
|
||||||
|
padding:3px 5px 3px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_counter {
|
||||||
|
margin-top:5px;
|
||||||
|
margin-right:2px;
|
||||||
|
width:35%;
|
||||||
|
float:right;
|
||||||
|
text-align:right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Fix firefox problem*/
|
||||||
|
.web2py_table {clear:both; display:block}
|
||||||
|
|
||||||
|
.web2py_paginator {
|
||||||
|
padding:5px;
|
||||||
|
text-align:right;
|
||||||
|
background-color:#f2f2f2;
|
||||||
|
|
||||||
|
}
|
||||||
|
.web2py_paginator ul {
|
||||||
|
list-style-type:none;
|
||||||
|
margin:0px;
|
||||||
|
padding:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_paginator ul li {
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_paginator .current {
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_breadcrumbs ul {
|
||||||
|
list-style:none;
|
||||||
|
margin-bottom:18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
li.w2p_grid_breadcrumb_elem {
|
||||||
|
display:inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.web2py_console form { vertical-align: middle; }
|
||||||
|
.web2py_console input, .web2py_console select,
|
||||||
|
.web2py_console a { margin: 2px; }
|
||||||
|
|
||||||
|
|
||||||
|
#wiki_page_body {
|
||||||
|
width: 600px;
|
||||||
|
height: auto;
|
||||||
|
min-height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* fix some IE problems */
|
||||||
|
|
||||||
|
.ie-lte7 .topbar .container {z-index:2}
|
||||||
|
.ie-lte8 div.flash{ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#222222', endColorstr='#000000', GradientType=0 ); }
|
||||||
|
.ie-lte8 div.flash:hover {filter:alpha(opacity=25);}
|
||||||
|
.ie9 #w2p_query_panel {padding-bottom:2px}
|
||||||
|
|
||||||
|
.web2py_console .form-control {width: 20%; display: inline;}
|
||||||
|
.web2py_console #w2p_keywords {width: 50%;}
|
||||||
|
.web2py_search_actions a, .web2py_console input[type=submit], .web2py_console input[type=button], .web2py_console button { padding: 6px 12px; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
input.date,input.time,input.datetime,input.double,input.integer {
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
*/
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
|
||||||
|
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
|
||||||
|
*/
|
||||||
|
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.8.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b)&&c(b).matches||!1;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=functioLine truncated
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
/* Modernizr 2.7.1 (Custom Build) | MIT & BSD
|
|
||||||
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexboxlegacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
|
|
||||||
*/
|
|
||||||
;window.Modernizr=function(a,b,c){function C(a){j.cssText=a}function D(a,b){return C(n.join(a+";")+(b||""))}function E(a,b){return typeof a===b}function F(a,b){return!!~(""+a).indexOf(b)}function G(a,b){for(var d in a){var e=a[d];if(!F(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function H(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:E(f,"function")?f.bind(d||b):f}return!1}function I(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return E(b,"string")||E(b,"undefined")?G(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),H(e,b,c))}function J(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=E(e[d],"function"),E(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),A={}.hasOwnProperty,B;!E(A,"undefined")&&!E(A.call,"undefined")?B=function(a,b){return A.call(a,b)}:B=function(a,b){return b in a&&E(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return I("flexWrap")},s.flexboxlegacy=function(){return I("boxDirection")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!E(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!I("indexedDB",a)},s.hashchange=function(){return z("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return C("background-color:rgba(150,255,150,.5)"),F(j.backgroundColor,"rgba")},s.hsla=function(){return C("background-color:hsla(120,40%,100%,.5)"),F(j.backgroundColor,"rgba")||F(j.backgroundColor,"hsla")},s.multiplebgs=function(){return C("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return I("backgroundSize")},s.borderimage=function(){return I("borderImage")},s.borderradius=function(){return I("borderRadius")},s.boxshadow=function(){return I("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return D("opacity:.55"),/^Line truncated
|
|
||||||
File renamed without changes.
@@ -1,6 +1,17 @@
|
|||||||
{{left_sidebar_enabled,right_sidebar_enabled=False,('message' in globals())}}
|
{{left_sidebar_enabled,right_sidebar_enabled=False,('message' in globals())}}
|
||||||
{{extend 'layout.html'}}
|
{{extend 'layout.html'}}
|
||||||
|
|
||||||
|
{{block header}}
|
||||||
|
<header class="container-fluid background">
|
||||||
|
<div class="jumbotron text-center">
|
||||||
|
{{if response.title:}}
|
||||||
|
<h1>{{=response.title}}
|
||||||
|
<small>{{=response.subtitle or ''}}</small></h1>
|
||||||
|
{{pass}}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
{{if 'message' in globals():}}
|
{{if 'message' in globals():}}
|
||||||
<h2>{{=message}}</h2>
|
<h2>{{=message}}</h2>
|
||||||
<p class="lead">{{=T('How did you get here?')}}</p>
|
<p class="lead">{{=T('How did you get here?')}}</p>
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
<!--[if HTML5]><![endif]-->
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
|
||||||
<!--[if lt IE 7]><html class="ie ie6 ie-lte9 ie-lte8 ie-lte7 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
|
|
||||||
<!--[if IE 7]><html class="ie ie7 ie-lte9 ie-lte8 ie-lte7 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
|
|
||||||
<!--[if IE 8]><html class="ie ie8 ie-lte9 ie-lte8 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
|
|
||||||
<!--[if IE 9]><html class="ie9 ie-lte9 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
|
|
||||||
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="{{=T.accepted_language or 'en'}}"> <!--<![endif]-->
|
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="{{=T.accepted_language or 'en'}}"> <!--<![endif]-->
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@@ -26,23 +20,20 @@
|
|||||||
http://google.com/webmasters -->
|
http://google.com/webmasters -->
|
||||||
<meta name="google-site-verification" content="">
|
<meta name="google-site-verification" content="">
|
||||||
<!-- include stylesheets -->
|
<!-- include stylesheets -->
|
||||||
{{
|
<link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/>
|
||||||
response.files.insert(0,URL('static','css/web2py.css'))
|
<link rel="stylesheet" href="{{=URL('static','css/bootstrap-theme.min.css')}}"/>
|
||||||
response.files.insert(1,URL('static','css/bootstrap.min.css'))
|
<link rel="stylesheet" href="{{=URL('static','css/web2py-bootstrap3.css')}}"/>
|
||||||
response.files.insert(1,URL('static','css/bootstrap-theme.min.css'))
|
|
||||||
response.files.insert(4,URL('static','css/web2py-bootstrap3.css'))
|
|
||||||
}}
|
|
||||||
<!-- All JavaScript at the bottom, except for Modernizr which enables
|
|
||||||
HTML5 elements & feature detects -->
|
|
||||||
<script src="{{=URL('static','js/modernizr.custom.js')}}"></script>
|
|
||||||
<!-- Favicons -->
|
|
||||||
<link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" type="image/x-icon">
|
<link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" type="image/x-icon">
|
||||||
<link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}">
|
<link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}">
|
||||||
{{include 'web2py_ajax.html'}}
|
<!-- All JavaScript at the bottom, except for Modernizr which enables
|
||||||
{{block head}}{{end}}
|
HTML5 elements & feature detects -->
|
||||||
|
<script src="{{=URL('static','js/modernizr-2.8.3.min.js')}}"><script>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="{{=URL('static','js/respond.min.js')}}"></script>
|
<script src="{{=URL('static','js/respond-1.4.2.min.js')}}"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
<!-- Favicons -->
|
||||||
|
{{include 'web2py_ajax.html'}} <!-- this includes jquery.js, calendar.js/.css and web2py.js -->
|
||||||
|
{{block head}}{{end}}
|
||||||
{{
|
{{
|
||||||
# using sidebars need to know what sidebar you want to use
|
# using sidebars need to know what sidebar you want to use
|
||||||
mc0 = 'col-md-12'
|
mc0 = 'col-md-12'
|
||||||
@@ -55,6 +46,7 @@
|
|||||||
}}
|
}}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<!--[if lt IE 8]><p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p><![endif]-->
|
||||||
<div class="flash alert alert-dismissable">{{=response.flash or ''}}</div>
|
<div class="flash alert alert-dismissable">{{=response.flash or ''}}</div>
|
||||||
<!-- Navbar ======================================= -->
|
<!-- Navbar ======================================= -->
|
||||||
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||||
@@ -79,55 +71,48 @@
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<!-- Masthead ===================================== -->
|
<!-- Masthead ===================================== -->
|
||||||
{{if URL()==URL('default','index'):}}
|
{{block header}}
|
||||||
<header class="container-full">
|
{{end}}
|
||||||
<div class="jumbotron text-center background">
|
|
||||||
{{if response.title:}}
|
|
||||||
<h1>{{=response.title}}
|
|
||||||
<small>{{=response.subtitle or ''}}</small></h1>
|
|
||||||
{{pass}}
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
{{pass}}
|
|
||||||
<!-- Main ========================================= -->
|
<!-- Main ========================================= -->
|
||||||
<main class="container" id="content" role="main">
|
<!-- Begin page content -->
|
||||||
<div class="row">
|
<div class="container-fluid">
|
||||||
{{if left_sidebar_enabled:}}
|
{{if left_sidebar_enabled:}}
|
||||||
<!-- left sidebar ---------------------------------------------------------- -->
|
<div class="col-md-3 left-sidebar">
|
||||||
<div class="col-md-3">
|
|
||||||
{{block left_sidebar}}
|
{{block left_sidebar}}
|
||||||
{{end left_sidebar}}
|
<h3>Left Sidebar</h3>
|
||||||
|
<p></p>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{pass}}
|
{{pass}}
|
||||||
<!-- central column -------------------------------------------------------- -->
|
|
||||||
<div class="{{=middle_column}}">
|
<div class="{{=middle_column}}">
|
||||||
{{block center_page}}
|
{{block center}}
|
||||||
{{include}}
|
{{include}}
|
||||||
{{end center_page}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if right_sidebar_enabled:}}
|
{{if right_sidebar_enabled:}}
|
||||||
<!-- right sidebar --------------------------------------------------------- -->
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{{block right_sidebar}}
|
{{block right_sidebar}}
|
||||||
{{end right_sidebar}}
|
<h3>Right Sidebar</h3>
|
||||||
|
<p></p>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{pass}}
|
{{pass}}
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
<!-- Footer ======================================= -->
|
|
||||||
|
|
||||||
<footer class="container-full">
|
|
||||||
<div class="row">
|
|
||||||
{{block footer}}
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<p>{{=T('Copyright')}} © {{=request.now.year}}</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6">
|
|
||||||
<p class="pull-right">{{=T('Powered by')}} <a href="http://www.web2py.com/">web2py</a></p>
|
{{block footer}} <!-- this is default footer -->
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="copyright pull-left">{{=T('Copyright')}} © {{=request.now.year}}</div>
|
||||||
|
<div id="poweredBy" class="pull-right">
|
||||||
|
{{=T('Powered by')}}
|
||||||
|
<a href="http://www.web2py.com/">web2py</a>
|
||||||
</div>
|
</div>
|
||||||
{{end footer}}
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
{{end}}
|
||||||
<!-- The javascript =============================== -->
|
<!-- The javascript =============================== -->
|
||||||
<script src="{{=URL('static','js/bootstrap.min.js')}}"></script>
|
<script src="{{=URL('static','js/bootstrap.min.js')}}"></script>
|
||||||
<script src="{{=URL('static','js/web2py-bootstrap3.js')}}"></script>
|
<script src="{{=URL('static','js/web2py-bootstrap3.js')}}"></script>
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ try:
|
|||||||
os.path.dirname(os.path.abspath(__file__)), "packages", "dal"))
|
os.path.dirname(os.path.abspath(__file__)), "packages", "dal"))
|
||||||
import pydal
|
import pydal
|
||||||
sys.modules['pydal'] = pydal
|
sys.modules['pydal'] = pydal
|
||||||
except:
|
except ImportError:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"web2py depends on pydal, which apparently you have not installed.\n" +
|
"web2py depends on pydal, which apparently you have not installed.\n" +
|
||||||
"Probably you cloned the repository using git without '--recursive'" +
|
"Probably you cloned the repository using git without '--recursive'" +
|
||||||
|
|||||||
@@ -134,6 +134,8 @@ class DAL(pyDAL):
|
|||||||
'rows_render': sqlhtml.represent,
|
'rows_render': sqlhtml.represent,
|
||||||
'rows_xml': sqlhtml.SQLTABLE
|
'rows_xml': sqlhtml.SQLTABLE
|
||||||
}
|
}
|
||||||
|
Field = Field
|
||||||
|
Table = Table
|
||||||
|
|
||||||
#: add web2py contrib drivers to pyDAL
|
#: add web2py contrib drivers to pyDAL
|
||||||
from pydal.drivers import DRIVERS
|
from pydal.drivers import DRIVERS
|
||||||
|
|||||||
+1
-1
Submodule gluon/packages/dal updated: ccda442484...9bc003583a.
+5
-2
@@ -3518,7 +3518,7 @@ class Auth(object):
|
|||||||
self.db(self.table_group().id == group_id).delete()
|
self.db(self.table_group().id == group_id).delete()
|
||||||
self.db(self.table_membership().group_id == group_id).delete()
|
self.db(self.table_membership().group_id == group_id).delete()
|
||||||
self.db(self.table_permission().group_id == group_id).delete()
|
self.db(self.table_permission().group_id == group_id).delete()
|
||||||
self.update_groups()
|
if group_id in self.user_groups: del self.user_groups[group_id]
|
||||||
self.log_event(self.messages.del_group_log, dict(group_id=group_id))
|
self.log_event(self.messages.del_group_log, dict(group_id=group_id))
|
||||||
|
|
||||||
def id_group(self, role):
|
def id_group(self, role):
|
||||||
@@ -3587,6 +3587,9 @@ class Auth(object):
|
|||||||
return record.id
|
return record.id
|
||||||
else:
|
else:
|
||||||
id = membership.insert(group_id=group_id, user_id=user_id)
|
id = membership.insert(group_id=group_id, user_id=user_id)
|
||||||
|
if role:
|
||||||
|
self.user_groups[group_id] = role
|
||||||
|
else:
|
||||||
self.update_groups()
|
self.update_groups()
|
||||||
self.log_event(self.messages['add_membership_log'],
|
self.log_event(self.messages['add_membership_log'],
|
||||||
dict(user_id=user_id, group_id=group_id))
|
dict(user_id=user_id, group_id=group_id))
|
||||||
@@ -3607,7 +3610,7 @@ class Auth(object):
|
|||||||
ret = self.db(membership.user_id
|
ret = self.db(membership.user_id
|
||||||
== user_id)(membership.group_id
|
== user_id)(membership.group_id
|
||||||
== group_id).delete()
|
== group_id).delete()
|
||||||
self.update_groups()
|
if group_id in self.user_groups: del self.user_groups[group_id]
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def has_permission(
|
def has_permission(
|
||||||
|
|||||||
Reference in new issue
Block a user