738 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
522ece851c Minor indentation fixes in templates 2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa
057d1063f3 Use <code> tag for commands 2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa
271011adf6 Rename OwnCloud -> ownCloud 2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa
10a32f43d9 Fix issue with showing installed status of pagekite 2014-12-06 17:08:37 +05:30
Sunil Mohan Adapa
e6b5bed1f3 Use margins or <p> instead of <br /> 2014-12-06 17:08:37 +05:30
fonfon
96a14e3d0d moved 'in-app menu' from the sidebar to the top of the content; some template block renaming 2014-12-06 17:08:37 +05:30
fonfon
e4c11e7d8e show the sidebar with help during first_boot 2014-12-06 17:08:37 +05:30
fonfon
9c95da8751 updated user-edit/delete texts: we don't have any functionality to edit users 2014-12-06 17:08:37 +05:30
fonfon
8d2e2be7fa removed unused template forms.html 2014-12-02 12:54:04 +01:00
fonfon
e2a867901d removed js_block: use page_js or app_js instead 2014-12-02 12:54:04 +01:00
James Valleroy
2751a8e848 Convert xmpp-register action to python. 2014-11-30 15:24:32 +05:30
James Valleroy
e324aa040e Move ejabberd install info to template file. 2014-11-30 15:23:25 +05:30
James Valleroy
39e441e2b9 Add action to check if ejabberd is installed.
If not installed, show instructions on how to install it.
2014-11-30 15:23:25 +05:30
James Valleroy
ac0f0c9eba Show error messages from xmpp-setup and xmpp-register.
Avoid causing plinth to show error page.
2014-11-30 15:23:25 +05:30
Sunil Mohan Adapa
9d6e17660d For SSL redirection, use 301 permanent 2014-11-30 15:11:50 +05:30
Sunil Mohan Adapa
e2ca5e0f12 Rewrite Apache configuration files
- Don't hijack the entire SSL site for sake of Plinth.

- Serve both HTTP and HTTPS sites with default configuration.

- plinth-ssl configuration only make SSL compulsory.

- Document modules required for configuration to work properly.

- Don't disable default site during FreedomBox setup run.  This is no
  longer required.
2014-11-30 15:11:50 +05:30
Sunil Mohan Adapa
1b6969a8a6 Rethink how proxied headers are handled
- Request Apache to send X-Forwarded-Proto header.

- Use X-Forwarded-Proto header to understand original protocol
  requested.

- Use X-Forwarded-Host header to understand original host requested.

- Allow any incoming host header so that FreedomBox can have any
  hostname and when user requests for Plint with that hostname, it
  works.

- Don't depend on Apache to rewrite the Location: header.  Instead use
  the original host and original scheme to set proper Location: header.
2014-11-30 15:11:50 +05:30
Sunil Mohan Adapa
eec249d006 Don't preserve Host header during Apache proxying
When Apache proxy forwards a request it usually makes the request to the
backend server with a new Host: header but sends the original host
information using a special header X-FORWARDED-HOST: header.  It is a
common practise.  The backend can be make the choice of which header to
use based on the knowledge that it is running behind a proxy server.

Since hostname of a FreedomBox machine could be anyting and it could
change during the operation of Plinth, having a list of incoming Host:
header values is not going to be easy in Plinth.  If Apache were not to
force override this header, managing list of Host: header values will
become easiler in Plinth.  If Plinth indeed wants to know the original
host name by which user refferred to it, it can use the
X-FORWARDED-HOST: header which is the norm in these situtations.
2014-11-30 15:11:50 +05:30
Sunil Mohan Adapa
5d79ad6dc5 Don't service static files directly from Apache
We are allowing modules to bring their own static content.  If we need
to configure Apache to serve static URLs directly, Apache will have know
all the static URLs generated by all the modules.  If these details are
provided, it will likely effect our modularity.

The current static URL given in Apache configuration is anyway
incorrect.
2014-11-30 15:11:50 +05:30
Sunil Mohan Adapa
1e317cfb37 Allow more local IP addresses in Apache configuration 2014-11-30 15:11:50 +05:30
Sunil Mohan Adapa
5b969d9d30 Explicitly write license headers for each source file
The package license (AGPL3+) implicitly indicates the license of each
file.  However, it is desirable to have license headers in each file.
This is the case for many prominent projects like GNU project, Mozilla
etc.
2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
51247dae13 Remove #! from actions.py as it is not meant to run independently 2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
dad4eccbde Remove copyright information in footer for cleaner apperance 2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
750241bf8a Update copyright information
More authors have contributed in a significant manner given them
copyright for thier contributions.  Hence changed Plinth copyright to
'Plinth Authors'.  Full list of authors can be obtained from the Git
revision log.
2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
fcc1330318 Relicense __main__.py to AGPLv3+
- There is no point in keeping this one single file as with different
  license from the rest of the package.  This change simplifies things.

