mirror of
https://github.com/krateng/maloja.git
synced 2025-04-15 16:30:32 +03:00
Design
This commit is contained in:
parent
4969d9c035
commit
abc48a04c8
@ -43,6 +43,7 @@ if malojaconfig['USE_GLOBAL_CACHE']:
|
||||
conn = None
|
||||
global hits, misses
|
||||
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:
|
||||
return cache[key]
|
||||
|
@ -19,6 +19,10 @@
|
||||
</a>
|
||||
{%- endfor %}
|
||||
|
||||
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
|
||||
<span class="spacer" ></span>
|
||||
{% endif %}
|
||||
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
@ -40,6 +44,10 @@
|
||||
{%- endif %}
|
||||
</span>
|
||||
|
||||
{% if info.topweeks > 0 %}
|
||||
<span class="spacer" ></span>
|
||||
{% endif %}
|
||||
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
|
@ -20,6 +20,10 @@
|
||||
</a>
|
||||
{%- endfor %}
|
||||
|
||||
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
|
||||
<span class="spacer" ></span>
|
||||
{% endif %}
|
||||
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
@ -42,6 +46,10 @@
|
||||
{%- endif %}
|
||||
</span>
|
||||
|
||||
{% if info.topweeks > 0 %}
|
||||
<span class="spacer" ></span>
|
||||
{% endif %}
|
||||
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
|
@ -17,6 +17,10 @@
|
||||
</a>
|
||||
{%- endfor %}
|
||||
|
||||
{% if info.medals.gold or info.medals.silver or info.medals.bronze %}
|
||||
<span class="spacer" ></span>
|
||||
{% endif %}
|
||||
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
@ -39,6 +43,10 @@
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
{% if info.topweeks > 0 %}
|
||||
<span class="spacer" ></span>
|
||||
{% endif %}
|
||||
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
|
@ -74,6 +74,11 @@ table.top_info td.text table.image_row td:hover {
|
||||
}
|
||||
|
||||
|
||||
span.spacer {
|
||||
width: 9px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** SCROLLBAR **/
|
||||
|
Loading…
x
Reference in New Issue
Block a user