mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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,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,4 +1,4 @@
|
||||
{% extends "app.html" %}
|
||||
{% extends "simple_service.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@@ -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'),
|
||||
]
|
||||
@@ -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,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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user