- The file has been almost entirely been rewritten for Django, module
  loading, CherryPy static directories etc.

- This change will be pushed with the consent of new authors: fonfon and
  Me.
2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
7906b0ab5e Clean documentation directory when 'setup.py clean' is run 2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
7f307dc5a2 Fix issue with installing to a different root with --root= 2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
30e36840c2 Fix doc link to bootstrap style file 2014-11-30 14:28:46 +05:30
Sunil Mohan Adapa
678d159a32 Minor styling changes 2014-11-23 14:26:48 +05:30
Sunil Mohan Adapa
9fcc03127e Improve body padding at the top and bottom 2014-11-23 14:25:23 +05:30
Sunil Mohan Adapa
0afe018370 Add screen reader annotation to navigation 2014-11-23 14:24:48 +05:30
Sunil Mohan Adapa
0a553fc797 Simplify navigation icon styling 2014-11-23 14:24:03 +05:30
Sunil Mohan Adapa
0ec7774a2a Use fluid container for navbar 2014-11-23 14:21:10 +05:30
Sunil Mohan Adapa
4c01690fb5 Bootstrap change .label-important -> .label-danger 2014-11-23 14:19:52 +05:30
Sunil Mohan Adapa
205d3bb8c0 Use bootstap styles for non-full-width tables 2014-11-23 14:19:02 +05:30
Sunil Mohan Adapa
e15966a772 Add missing paragraph closing tag in tor template 2014-11-23 14:16:10 +05:30
Sunil Mohan Adapa
86ce7cdf25 Use globe glyphicon for pagekite 2014-11-23 14:15:45 +05:30
Sunil Mohan Adapa
b9d4688913 Use fire glyphicon for firewall 2014-11-23 14:15:23 +05:30
Sunil Mohan Adapa
86c1307dc1 Remove incorrect and unnecessary class .glyphicon-white
Glyph icons automatically take the text color and don't need to be set
an explict color.  Bootstrap 3 does not have the class .glyphicon-white.
2014-11-23 14:14:57 +05:30
Sunil Mohan Adapa
265953adc6 Bootstrap change .btn-large -> .btn-lg 2014-11-23 14:10:01 +05:30
Sunil Mohan Adapa
6a1f96d7c2 Bootstrap change .btn-primary -> .btn .btn-primary
Only then the full intended style will apply.  This is a change from
Bootstrap 2 to Bootstrap 3.
2014-11-23 14:08:13 +05:30
Sunil Mohan Adapa
3871875ddf Don't add boostrap form to python module dependencies
Setup.py list will need python modules list and doesn't understand
Debian packages.  Setup.py will try to install libjs-boostrap as a
Python module and download it from PyPI.
2014-11-23 13:59:12 +05:30
Sunil Mohan Adapa
9144019edf Update license information about deleted glyphicon files 2014-11-23 13:56:47 +05:30
fonfon
b4df883eee adapted login form size; fixed wrong path of bootstrap.min.js 2014-11-11 22:39:23 +01:00
fonfon
64c1682b2c removed bootstrap2 static files 2014-11-11 22:32:41 +01:00
fonfon
2945c03a79 adapted tor html table size and added minor validation fixes 2014-11-11 19:31:29 +01:00
fonfon
f0582e7a94 replaced bootstrap2 by bootstrap3 2014-11-11 19:06:47 +01:00
Sunil Mohan Adapa
9a88174ab4 Don't show configuration error when Tor HS is not available
When we configure a Tor hidden service and haven't yet run Tor at least
once, then Tor hidden service hostname and private key are not
available.  This situation requires running Tor atleast once and is not
a configuration error.  When Tor runs, it see the hidden service
configuration and creates the Hidden service information.
2014-11-11 21:56:29 +05:30
James Valleroy
a7afba8583 Show info about installing Tor if it is not already installed. 2014-11-10 22:17:49 -05:00
James Valleroy
28cc7f14c7 Handle errors with Tor HS configuration. 2014-11-10 21:42:40 -05:00