mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
13c4c687da
commit
acd248e506
7 files changed
+325
-255
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user