{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "User" %} - {{ user }}{% endblock %}
{% block content %}
            
            
                
                    {% include 'create_user_inst_block.html' %}
                    
                
             
            
            {% include 'errors_block.html' %}
            {% if request.user.is_superuser and publickeys %}
            
                
                    
                        
                            
                                
                                    | {% trans "Key name" %} | {% trans "Public key" %} | 
                            
                            
                            {% for publickey in publickeys %}
                                
                                | {{ publickey.keyname }} | {{ publickey.keypublic|truncatechars:64 }} | 
                            {% endfor %}
                            
                        
                     
                 
             
            {% endif %}
            
            
                
                    {% if not user_insts %}
                        
                            
                                
                                 {% trans "Warning:" %} {% trans "User doesn't have any Instace" %}
                            
                         
                    {% else %}
                        
                            
                                
                                    
                                        | # | {% trans "Instance" %} | {% trans "VNC" %} | {% trans "Resize" %} | {% trans "Delete" %} | {% trans "Action" %} | 
                                
                                
                                    {% for inst in user_insts %}
                                        
                                            | {{ forloop.counter }} | {{ inst.instance.name }} | {{ inst.is_vnc }} | {{ inst.is_change }} | {{ inst.is_delete }} |  |  | 
                                    {% endfor %}
                                
                            
                         
                    {% endif %}
                
 
{% endblock %}