{% load i18n %}
{% if unavailable %}
    
{% trans 'ERROR: uWSGI is not available!' %}
{% else %}
    
        
            
                {% trans 'Status' %}
            
            
                
                    | {% trans "Option" %} | {% trans "Value" %} | 
            
            
                {% for key, value in stats %}
                
                    | {{ key }} | {{ value }} | 
                {% endfor %}
            
        
     
    
        
            
                {% trans 'Options' %} (read docs)
            
            
                
                    | {% trans "Option" %} | {% trans "Value" %} | 
            
            
                {% for key, value in uwsgi.opt.items %}
                
                    | {{ key }}{# uWSGI allows to use options without values if value = true #} | {% if value %}{{ value }}{% else %}true{% endif %} | 
                {% endfor %}
            
        
     
    
        
            
                {% trans 'Magic table' %} (read docs)
            
            
                
                    | {% trans "Option" %} | {% trans "Value" %} | 
            
            
                {% for key, value in uwsgi.magic_table.items %}
                
                    | {{ key }} | {{ value }} | 
                {% endfor %}
            
        
     
    
        
            
                {% trans 'Workers' %}
            
            
                
                    | {% trans "id" %} | {% trans "pid" %} | {% trans "status" %} | {% trans "requests" %} | {% trans "exceptions" %} | {% trans "signals" %} | {% trans "running time(ms)" %} | {% trans "avg response time(ms)" %} | {% trans "load" %} | {% trans "last spawn" %} | {% trans "respawn count" %} | {% trans "address space (vsz)" %} | {% trans "resident memory (rss)" %} | 
            
            
            {% for w in workers %}
                
                    | {{ w.id }} | {{ w.pid }} | {{ w.status }} | {{ w.requests }} | {{ w.exceptions }} | {{ w.signals }} | {{ w.running_time }} | {{ w.avg_rt }} | {{ w.load|floatformat:2 }} % | {{ w.last_spawn }} | {{ w.respawn_count }} | {{ w.vsz|filesizeformat }} | {{ w.rss|filesizeformat }} | 
            {% endfor %}
            
        
     
    
        
            
                {% trans 'Applications' %}
            
            
                
                    | {% trans "#" %} | {% trans "modifier1" %} | {% trans "mountpoint" %} | {% trans "interpreter" %} | {% trans "callable" %} | {% trans "chdir" %} | {% trans "requests" %} | {% trans "exceptions" %} | 
            
            
            {% for w in workers %}
                {% for app in w.apps %}
                
                    | {{ app.id }} | {{ app.modifier1 }} | {{ app.mountpoint }} | {{ app.interpreter }} | {{ app.callable }} | {{ app.chdir }} | {{ app.requests }} | {{ app.exceptions }} | 
                {% endfor %}
            {% endfor %}
            
        
     
    {% if uwsgi.spooler_jobs %}
    
        
            
                {% trans 'Spooler' %}
            
            
                
                    | {% trans "job filename" %} | {% trans "environment" %} | 
            
            
                {% for job in jobs %}
                
                    | {{ job.file }} | {{ job.env }} | 
                {% endfor %}
            
        
     
    {% endif %}
    
        
            
                {% trans 'Actions' %}
            
            
                
                    | {% trans 'Send uWSGI Signal' %} | {% trans 'Send uWSGI Log message' %} | 
            
            
                
                    |  |  | 
            
        
     
    {% if uwsgi.masterpid %}
    
    {% endif %}
 
{% endif %}