4331 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
4b9b683a16
firewall: Split CSS styling into separate file
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:48 +02:00
Sunil Mohan Adapa
eeac81b8c6
networks: Use table for styling network connection list
- Split CSS into a separate file.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:48 +02:00
Sunil Mohan Adapa
4b10d525bd
networks: Use common styling for Wi-Fi network list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:47 +02:00
Sunil Mohan Adapa
55880e8f0b
networks: Use common styling for showing network connection
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:47 +02:00
Sunil Mohan Adapa
9e04782f0d
users: Use common styling for users list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:47 +02:00
Sunil Mohan Adapa
e2aa3c2229
gitweb: Use common styling for repo list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:46 +02:00
Sunil Mohan Adapa
0e78f8f4a8
ikiwiki: Use common styling for wiki/blog list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:46 +02:00
Sunil Mohan Adapa
40e23f209a
pagekite: Use common styling for custom services
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:46 +02:00
Sunil Mohan Adapa
7a32b8f638
calibre: Use common styling for libraries list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:45 +02:00
ikmaak
6a80cfbc5a
Translated using Weblate (Dutch)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-19 13:29:19 +01:00
ikmaak
b427b26abc
Translated using Weblate (German)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-19 13:29:18 +01:00
Sunil Mohan Adapa
8593524184
ui: index: Don't show too large a help message
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:40 +02:00
Sunil Mohan Adapa
858d005b87
help, power, index: ui: Drop remaining uses of &raquo;
- Mostly for consistency with the rest of the interface.

- Most of the usages got removed already.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:39 +02:00
Sunil Mohan Adapa
0cd5dd6e09
users: Drop cancel button show submit as danger in delete page
- For consistency with the rest of the interface and better UX.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:38 +02:00
Sunil Mohan Adapa
f2c40d8319
help: Make the button normal size in about page
- The regular buttons are slightly bigger in Bootstrap 4 and convenient enough
for mobile interfaces.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:38 +02:00
Sunil Mohan Adapa
9c6ca18045
ui: Consistently use the btn-toolbar class for all toolbars
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:37 +02:00
Sunil Mohan Adapa
1e7ef0b3e4
firewall: New styling for status stable
- Drop separate column for showing ports and add a dropdown icon next to the app
name.

- Manage widths so that table widths don't jump when expanded. Tested with
smaller screen size.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:36 +02:00
Sunil Mohan Adapa
123aa03231
jsxc: Drop loading text on the login button
It does not seem to work. There is a model dialog with progress bar that shows
logging in status.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:36 +02:00
Sunil Mohan Adapa
f4a48f3e36
ui: css: Use rem as the primary unit
- When the base font size is changed, all the measure will scale appropriately.

- Bootstrap 4 has done the same.

- Keep using px for responsive lengths and some border widths that need not
scale.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:34 +02:00
Sunil Mohan Adapa
83dcafac55
ui: Make all tables responsive
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:34 +02:00
Sunil Mohan Adapa
fef8da230f
ui: Adopt a consistent and new table style
Rows in bootstrap 4 tables are taller by default. This is better suited for
mobile layouts and look prettier on desktops too. Adopting this approach instead
of condensed tables eliminates the need for striping, bordering and narrower
tables.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:33 +02:00
achalaramu
00bc55f762
Migrate bootstrap 4 from bootstrap 3
Closes: #1818. The new navbar collapse handles items better without a scrollbar.

- Switch dependency to newer bootstrap4 library.

- Bootstrap 4 has 5 grid levels instead of 4. Adjust all classes accordingly to
retain current semantics.

- Update for newer markup for dropdowns.

- Replace use for labels with badges. Labels have been removed. Use
badge-secondary instead of label-default.

- Replace use of btn-xs with btn-sm. Size is roughly the same.

- Accommodate removal of form-horizontal.

- .hidden* and .visible* classes have been removed. Use alternate utilities.

- Replace use of table-condensed with table-sm.

- Update progress bar background styling. .progress-bar-* have been replaced
with bg-*.

- Drop support for IE9 and below. Bootstrap 4 does not support those browsers.

- Use the new simplified markup for navs, navbar and navbar-toggler. Accommodate
removal of .navbar-fixed-top.

- Update the JSXC page too.

- Update all values that are using rem units. The base font size is now 1rem =
16px instead of 1rem = 10px. This the default for bootstrap 4.

- A button inside a dropdown menu is natively supported by bootstrap 4. Remove
custom styling done earlier.

- Drop use of removed class thumbnail.

- Override colors for buttons and warnings to keep the old style.

- Use new markup for close buttons inside alerts.

