69 Commits

Author SHA1 Message Date
Joseph Nuthalapati
93f7c2fa2c
Fix typo in the description meta tag
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-09-11 10:47:03 +05:30
Joseph Nuthalapati
948a222380
turbolinks: Disable caching on application visits
Using the "no-preview" directive disables caching on application visits but
shows cached pages on restoration visits.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 12:23:05 -04:00
Joseph Nuthalapati
daef528576
turbolinks: Replace style elements in head with blocks in body
Turbolinks cannot replace the styles in the head of the HTML document. Moved
them to the body by making the class of the body an overridable Django template
block.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 12:22:57 -04:00
Joseph Nuthalapati
f762f57d1c
Add turbolinks
- Load scripts in the head with `defer` instead of at the end of the body
- Disable turbolinks for application shortcuts and manual download

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 12:22:52 -04:00
Sunil Mohan Adapa
15e02b8f52
Resize all main content
- Needed as the submenu on the left is gone. There is too much space available
  for the main content.

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:19:16 +05:30
Manish Tripathy
0932a07785
Apply new card based design
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:18:37 +05:30
Sunil Mohan Adapa
e644e5c86a
locale: Refactor language selection form
- Use properly base class overrides

- Implement feature to go back to the page user was on before language
  selection.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-21 21:07:39 +01:00
Sai Kiran Naragam
5cff5629d8
locale: Anonymous users can set preferred language
Logged-in user flow is pending.

Check [How django discovers language preference]:
https://docs.djangoproject.com/en/1.10/topics/i18n/translation/#how-django-discovers-language-preference

Signed-off-by: Sai Kiran Naragam <saikiran.rguiiit@gmail.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-02-21 21:06:07 +01:00
Sunil Mohan Adapa
0134aed78e
Rename Plinth to FreedomBox in templates
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:58 -05:00
Sunil Mohan Adapa
dea4af17fb
Rename Plinth to FreedomBox in license headers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:09 -05:00
Aakanksha Saini
18a476b034
navigation bar: change label 'Configuration' to 'System'
Signed-off-by: Aakanksha Saini <aakanksa@thoughtworks.com>
Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2018-01-03 11:01:59 +01:00
James Valleroy
f745ef42f1
Also fix user name in urls for UpdateUser
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2017-10-19 20:50:52 -04:00
Joseph Nuthalapati
d755d42a76
Handle both admin and non-admin user names in update user template
When an admin user goes to the UpdateUser view of a different user, the template
gets only one username which is of the user being updated. This causes the admin
user's name being overwritten in the header section thus making it appear that
the user is modifying themselves and not the admin. This can cause confusion to
the admin user.

Explicitly getting the name of the user that made the request ensures that we
always get the correct username.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-10-19 20:48:37 -04:00
Joseph Nuthalapati
3b3dafe893
power: Merge power merge into the user dropdown
Closes #1074.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-10-18 17:43:24 +05:30
Joseph Nuthalpati
f069f663d0
UI: Make apps and configure pages responsive on small screens
- Hide the listing of apps and configuration options on small screens,
  so that the user doesn't have to navigate to the bottom of the page.
- Closes #921

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
2017-08-09 18:20:44 +02:00
Johannes Keyser
217995a237
navbar: moved logout to user drop-down and added a new power drop-down 2017-06-12 19:29:05 -04:00
Johannes Keyser
8ae6fbbd4c
help: only show help pages if user is logged in 2017-06-07 22:22:08 -04:00
pycat
0e80bb9b02
Fix footer overlap #848
- Added footer responsive layout for tablets too
- Fixed footer ovelap on Laptop media screen
2017-05-18 21:24:28 -04:00
pycat
88272f766e
Plinth footer fixes - UI #840
- Pined footer to the bottom of the viewport
- Introduced a new stylesheet to hold custom responsive css
- Footer bottom fix exluded for smaller viewports
2017-05-11 20:00:37 -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
Rahul De
3248c2573d
Hide apps and sys icons if user is not an admin 2017-03-29 19:12:11 +05:30
Sunil Mohan Adapa
018324a6fc
Update to implementation of new footer
- Internationalize all the strings.

- Fix indentation.

- Use bootstrap row/columns better for footer links.

- Minimize CSS.

- Restore some of the FreedomBox statements until futher discussion.
2017-03-29 17:39:09 +05:30
Soumya97
b44efb939a
Change footer of home page according to new design 2017-03-29 17:38:58 +05:30
Sunil Mohan Adapa
9c65f69e89
Minor fixes to topbar changes
- Move the apps and configuration items outside of navbar header and
  into left navbar group so that it collapses properly for mobile
  view.

- Change link titles to reflect label text.

- Indent properly, remove blank lines.

