Revision 8d08f18a ui/views.py
b/ui/views.py | ||
---|---|---|
101 | 101 |
context = {'host': host, 'port': port, 'password': password, 'machine': machine, 'host_ip': host_ip, 'host_ip_v6': host_ip_v6} |
102 | 102 |
return template('machines_console', context) |
103 | 103 |
|
104 |
def js_tests(request): |
|
105 |
return template('tests', {}) |
|
104 | 106 |
|
105 | 107 |
CONNECT_LINUX_LINUX_MESSAGE = _("""A direct connection to this machine can be established using the <a target="_blank" |
106 | 108 |
href="http://en.wikipedia.org/wiki/Secure_Shell">SSH Protocol</a>. |
... | ... | |
224 | 226 |
FEEDBACK_EMAIL_FROM = settings.FEEDBACK_EMAIL_FROM |
225 | 227 |
|
226 | 228 |
def feedback_submit(request): |
227 |
|
|
228 | 229 |
if not request.method == "POST": |
229 | 230 |
raise Http404 |
230 | 231 |
|
... | ... | |
245 | 246 |
send_mail(mail_subject, mail_content, FEEDBACK_EMAIL_FROM, |
246 | 247 |
dict(FEEDBACK_CONTACTS).values(), fail_silently=False) |
247 | 248 |
|
248 |
return HttpResponse("ok");
|
|
249 |
return HttpResponse('{"status":"send"}');
|
|
249 | 250 |
|
250 | 251 |
def images(request): |
251 | 252 |
context = {} |
Also available in: Unified diff