Services: Template restructuring

- renamed app.html to simple_service.html
- allow hiding the 'status' block instead of using separate
  apache_service.html template
This commit is contained in:
fonfon authored and James Valleroy committed 2016-05-11 18:19:35 -04:00
1 parent f419c28596
commit b54846b0ce
21 files changed
+39 -56

No files matched your search

@@ -1,4 +1,4 @@
{% extends 'app.html' %}
{% extends 'simple_service.html' %}
{% comment %}
#
# This file is part of Plinth.
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
+2 -2
View File
@@ -43,9 +43,9 @@ subsubmenu = [{'url': reverse_lazy('ikiwiki:index'),
class IkiwikiServiceView(views.ServiceView):
"""Serve configuration page."""
service_id = "ikiwiki"
template_name = "apache_service.html"
diagnostics_module_name = "ikiwiki"
description = ikiwiki.description
diagnostics_module_name = "ikiwiki"
show_status_block = False
def get_context_data(self, **kwargs):
"""Return the context data for rendering the template view."""
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
+1 -1
View File
@@ -65,9 +65,9 @@ def setup(helper, old_version=None):
class MinetestServiceView(ServiceView):
service_id = managed_services[0]
template_name = "apache_service.html"
diagnostics_module_name = "minetest"
description = description
show_status_block = False
def diagnose():
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
+1 -1
View File
@@ -30,6 +30,6 @@ urlpatterns = [
service_id="roundcube",
diagnostics_module_name="roundcube",
description=roundcube.description,
template_name="apache_service.html"
show_status_block=False
), name='index'),
]
+1 -1
View File
@@ -29,6 +29,6 @@ urlpatterns = [
url(r'^apps/shaarli/$', ServiceView.as_view(
service_id="shaarli",
description=shaarli.description,
template_name="apache_service.html"
show_status_block=False,
), name='index'),
]
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends 'app.html' %}
{% extends 'simple_service.html' %}
{% comment %}
#
# This file is part of Plinth.
+1 -1
View File
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.
+1 -1
View File
@@ -30,6 +30,6 @@ urlpatterns = [
service_id=ttrss.managed_services[0],
diagnostics_module_name="ttrss",
description=ttrss.description,
template_name="apache_service.html"
show_status_block=False
), name='index'),
]
@@ -1,4 +1,4 @@
{% extends 'app.html' %}
{% extends 'simple_service.html' %}
{% comment %}
#
# This file is part of Plinth.
@@ -1,4 +1,4 @@
{% extends "app.html" %}
{% extends "simple_service.html" %}
{% comment %}
#
# This file is part of Plinth.