mirror of
https://github.com/krateng/maloja.git
synced 2025-06-17 23:51:31 +03:00
Design
This commit is contained in:
parent
4969d9c035
commit
abc48a04c8
@ -43,6 +43,7 @@ if malojaconfig['USE_GLOBAL_CACHE']:
|
|||||||
conn = None
|
conn = None
|
||||||
global hits, misses
|
global hits, misses
|
||||||
key = (serialize(args),serialize(kwargs), inner_func, kwargs.get("since"), kwargs.get("to"))
|
key = (serialize(args),serialize(kwargs), inner_func, kwargs.get("since"), kwargs.get("to"))
|
||||||
|
# TODO: also factor in default values to get better chance of hits
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return cache[key]
|
return cache[key]
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
</a>
|
</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
|
||||||
|
<span class="spacer" ></span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
|
||||||
@ -40,6 +44,10 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% if info.topweeks > 0 %}
|
||||||
|
<span class="spacer" ></span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
</a>
|
</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
|
||||||
|
<span class="spacer" ></span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
|
||||||
@ -42,6 +46,10 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% if info.topweeks > 0 %}
|
||||||
|
<span class="spacer" ></span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
</a>
|
</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
|
||||||
|
<span class="spacer" ></span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
|
||||||
@ -39,6 +43,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{% if info.topweeks > 0 %}
|
||||||
|
<span class="spacer" ></span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,6 +74,11 @@ table.top_info td.text table.image_row td:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
span.spacer {
|
||||||
|
width: 9px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** SCROLLBAR **/
|
/** SCROLLBAR **/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user