forked from madcowfred/evething
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.html
More file actions
15 lines (13 loc) · 1.03 KB
/
Copy pathcommon.html
File metadata and controls
15 lines (13 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% macro skill_hover(skill, level='', extra_class='') -%}
<span class="skill-hover {{ extra_class}}" rel="popover" title="{{ skill.item.name }}" data-content="{{ skill }}">{{ skill.item.name }}{% if level %} {{ level|roman }}{% endif %}</span>
{%- endmacro %}
{% macro span(text, span_class='') -%}
{% if span_class -%}
<span class="{{ span_class }}">{{ text }}</span>
{%- else -%}
{{ text }}
{%- endif %}
{%- endmacro %}
{% macro security_hover(security, round=2) -%}
<span class="small pull-right sensitive security-status {% if security <= -2.0 %}text-warning{%- else %}text-success{%- endif %}" rel="popover" title="{%- if security <= -2.0 %}Will be attacked {% if security <= -5.0 %}anywhere in highsec{% else %} in {% if security <= -4.5 %}0.5{% elif security <= -4.0 %}0.6{% elif security <= -3.5 %}0.7{% elif security <= -3.0 %}0.8{% elif security <= -2.5 %}0.9{% elif security <= -2.0 %}1.0{%- endif %} systems and above{% endif %}{%- else %}No travel restrictions{% endif %}" data-content="asdf">{{ security|round(round) }}</span>
{%- endmacro %}