Commit ef80e5eb by Dányi Bence

webui: vm-creation allowed only on the home page

parent 2a68ca5e
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% for vm in instances %} {% for vm in instances %}
{% include "box/vm/entry.html" %} {% include "box/vm/entry.html" %}
{% endfor %} {% endfor %}
{% else %} {% elif not just_list_vms %}
<div class="tooltip"> <div class="tooltip">
<div class="container"> <div class="container">
<p>{% trans "You have not started any machines yet." %}</p> <p>{% trans "You have not started any machines yet." %}</p>
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if not just_list_vms %}
<li id="new-vm-button" class="entry new small-row"> <li id="new-vm-button" class="entry new small-row">
<div class="summary"> <div class="summary">
<div class="name">{% trans "Start new machine" %}</div> <div class="name">{% trans "Start new machine" %}</div>
...@@ -102,6 +103,7 @@ ...@@ -102,6 +103,7 @@
</ul> </ul>
</div> </div>
</li> </li>
{% endif %}
<li class="entry small"> <li class="entry small">
<div class="summary"> <div class="summary">
<div class="quota"> <div class="quota">
......
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