Commit 7961f28a by Kálmán Viktor

dashboard: ssh key spacing fixes

parent 8f05251d
...@@ -145,10 +145,10 @@ ...@@ -145,10 +145,10 @@
</dl> </dl>
{% if op.mount_store %} {% if op.mount_store %}
<strong>{% trans "Store" %}</strong> <dl>
<p> <dt>{% trans "Store" %}</dt>
{{ op.mount_store.description }} <dd>{{ op.mount_store.description }}</dd>
</p> <dd>
<div class="operation-wrapper"> <div class="operation-wrapper">
<a href="{{ op.mount_store.get_url }}" class="btn btn-info btn-xs operation" <a href="{{ op.mount_store.get_url }}" class="btn btn-info btn-xs operation"
{% if op.mount_store.disabled %}disabled{% endif %}> {% if op.mount_store.disabled %}disabled{% endif %}>
...@@ -156,9 +156,14 @@ ...@@ -156,9 +156,14 @@
{{ op.mount_store.name }} {{ op.mount_store.name }}
</a> </a>
</div> </div>
</dd>
</dl>
{% endif %} {% endif %}
{% if op.install_keys %} {% if op.install_keys %}
<strong>{% trans "SSH keys" %}</strong> <dl>
<dt>{% trans "SSH keys" %}</dt>
<dd>{{ op.install_keys.description }}</dd>
<dd>
<div class="operation-wrapper"> <div class="operation-wrapper">
<a href="{{ op.install_keys.get_url }}" class="btn btn-info btn-xs operation" <a href="{{ op.install_keys.get_url }}" class="btn btn-info btn-xs operation"
{% if op.install_keys.disabled %}disabled{% endif %}> {% if op.install_keys.disabled %}disabled{% endif %}>
...@@ -166,6 +171,8 @@ ...@@ -166,6 +171,8 @@
{{ op.install_keys.name }} {{ op.install_keys.name }}
</a> </a>
</div> </div>
</dd>
</dl>
{% endif %} {% endif %}
</div> </div>
<div class="col-md-8"> <div class="col-md-8">
......
...@@ -1423,6 +1423,8 @@ class PasswordResetOperation(RemoteAgentOperation): ...@@ -1423,6 +1423,8 @@ class PasswordResetOperation(RemoteAgentOperation):
class InstallKeysOperation(RemoteAgentOperation): class InstallKeysOperation(RemoteAgentOperation):
id = 'install_keys' id = 'install_keys'
name = _("install SSH keys") name = _("install SSH keys")
description = _("Copy your public keys to the virtual machines. "
"Only works on UNIX-like operating systems.")
acl_level = "user" acl_level = "user"
task = agent_tasks.add_keys task = agent_tasks.add_keys
required_perms = () required_perms = ()
......
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