- add sshkeys to hostingpackage detail view context - implement new osusers.forms.EditSshPublicKeyCommentForm - implement new views ListSshPublicKeys, DeleteSshPublicKey and EditSshPublicKeyComment - add new URL patterns 'list_ssh_keys', 'edit_ssh_key_comment' and 'delete_ssh_key' - link from hosting package detail view to 'list_ssh_keys' when there are SSH keys assigned to the shown hosting package - add new templates osusers/sshpublickey_list.html, osusers/sshpublickey_confirm_delete.html and osusers/sshpublickey_edit_comment - add operating system user output to template osusers/sshpublickey_create.html - add changelog entry
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "osusers/base.html" %}
 | |
| {% load i18n crispy_forms_tags %}
 | |
| 
 | |
| {% block title %}{{ block.super }} - {% spaceless %}
 | |
| {% if user == customer %}
 | |
| {% blocktrans %}SSH Public Keys for Operating System User {{ osuser }}{% endblocktrans %}
 | |
| {% else %}
 | |
| {% blocktrans with full_name=customer.get_full_name %}SSH Public Keys for Operating System User {{ osuser }} of Customer {{ full_name }}{% endblocktrans %}
 | |
| {% endif %}
 | |
| {% endspaceless %}{% endblock title %}
 | |
| 
 | |
| {% block page_title %}{% spaceless %}
 | |
| {% if user == customer %}
 | |
| {% blocktrans %}SSH Public Keys <small>for Operating System User {{ osuser }}</small>{% endblocktrans %}
 | |
| {% else %}
 | |
| {% blocktrans with full_name=customer.get_full_name %}SSH Public Keys <small>for Operating System User {{ osuser }} of Customer {{ full_name }}</small>{% endblocktrans %}
 | |
| {% endif %}
 | |
| {% endspaceless %}{% endblock page_title %}
 | |
| 
 | |
| {% block content %}
 | |
| {% if keys %}
 | |
| <table class="table">
 | |
|   <thead>
 | |
|     <tr>
 | |
|       <th class="name-column">{% trans "Algorithm" %}</th>
 | |
|       <th>{% trans "Comment" %}</th>
 | |
|       <th title="{% trans "SSH public key actions" %}" class="actions-column"><span class="sr-only">{% trans "Actions" %}</span></th>
 | |
|     </tr>
 | |
|   </thead>
 | |
|   <tbody>
 | |
|     {% for key in keys %}
 | |
|     <tr>
 | |
|       <td>{{ key.algorithm }}</td>
 | |
|       <td>{{ key.comment }}</td>
 | |
|       <td>
 | |
|         <a href="{% url 'delete_ssh_key' package=hostingpackage.id pk=key.id %}" title="{% trans "Delete this SSH public key" %}"><i class="glyphicon glyphicon-trash"></i><span class="sr-only"> {% trans "Delete" %}</span></a>
 | |
|         <a href="{% url 'edit_ssh_key_comment' package=hostingpackage.id pk=key.id %}" title="{% trans "Edit this SSH public key's comment" %}"><i class="glyphicon glyphicon-pencil"></i><span class="sr-only"> {% trans "Edit Comment" %}</span></a>
 | |
|       </td>
 | |
|     </tr>
 | |
|     {% endfor %}
 | |
|   </tbody>
 | |
| </table>
 | |
| {% else %}
 | |
| <p class="bg-warning">{% trans "There are now SSH public keys set for this operating system user yet." %}</p>
 | |
| {% endif %}
 | |
| <p><a href="{% url 'add_ssh_key' package=hostingpackage.id %}" class="btn btn-primary">{% trans "Add SSH public key" %}</a></p>
 | |
| {% endblock content %}
 |