77 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
72c1c7349f
js: Remove javascript license link from footer
The link is hidden but not removed. librejs will still parse it. Ideally we
would want to do this from <link data-jslicense='1' href=''> but that seems to
cause problems for librejs.

Librejs users can still find out about the license of Javscript script file
using Librejs menu.

We already have a link to FreedomBox source code in the home page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-29 22:19:34 +05:30
Sunil Mohan Adapa
4c65d34741
ui: Hide restart/shutdown items when navbar is collapsed
- Keep unimportant items hidden on small screens.

- Remove dividers that cause confusion.

- Avoid a scrollbar inside the menu when user menu is expanded. Bootstrap
  intended to show exactly 8 menu items.

Fixes #1431.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:57 +05:30
Sunil Mohan Adapa
d767e64703
ui: Show help nav item text when navbar is collapsed
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:46 +05:30
Sunil Mohan Adapa
bacb0c056a
ui: Underline the logo along with 'Home' text when active
- This works properly in mobile sizes by underlining only the logo.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:47:03 +05:30
Sunil Mohan Adapa
7279db3f2c
ui: Fix top margin for content containers
Currently, when a message is shown at the top or in users and groups page, The
top margin is too short. Increase it to 25px from 5px. Also:

- Don't use the .thumbnail class for containers as this does not match the
  semantics. Create and use class .contain-container.

- Also create class .card-container for all container containing cards. Unused
  for now.

- Indentation fixes.

- Remove duplicated rule.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-18 11:46:23 +05:30
Sunil Mohan Adapa
d89011cc01
Fix i18n for menu strings
- There should not be a space in front of the text. This is a styling issue.

- Remove the CSS rule causing issues with spacing.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-14 17:38:04 -08:00
Prachi Srivastava
5d68f6bf52
Replace glyphicons with forkawesome icons
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-14 17:37:58 -08:00
Robert Martinez
966b2cb36a
Add white Card
This puts pages on white cards.
This lets the footer float underneath content instead of bottom of the page.
This should fix issues with MR !1335

Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-11-21 17:54:11 +05:30
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