8 Commits

Author SHA1 Message Date
Johannes Keyser
2b0cf1b987
disks: add missing import json 2017-05-08 20:59:51 -04:00
Sunil Mohan Adapa
ee7cc98fee
apps, system: Remove modules and merge into main
- Remove apps and system modules and merge their views into main views.

- Move main_menu from cfg into menu.py.

- Remove dependencies of other modules on apps and system modules.

- Update tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-05-05 22:31:45 -04:00
Johannes Keyser
89146f64ce
disks: Use information from lsblk for more accuracy
Closes #795.  On a Raspberry Pi, the root partition was show as being
mounted from /dev/root.  Use information from lsblk to more acurately
indentify the device as /dev/mmcblk0p2.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-05-01 17:01:40 +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
ff0d117a89
Readjust the responsive widths of various tables
Most tables now occupy the full width of the container row.  Some of
them are otherwise squished.  Also make sure the new fixed container
layout has not reduced the originally intended width of a table.
2016-09-11 13:15:00 -04:00
Sunil Mohan Adapa
18996b5c56
Import urlresolvers from django.urls
In Django 1.10, django.core.urlresolvers is available from
django.urls. Use it.
2016-08-11 18:03:00 -04:00
Sunil Mohan Adapa
9ac37465dd
disks: New module to manage disks
- Show free space of currently mounted partitions.  Should help with
  people running out of free space and ending up with non-working
  system.  In future, this module could emit more visible messages.

- Show and allow expanding root partition to help people who have
  written FreedomBox images to higher capacity SD cards.  Very selective
  and restrictive checks to minimize problems.

- Automated tests to ensure expansion works in non-trivial senarious.
2016-06-19 16:20:01 -04:00