791 Commits

Author SHA1 Message Date
morrme
e63197ee2e
openvpn: added line break to label
Fixes: https://github.com/freedombox/Plinth/issues/816
2017-04-23 23:09:26 +05:30
Johannes Keyser
76a63d102b
setup: Disable install/upgrade when dpkg/apt is running
Show a warning message that a package manager is running. This prevents users
from getting an installation error just because another installation/upgrade is
running.

Closes: #625.
2017-04-19 16:50:00 +05:30
Soumya97
6a53dd015e
context_processor: Cache whether user is admin (Closes: #781) 2017-04-18 16:01:48 +05:30
pycat
2406b144fa
firewall: Fix 500 error when firewalld is not running (Closes: #748)
- Added one more condition to check whether the output is empty or not
2017-04-17 13:20:07 +05:30
Johannes Keyser
fab423e652
syncthing: Fixed typos and clarity in description 2017-04-17 11:48:19 +05:30
Sahithi Yarlagadda
24851ca7ff
syncthing: Added line break to title 2017-04-12 14:06:35 +05:30
Sunil Mohan Adapa
d24e09199b
disks: Minor fixes for partition expansion button
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-10 10:42:00 +05:30
Johannes Keyser
790db846a9
disks: Show disabled partition resize option
If no space is available. Closes #785.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-10 10:41:47 +05:30
Sunil Mohan Adapa
93c151ab2b
matrixsynapse: Minor review changes
- Change the configuration minimally and more reliably.

- Rename the Apache configuration and add comments.

- Rename firewalld description file.

- Enable the matrixsynapse module by default.

- Improve category, description texts and warnings.

- Remove unused variable.

- Add missing docstrings.

- Minor styling updates.

- Fix i18n in templates.

- Fix showing description in main service view.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-05 12:58:45 +05:30
Rahul De
8b4cacd682
matrixsynapse: Add firewall rules to open port 8448
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-05 12:58:03 +05:30
Rahul De
044df8352d
matrixsynapse: Add post install YAML edits
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-05 12:57:46 +05:30
Rahul De
f550c7f68a
matrixsynapse: Fix front page icon name
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-05 12:56:11 +05:30
Rahul De
20ecdbf088
matrixsynapse: Add new plinth module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-05 12:55:51 +05:30
Sunil Mohan Adapa
4a3cf220c8
syncthing: Fixes issues with enabling and setup
- On enable, don't just run syncthing, actually enable it.

- Make setup step idempotent. Run setup during enable as it is
  idempotent.

- Perform user/group creation properly during setup.

- Provide better description.

- Modify the application label and icon for accuracy of the service
  provided.

- Fix problem with showing service in firewall.
2017-03-23 15:09:46 +05:30
Sunil Mohan Adapa
277cd45342
syncthing: Minor styling fixes 2017-03-23 15:09:26 +05:30
Joseph Nuthalpati
551bd7b92c
syncthing: Fix showing running status in configuration page 2017-03-23 15:07:38 +05:30
Joseph Nuthalpati
a5147cfe16
syncthing: Run service as system user 'syncthing'
- Enabled Apache LDAP authentication for Syncthing.
2017-03-23 15:07:25 +05:30
Joseph Nuthalpati
53645deebf
syncthing: Made it a systemd service 2017-03-23 15:06:52 +05:30
Joseph Nuthalpati
cef7e6ff60
syncthing: Added glyph icon and corrected description and URLs 2017-03-23 15:05:11 +05:30
Joseph Nuthalpati
2e28408f4b
syncthing: initial attempt at integrating Syncthing 2017-03-23 15:01:13 +05:30
Sunil Mohan Adapa
f82136e559
users: Show and consume messages in user edit & password change 2017-02-15 21:08:39 +05:30
Sunil Mohan Adapa
05908d1680
openvpn: Handle shortcut properly when enabling/disabling 2017-02-15 21:08:18 +05:30
Rahul De
ad0b235dd7
users: Restrict groups and active user control to admins
- Only admins can now edit the groups of any user

- Only admins can mark any user as active or not

- Refactored all occurrences of admin checks to its own utility function
2017-02-15 21:07:54 +05:30
Sunil Mohan Adapa
7465aafe89
openvpn: Fix i18n and minor refactoring
- Remove hard coded link
2017-02-15 21:07:43 +05:30
Sunil Mohan Adapa
dd5ab7612e
Minor refactoring and lint fixes
- Rename AdminMiddleware to AdminRequiredMiddleware to be consistent
  with stronghold/Django terminology

- Simplify .gitignore pattern

- Format single line docstrings as per PEP8.

- Add missing docstrings.

- Restrict lines to 79 characters.
2017-02-15 21:07:27 +05:30
lispyclouds
f54a9d89dd
Fix accidental debugging print 2017-02-15 21:07:08 +05:30
lispyclouds
b0321d7d29
openvpn: Allow non-admin users to download their own profiles
- This adds OpenVPN icon

- This enables the OpenVPN app on the index page.

- This allows only admins to create the certs for OpenVPN and admins and
  non admins can not download their own profiles via the app icon.
2017-02-15 21:05:48 +05:30
lispyclouds
40ceb9a152
Deny access to non-admin users to other's pages
- This checks that the user making the request is the same user as the
  one logged in and prevents access to the pages of other users if its
  not admin
2017-02-15 21:05:40 +05:30
lispyclouds
79b27ea2ee
Make user edit and change password non-admin views
- This makes the user update and password change pages non admin so that
  non admin users can access
2017-02-15 21:04:40 +05:30
lispyclouds
3b23f78bdc
Implement middleware for admin views
- Add AdminMiddleware to deny non admin users
- Add decorator to mark views as "non admin"
2017-02-15 20:57:52 +05:30
Sunil Mohan Adapa
7f948d1111
tor: Simplify upstream bridges action code
- There is no need for separate subcommand as arguments can be passed in
  even when they have special characters such as \n in them.

- Enable obfs3 and scramblesuit transports also.  Since it is easy to
  support them and bridges site still provides them.  scramblesuit is
  also a nice alternative to obfs4.

- Minor refactoring/fixes.
2017-01-29 11:21:03 +05:30
Sunil Mohan Adapa
e3d0c7ba80
tor: Update upstream bridges javascript actions
- Always show relay and bridge relay options.  This is show to the users
  that the options are available but not enabled because of somethings
  else.  Otherwise, users may not be able to discover these important
  options.

- Simplify animation for upstream bridges text box.
2017-01-29 11:20:46 +05:30
Sunil Mohan Adapa
31cad0bf40
tor: Better validation for upstream bridges
- Convert line terminators in the form field so that it matches the
  current status information resulting in proper detection of change in
  value.

- Allow IPv6 addresses properly.  Allow "[ipv6]:port" format.

- Make specifying port optional.

- Allow spaces at the beginning and ending of the line to compensate for
  copy/paste errors.

- Allow empty lines between bridge specifications.

- Allow multiple spaces between the components.

- Raise error if upstream bridges are not provided when 'use upstream
  bridges' option is enabled.

- Write tests for upstream bridges validator.
2017-01-29 11:20:34 +05:30
Sunil Mohan Adapa
c311175797
tor: Update description for bridge options
- Mention that this option is for preventing censorship.

- Simplify description of upstream bridges.

- Give hyperlink to bridges.torproject.org.

- Make it slightly more clear that users can copy paste information from
  bridges page.

- Update list of supported transports.
2017-01-29 11:20:22 +05:30
James Valleroy
4162c2df86
tor: Catch one more possible error with bridge entries 2017-01-29 11:20:03 +05:30
James Valleroy
f52f3f70d2
tor: Fix async config and message regressions 2017-01-29 11:19:47 +05:30
James Valleroy
31f95cfb12
tor: Support obfs4 for upstream bridges
Refactor augeas lens for readability.
2017-01-29 11:19:34 +05:30
James Valleroy
4eaff44b49
tor: Hide relay options when upstream bridges are used
Move upstream bridge options above relay options.
2017-01-29 11:19:20 +05:30
James Valleroy
165e880329
tor: Move restart logic into plinth module 2017-01-29 11:18:42 +05:30
James Valleroy
5552853ee3
tor: Validate bridge entries 2017-01-29 11:18:08 +05:30
James Valleroy
09b58a8b99
tor: Add option to use upstream bridges 2017-01-29 11:17:41 +05:30
Marko Mackic
bb6e164d2a
Add line brake to infinoted title 2017-01-26 12:33:23 -05:00
Sunil Mohan Adapa
e5eaf67fa0
ikiwiki: Fix showing icon for newly created wiki/blog
The add shortcut API was changed but the call where we add shortcuts
after creating wiki/blog was not updated.

Closes #719.
2017-01-20 17:46:37 -05:00
Marko Mackic
954f603ec3
Update jsxc_launch.html
All static links changed.

Referencing #718
2017-01-20 16:51:55 +05:30
Sunil Mohan Adapa
45c7fe7a8b
infinoted: Minor update to description
- To convey that Gobby is a desktop application.
2017-01-18 10:36:52 +05:30
Sunil Mohan Adapa
414a59856d
infinoted: Add service only when setup is completed
- Inline with recent changes done.
2017-01-18 10:36:44 +05:30
Sunil Mohan Adapa
8b1d5b6f57
infinoted: Update shortcut code for newer style
- Use special icon.

- Upate parameters.
2017-01-18 10:36:21 +05:30
James Valleroy
cd12f5d2b3
infinoted: Add new module for collaborative editing 2017-01-18 10:35:06 +05:30
James Valleroy
c7b4bb7cc8
help: Fix issues with new version indicator 2017-01-17 12:29:33 -05:00
pk13055
7fdb09abfd
help: Add indicator for new plinth version available 2017-01-17 12:11:01 -05:00