From 5661aa4a4d9217461824058589a788bbe52a46ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jordi=20Puiggen=C3=A9?= Date: Wed, 10 Jun 2015 13:54:41 +0200 Subject: [PATCH] Bika Health frontpage and logo --- bika/health/browser/bika-frontpage.pt | 95 +++++++++++++++++++++++++++ bika/health/browser/bika-frontpage.py | 25 +++++++ bika/health/browser/overrides.zcml | 22 +++++++ bika/health/configure.zcml | 7 +- bika/health/overrides.zcml | 6 ++ 5 files changed, 154 insertions(+), 1 deletion(-) create mode 100644 bika/health/browser/bika-frontpage.pt create mode 100644 bika/health/browser/bika-frontpage.py create mode 100644 bika/health/browser/overrides.zcml diff --git a/bika/health/browser/bika-frontpage.pt b/bika/health/browser/bika-frontpage.pt new file mode 100644 index 0000000..aced1a1 --- /dev/null +++ b/bika/health/browser/bika-frontpage.pt @@ -0,0 +1,95 @@ + + + + +

+ Bika Health OS LIMS/LIS + + + + + + +

+ +
+ + + + + + +
+ +
+ +
+ + +
+

Workflow

+

+ Bika Health inherits Gaob LIMS 3's ISO 17025 compliant functionality, and adds Patients, Doctors, Clinical Cases and Referring Institutions. Bika Health is Free and Open Source, and can be customised to your lab's specific requirements. +

+ +

The meaning of Naringenine

+ +

+ Naringenin is a flavanone, a typeof flavonoid, that is considered to have a bioactive effect on human health as antioxidant, free radical scavenger, anti-inflammatory, carbohydrate metabolism promoter, and immune system modulator. It is the predominant flavanone in grapefruit. +

+ +

Documentation

+ +

+ Work in progress: +

+ + +

Bika Health 3 Installation

+

+ Bika Health can be installed easily on Windows, Mac OS X, Linux, BSD and other platforms: +

+ +
+
+

+ + Bika Health + +

+ +

Source code

+

+ If you want to stay up to date with development, you can retrieve the source directly from the code repository for updates. It's the recommended installation method for developers and users who want to test the latest version. +

+ + +

Feedback and support

+ +
+
+
+
+ diff --git a/bika/health/browser/bika-frontpage.py b/bika/health/browser/bika-frontpage.py new file mode 100644 index 0000000..b14a408 --- /dev/null +++ b/bika/health/browser/bika-frontpage.py @@ -0,0 +1,25 @@ +from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile +from bika.lims.browser import BrowserView + + +class FrontPageView(BrowserView): + template = ViewPageTemplateFile("bika-frontpage.pt") + + def __call__(self): + self.set_versions() + self.icon = self.portal_url + "/++resource++bika.lims.images/chevron_big.png" + return self.template() + + + def set_versions(self): + """Configure a list of product versions from portal.quickinstaller + """ + self.versions = {} + self.upgrades = {} + qi = self.context.portal_quickinstaller + for key in qi.keys(): + info = qi.upgradeInfo('bika.health') + self.versions[key] = qi.getProductVersion(key) + info = qi.upgradeInfo(key) + if info and 'installedVersion' in info: + self.upgrades[key] = info['installedVersion'] diff --git a/bika/health/browser/overrides.zcml b/bika/health/browser/overrides.zcml new file mode 100644 index 0000000..1b58e2a --- /dev/null +++ b/bika/health/browser/overrides.zcml @@ -0,0 +1,22 @@ + + + + + + diff --git a/bika/health/configure.zcml b/bika/health/configure.zcml index a0caa5b..5098936 100644 --- a/bika/health/configure.zcml +++ b/bika/health/configure.zcml @@ -31,7 +31,12 @@ + + diff --git a/bika/health/overrides.zcml b/bika/health/overrides.zcml index 6a19d5f..786d31d 100644 --- a/bika/health/overrides.zcml +++ b/bika/health/overrides.zcml @@ -4,6 +4,7 @@ xmlns:browser="http://namespaces.zope.org/browser" xmlns:five="http://namespaces.zope.org/five"> + @@ -14,4 +15,9 @@ + +