app: Refactor all apps to use the Info component

- Remove the need to pass all the individual information elements to the AppView
  separately. This eliminates many issues with elements that were mistakenly not
  sent to AppView. Also reduces a lot of code duplication.

- Create App classes for power and sso for consistency.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2020-02-16 18:22:01 -05:00
1 parent 67a216ba18
commit b576a77c3d
112 files changed
+862 -1041

No files matched your search

-2
View File
@@ -100,8 +100,6 @@ view to show the app page for our app. In ``views.py``, let us add a view.
class TransmissionAppView(views.AppView):
"""Serve configuration page."""
name = transmission.name
description = transmission.description
app_id = 'transmission'
The base view :class:`~plinth.views.AppView` takes care of a lot of details for