Commit 6758aa74 by Bence Dányi

webui: add title for cpu/ram/etc icons

fixes #113
parent a66d7e38
...@@ -84,9 +84,9 @@ ...@@ -84,9 +84,9 @@
{% trans "Size" %}: {% trans "Size" %}:
<span class="value"> <span class="value">
{{s.template.instance_type.name}} {{s.template.instance_type.name}}
<span class="cpu">{{s.template.instance_type.CPU}}</span> <span title="{% trans 'CPU cores' %}" class="cpu">{{s.template.instance_type.CPU}}</span>
<span class="memory">{{s.template.instance_type.RAM}}</span> <span title="{% trans 'RAM' %}" class="memory">{{s.template.instance_type.RAM}}</span>
<span class="credit">{{s.template.instance_type.credit}}</span> <span title="{% trans 'Credit' %}" class="credit">{{s.template.instance_type.credit}}</span>
</span> </span>
</li> </li>
<li class="share-type"> <li class="share-type">
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
{% for s in sizes %} {% for s in sizes %}
<p id="new-template-size-summary-{{s.id}}" class="size-summary clear" <p id="new-template-size-summary-{{s.id}}" class="size-summary clear"
{% if s != base.instance_type %}style="display:none"{% endif %}> {% if s != base.instance_type %}style="display:none"{% endif %}>
<span class="cpu"> <span title="{% trans 'CPU cores' %}" class="cpu">
{% blocktrans count n=s.CPU %}{{n}} core{% plural %}{{n}} cores{% endblocktrans %} {% blocktrans count n=s.CPU %}{{n}} core{% plural %}{{n}} cores{% endblocktrans %}
</span> </span>
<span class="memory">{{s.RAM}} MiB</span> <span title="{% trans 'RAM' %}" class="memory">{{s.RAM}} MiB</span>
<span class="credit">{{s.credit}}</span> <span title="{% trans 'Credit' %}" class="credit">{{s.credit}}</span>
</p> </p>
{% endfor %} {% endfor %}
<div class="clear"></div> <div class="clear"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment