clients: Cleanup framework

- Move all utilities to a separate clients.py module. Tests too.

- Use fewer custom template tags. Actually only one tag is really required.
  Keeping custom tags minimal is a goal.

- Merge the methods to generate app store URLs.

- Implement a validator for validating client information and use that instead
  of enums.

- Internationalize the text on template page.

- Add missing RPM package case.

- Cleanup CSS. Remove unused styles, minimize the styles set.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2017-12-13 18:56:30 -05:00
1 parent 13c4c687da
commit acd248e506
7 files changed
+325 -255

No files matched your search

-9
View File
@@ -115,12 +115,3 @@ class YAMLFile(object):
def is_file_empty(self):
return os.stat(self.yaml_file).st_size == 0
def play_store_url(package_id):
return 'https://play.google.com/store/apps/details?id={}'.format(
package_id)
def f_droid_url(package_id):
return 'https://f-droid.org/packages/{}'.format(package_id)