Convert system page to template

This commit is contained in:
Sunil Mohan Adapa 2014-05-08 09:12:14 +05:30
parent 1c338e538a
commit eff6306f7d
2 changed files with 13 additions and 7 deletions

View File

@ -18,10 +18,5 @@ class Sys(PagePlugin):
@cherrypy.expose
def index(self):
return util.render_template(title=_("System Configuration"), main=_("""
<p>In this section, you can control the %(product)s's
underlying system, as opposed to its various applications and
services. These options affect the %(product)s at its most
general level. This is where you add/remove users, install
applications, reboot, etc.</p>
""" % {'product':cfg.product_name}))
return util.render_template(template='system',
title=_("System Configuration"))

View File

@ -0,0 +1,11 @@
{% extends 'login_nav.html' %}
{% block main_block %}
<p>In this section, you can control the {{ cfg.product_name }}'s
underlying system, as opposed to its various applications and
services. These options affect the {{ cfg.product_name }} at its most
general level. This is where you add/remove users, install
applications, reboot, etc.</p>
{% endblock %}