- Remove need to tweak font size of items.
2017-03-29 11:55:33 +05:30
Soumya97
384327af71
Implement new topbar according to new card based UI 2017-03-29 11:53:01 +05:30
James Valleroy
9b2c7f2d48
Fix link to jsxc-plinth.js in JS license information
Minor updates to html formatting
2016-12-20 17:36:05 -05:00
Swapnil Gupta
d1f5544ae0
Fixed license and its position in base.html 2016-12-20 17:35:52 -05:00
Swapnil Gupta
5c8cbe6c6f
update base.html 2016-12-20 17:35:49 -05:00
Swapnil Gupta
807255a40c
Added license for libreJS to identify 2016-12-20 17:35:44 -05:00
James Valleroy
66e3febc51
frontpage: Set icon size to 300%
Because the icons don't uniquely identify apps, we don't want to
minimize the shortcut text too much.

Rename center-header to center-info.

Minor adjustments to templates for readability.

Update changelog.
2016-12-04 11:34:02 -05:00
mridulnagpal
c501187af9
frontpage view 2016-12-04 11:33:59 -05:00
mridulnagpal
d8b41f1200
icons arranged 2016-12-04 11:33:56 -05:00
James Valleroy
e761789268
Switch from container-fluid to container
This will narrow the content area for larger displays.
2016-09-11 13:14:52 -04:00
Sunil Mohan Adapa
699b595fb0
Fix streched favicon
The current favicon is vertically streched and violates branding
guidelines.  Reuse an existing, correct 32x32 PNG with transparency
instead of .ICO file.  This means that only IE version >= 11 are
supported.  Also use the modern format for specifying the favicon in
HTML.
2016-09-06 19:55:27 -04:00
Sunil Mohan Adapa
a319f78a92
frontpage: Don't show apps link when not logged in
Now, that we have link to the front page, that is the ideal page for
anonymous user to go.  Don't show the apps page link when user is not
logged in.
2016-09-02 20:06:19 +05:30
James Valleroy
3eb7dd914a
Add basic front page with shortcuts to web apps 2016-09-02 20:03:24 +05:30
Sunil Mohan Adapa
572e68dc36
Make remaining uses of brand name customizable 2016-01-24 00:50:14 +05:30
Sunil Mohan Adapa
4602c5bfce
Use translated brand name in templates
Using brand name directly from configuration means that it can't be
easily translated.  Instead use the translated brand name sent in my the
context processor.
2016-01-24 00:37:01 +05:30
Sunil Mohan Adapa
75896d4d1f
box_name instead of FreedomBox in base template 2015-12-30 01:09:55 +05:30
fonfon
0f742d704b
firstboot: Dont show normal mainmenu in help pages
- plus some minor adaptions like titles and using cfg.box_name
2015-12-30 01:08:43 +05:30
Sunil Mohan Adapa
6fddac4471 Remove link from the FreedomBox logo
- Because having FreedomBox logo and the applications icon both
  redirecting to the same page is confusing.
2015-11-28 17:44:43 -05:00
Sunil Mohan Adapa
e507fe163f Use icon for applications button intead of text
The concern that people are unable to find a way to get back to
applications is a correct one.  The recent changes does fix the problem.

However, it takes a step back in the design.  The 'Applications' text is
too prominent.  I propose that we replace it with the commonly used
icon.  Featured in mobile interfaces and on Google home page, users
should have no difficulty identifing it as applications icon.

After experimenting with the placement of the icon, it seems more
asthetically pleasing to have it at the place of 'Applications' text and
not at the center etc.
2015-11-28 17:44:43 -05:00
Sunil Mohan Adapa
02cd89b60d Internationalize strings in template files 2015-11-13 22:02:17 +05:30
Sunil Mohan Adapa
f3a0c70d23 first_boot: Add separate greeting page 2015-10-28 20:02:56 -04:00
fonfon
c2bd038ef2 changed description texts in the main landing pages 2015-10-28 19:52:14 -04:00
fonfon
b934668dc5 renamed menu entry 'FreedomBox' to 'Applications' 2015-10-28 19:52:14 -04:00
fonfon
5591047df3 base template: added titles to the main menu 2015-10-28 19:52:14 -04:00
Sunil Mohan Adapa
09fa98f8b1 Make login box thinner and fix identation 2015-09-19 17:36:47 +05:30
ashok
5f9ddae0a9 Login Page 2015-09-17 23:21:42 +05:30
Sunil Mohan Adapa
9752ab8188 Use modernizr & CSS for user menu without JS
Modernizr adds a class called 'js' to the <html> element when javascript
is available.  We, as a part of basic modernizr setup, add a class
called 'no-js' to <html> element by default.  Use this fact to show/hide
elements when javascript is not available.
2015-05-04 00:56:37 +05:30