The first place where you should look for customization is the GlobaLeaks config file. It is located in globaleaks/applications/globaleaks/models/gleaks.cfg. From here you are able to set the following parameters:
[global]
title = <the title of your site>
subtitle = <subtitle>
author = <author>
description = <description of site>
disclaimer = <submission page disclaimer>
layout_theme = Default
author_email = <email address of site maintainer>
# must be changed to random string
email_server =
email_sender = [email protected]
email_login =
login_method =
login_config =
[tulip]
max_access = 1
expire = 2
[logging]
server = True
client = True
logfile = /tmp/globaleaks.log
[database]
uri = sqlite://storage.sqlite
- To add custom FORM elements you should edit the XML file
- globaleaks/applications/globaleaks/models/extrafields.xml
An example of how custom form elements look like is: extratext Text This is a text field string textarea Text Area This is a text area text enable Enable something Enable the thing by checking the box boolean date Date Enter a date realted to your submission date menu Menu Select something from the drop down menu list Element1 Element2 Element3
For customizing the look of your site you should be looking at globaleaks/applications/globaleaks/views/.
-
layout.html - Contains the main layout included in every page
- For customizing the logo in every page look for "header" and replace the image with your own logo.
Inside globaleaks/applications/globaleaks/static you will find all the .css files.
- base.css - the main .css file