##// END OF EJS Templates
goto-switcher: optimized performance and query capabilities....
goto-switcher: optimized performance and query capabilities. - Previous implementation had on significant bug. The use of LIMIT 20 was limiting results BEFORE auth checks. In case of large ammount of similarly named repositories user didn't had access too, the result goto search was empty. This was becuase first 20 items fetched didn't pass permission checks and final auth list was empty. To fix this we now use proper filtering for auth using SQL. It means we first check user allowed repositories, and add this as a filter so end result from database is already to only the accessible repositories.

File last commit:

r1143:7bd159d9 default
r2038:2bdf9d4d default
Show More
helpers.less
88 lines | 1.4 KiB | text/x-less | LessCssLexer
//--- RESETS ---//
:focus { outline: none; }
a { cursor: pointer; }
//--- clearfix --//
.clearfix {
&:before,
&:after {
content:"";
width: 100%;
clear: both;
float: left;
}
}
.clearinner:after { /* clears all floating divs inside a block */
content: "";
display: table;
clear: both;
}
.js-template { /* mark a template for javascript use */
display: none;
}
.linebreak {
display: block;
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;
}
.block-left {
float: left;
}
.block-right {
float: right;
clear: right;
li:before { content:none; }
}
//--- DEVICE-SPECIFIC CLASSES ---------------//
//regular tablet and up
@media (min-width:768px) {
.no-mobile {
display: block;
}
.mobile-only {
display: none;
}
}
//small tablet and phone
@media (max-width:767px) {
.mobile-only {
display: block;
}
.no-mobile {
display: none;
}
}
//--- STICKY FOOTER ---//
html, body {
height: 100%;
margin: 0;
}
.outerwrapper {
height: 100%;
min-height: 100%;
margin: 0;
padding-bottom: 3em; /* must be equal to footer height */
}
.outerwrapper:after{
content:" ";
}
#footer {
clear: both;
position: relative;
height: 3em; /* footer height */
margin: -3em 0 0; /* must be equal to footer height */
}