Unverified Commit 3bca09dc authored by CapsLock's avatar CapsLock

[Feature] list domains on default page

Signed-off-by: 's avatarCapsLock <faimaison@legeox.net>
parent 24366dec
......@@ -68,7 +68,7 @@ def default(db):
' and dn.name = %s', (get_host_name(),))
pictures = db.fetchall()
return template('domains', pictures=pictures, domain_names=domain_names)
return template('default', pictures=pictures, domain_names=domain_names)
# create new alias
......
<html>
<head>
<title>{{title or 'No title'}}</title>
</head>
<body>
{{!base}}
</body>
</html>
\ No newline at end of file
% rebase('base.tpl', title='coin')
% for d in domain_names:
{{d['name']}}
<a href="http://{{d['name']}}.coin.pan:8080/">{{d['name']}}.coin.pan</a><br />
%end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment