Revision c72a830d ui/views.py

b/ui/views.py
91 91

  
92 92
VM_NAME_TEMPLATE = getattr(settings, "VM_CREATE_NAME_TPL", "My {0} server")
93 93

  
94
# ssh keys
95
MAX_SSH_KEYS_PER_USER = getattr(settings, "MAX_SSH_KEYS_PER_USER")
96

  
94 97
def template(name, context):
95 98
    template_path = os.path.join(os.path.dirname(__file__), "templates/")
96 99
    current_template = template_path + name + '.html'
......
129 132
               'vm_name_template': json.dumps(VM_NAME_TEMPLATE)
130 133
               'support_ssh_os_list': json.dumps(SUPPORT_SSH_OS_LIST),
131 134
               'os_created_users': json.dumps(OS_CREATED_USERS),
135
               'userdata_keys_limit': json.dumps(MAX_SSH_KEYS_PER_USER),
132 136
               }
133 137
    return template('home', context)
134 138

  

Also available in: Unified diff