mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Convert apps pages to templates
This commit is contained in:
parent
25fe3c7ee8
commit
577dbb4fc5
@ -2,7 +2,6 @@ import cherrypy
|
|||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
from modules.auth import require
|
from modules.auth import require
|
||||||
from plugin_mount import PagePlugin
|
from plugin_mount import PagePlugin
|
||||||
from forms import Form
|
|
||||||
import cfg
|
import cfg
|
||||||
import util
|
import util
|
||||||
|
|
||||||
@ -17,25 +16,11 @@ class Apps(PagePlugin):
|
|||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
def index(self):
|
def index(self):
|
||||||
main = """
|
return util.render_template(template='apps',
|
||||||
<p>User Applications are web apps hosted on your %s.</p>
|
title=_('User Applications'))
|
||||||
|
|
||||||
<p>Eventually this box could be your photo sharing site, your
|
|
||||||
instant messaging site, your social networking site, your news
|
|
||||||
site. Remember web portals? We can be one of those too.
|
|
||||||
Many of the services you use on the web could soon be on site
|
|
||||||
and under your control!</p>
|
|
||||||
""" % (cfg.product_name)
|
|
||||||
return util.render_template(title="User Applications", main=main)
|
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@require()
|
@require()
|
||||||
def photos(self):
|
def photos(self):
|
||||||
return util.render_template(title="Photo Gallery", main='',
|
return util.render_template(template='photos',
|
||||||
sidebar_right="""
|
title=_('Photo Gallery'))
|
||||||
<strong>Photo Gallery</strong><p>Your photos might well be the most valuable
|
|
||||||
digital property you have, so why trust it to companies that have no
|
|
||||||
investment in the sentimental value of your family snaps? Keep those
|
|
||||||
photos local, backed up, easily accessed and free from the whims of
|
|
||||||
some other websites business model.</p>
|
|
||||||
""")
|
|
||||||
|
|||||||
13
modules/installed/apps/templates/apps.html
Normal file
13
modules/installed/apps/templates/apps.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{% extends 'login_nav.html' %}
|
||||||
|
|
||||||
|
{% block main_block %}
|
||||||
|
|
||||||
|
<p>User Applications are web apps hosted on your
|
||||||
|
{{ cfg.product_name }}.</p>
|
||||||
|
|
||||||
|
<p>Eventually this box could be your photo sharing site, your instant
|
||||||
|
messaging site, your social networking site, your news site. Remember
|
||||||
|
web portals? We can be one of those too. Many of the services you
|
||||||
|
use on the web could soon be on site and under your control!</p>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
11
modules/installed/apps/templates/photos.html
Normal file
11
modules/installed/apps/templates/photos.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{% extends 'login_nav.html' %}
|
||||||
|
|
||||||
|
{% block main_block %}
|
||||||
|
|
||||||
|
<p>Your photos might well be the most valuable digital property you
|
||||||
|
have, so why trust it to companies that have no investment in the
|
||||||
|
sentimental value of your family snaps? Keep those photos local,
|
||||||
|
backed up, easily accessed and free from the whims of some other
|
||||||
|
websites business model.</p>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
Loading…
x
Reference in New Issue
Block a user