- Use .collapse.show instead of .collapse.in as per bootstrap 4 styling.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:32 +02:00
Sunil Mohan Adapa
58751d241e
clients: Fix a duplicated HTML ID
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:32 +02:00
Sunil Mohan Adapa
6fa0836847
pagekite: cosmetic: Minor yapf changes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:31 +02:00
Sunil Mohan Adapa
546f112a88
pagekite: Drop unused subdomain widget
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:30 +02:00
Burak Yavuz
2d88d42a7c
Translated using Weblate (Turkish)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-18 06:29:13 +01:00
James Valleroy
fc771b5d05
Merge remote-tracking branch 'freedombox-team/master'
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-16 19:48:32 -05:00
ikmaak
c638f85f57
Translated using Weblate (Dutch)
Currently translated at 98.0% (1388 of 1416 strings)
2020-12-16 08:29:13 +01:00
Reg Me
4c325febe6
Translated using Weblate (Dutch)
Currently translated at 98.0% (1388 of 1416 strings)
2020-12-16 08:29:12 +01:00
James Valleroy
e40d14ca6e
Release v20.20 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-14 19:31:38 -05:00
James Valleroy
320dec6620
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-14 18:44:03 -05:00
ikmaak
fed574f345
Translated using Weblate (Dutch)
Currently translated at 95.4% (1351 of 1416 strings)
2020-12-15 00:40:49 +01:00
James Valleroy
863b3cdfe0
mumble: Implement force upgrade for 1.3.*
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-13 15:51:38 -08:00
Veiko Aasa
dd6a03442e
diagnostics: Show app name and fallback to app id if not exist
Tests performed:
- The diagnostics app page and individual app diagnostics pages have
app names.
- When the app name is missing (the apache app), app id is shown instead.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
2020-12-13 15:24:04 -08:00
Veiko Aasa
8775137546
diagnostics: Improve exception handling in app diagnostics
Fixes the problem when the app throws an error when running diagnostics,
the app's diagnostics page shows an html 500 error and on the diagnostics
app page, only an excpetion message is shown without other apps diagnostics.
(I encountered this when the network app diagnostics threw an exception
because of a particular network configuration.)

Tests performed:
- Checked that an app diagnostics page and the diagnostics app shows
all info correctly.
- Modified the networks app diagnostics code so that it throws an exception.
Checked that the app diagnostics page shows an exception message and
the diagnostics module shows all the apps and the networks app section
shows an exception message.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil: Re-add removed relevant comment]
[sunil: Remove ability to dismiss the exception message, not much gain for user]
[sunil: Remove unnecessary redundant if condition in template]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-13 15:21:52 -08:00
Veiko Aasa
b447627ec8
snapshot: Check that / is a btrfs subvolume before setup
Skip setup the snapshots app if the filesystem type is btrfs
but / is not a btrfs subvolume. For example, this may happen in
containers where / is a bind mounted btrfs filesystem.

Closes #1994

Tests performed:
- Install freedombox on a lxc container inside Pioneer-FreedomBox.
(In a container, / is a bind mounted btrfs filesystem). The snapshot app
setup is skipped.
- Install freedombox inside dev container (which uses btrfs filesystem
image). The snapshot app setup succeeds.
- Install freedombox inside container that uses a host directory as a base
and the filesystem is ext4. The snapshot app setup is skipped.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil: Add comment explaining the check, fix a flake8 message]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-13 14:37:21 -08:00
Veiko Aasa
8a7a4a97d1
apache: Add app name
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-13 14:24:53 -08:00
James Valleroy
6531babe06
config: Mark test_homepage_field as needs_root
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-13 08:20:32 -05:00
Fioddor Superconcentrado
ec870a1766
config: rename functions (improve readability)
Idem for apache component. See !1952.

Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-13 08:20:29 -05:00
Fioddor Superconcentrado
337e8c28dd
config: Add user websites as choices for homepage config.
Closes: #1981
Closes also most of threads in !1952.

Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-13 08:20:26 -05:00
Fioddor Superconcentrado
f527d9af83
Translated using Weblate (Spanish)
Currently translated at 99.9% (1415 of 1416 strings)
2020-12-11 20:29:29 +01:00
Michael Breidenbach
34b8ed5727
Translated using Weblate (Swedish)
Currently translated at 100.0% (1416 of 1416 strings)
2020-12-10 16:29:10 +01:00
Thomas Vincent
8efdcf0633
Translated using Weblate (French)
Currently translated at 100.0% (1416 of 1416 strings)
2020-12-10 16:29:10 +01:00
Johannes Keyser
674b5cafa9
Translated using Weblate (German)
Currently translated at 100.0% (1416 of 1416 strings)
2020-12-10 16:29:09 +01:00
ssantos
db52ab7e69
Translated using Weblate (Portuguese)
Currently translated at 11.5% (164 of 1416 strings)
2020-12-06 20:29:08 +01:00
Burak Yavuz
ce5b245536
Translated using Weblate (Turkish)
Currently translated at 100.0% (1416 of 1416 strings)
2020-12-02 11:29:06 +01:00
ikmaak
744ad11723
Translated using Weblate (Dutch)
Currently translated at 92.8% (1315 of 1416 strings)
2020-12-02 11:29:06 +01:00
James Valleroy
2fc5760af4
Release v20.19 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-11-30 19:09:18 -05:00
James Valleroy
69f30d831d
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-11-30 17:27:30 -05:00
Oymate
0d06a8055a
Translated using Weblate (Bengali)
Currently translated at 0.4% (7 of 1405 strings)
2020-11-30 23:24:53 +01:00