Commit Graph
44 Commits
Author SHA1 Message Date
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 01d50c7ae8 Fix i18n of template expressions 2015-11-14 11:42:32 +05:30
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
James Valleroy 22a020e63b User dropdown menu links to user edit page when javascript is disabled.
Fix indentation.
2015-05-02 10:39:19 -04:00
James Valleroy 62c4eb8f1e Add logout button that is only shown when javascript is disabled. 2015-05-02 10:32:06 -04:00
Sunil Mohan Adapa 7e3a7ad53c Implement a simpler navigation bar
- Add a login menu for 'edit' user, 'change password' and 'logout'
  items.

- Move settings to right and remove label.

- Move documention to right, remove label and change icon.

- Remove apps menu.  User is expected to use the brand icon for reaching
  apps.  It is also the home page and the main focus of entire
  interface.
2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa d22b0d4185 Don't use inverted look for navigation bar
This contribute to a flatter and simple appearance.
2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa 53b0f5aca8 Don't use wells for placing all the content 2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa 3a22e1717e packages: refresh package list before install and handle errors
- Refresh package list before trying to install packages.  Also lookup
  the ID of the package, including the version, using the newly fetched
  package list.

- Call on_install() callback requested by modules only if the package
  installation was successful.  Handle any exception raised in the
  callback itself.

- Handle exceptions raised during packagekit operations.  Also check the
  returned results for error code.

- Capture error/success status during a transaction.  Don't destroy the
  transaction object until the error/success status has been collected.
  When a view is refreshed after completion of a transaction collect the
  result of the transaction and show it to the user.

- Handle cases where package searches in the package list fails.  Simply
  show the package name without its description.
2015-04-04 12:25:12 -04:00
Sunil Mohan Adapa b5bfb388e9 Remove symlinks to javascript libraries 2015-01-13 12:25:17 +05:30
fonfon e905d1a8f2 packagekit: use TemplateView instead of FormView
For the installation procedure a TemplateView is sufficient, and the user
won't be able to edit any form-data on the client-side.
2015-01-05 00:27:45 +05:30
Sunil Mohan Adapa a4be460538 Introduce framework for checking/installing packages
- Uses PackageKit dameon, Glib library wrapping packagekit DBUS API and
  Python bindings for the Glib library.

- Implement a decorator to wrap views requiring packages.

- Framework allows for parallel operations.  However, doing parallel
  operations hangs because of what appears to be PackageKit backend
  limitations.
2015-01-05 00:13:19 +05:30
fonfon ae83566653 removed unused 'title' from subsubmenus 2014-12-15 15:54:40 +01:00
Sunil Mohan Adapa 90203986f2 Remove modules 'expert_mode' and 'lib'.
The login/logout URLs are now in the 'users' module.
2014-12-14 17:26:05 +05:30
fonfon 4b3b3c666a Refactored 'users' module
- allows editing users (currently the groups and username)
- allows any logged-in user to change the passwords of any other users
- improved url highlighting of subsubmenu
2014-12-09 20:49:13 +01:00
Sunil Mohan Adapa 522ece851c Minor indentation fixes in templates 2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa e6b5bed1f3 Use margins or <p> instead of <br /> 2014-12-06 17:08:37 +05:30
fonfon 96a14e3d0d moved 'in-app menu' from the sidebar to the top of the content; some template block renaming 2014-12-06 17:08:37 +05:30
fonfon 8d2e2be7fa removed unused template forms.html 2014-12-02 12:54:04 +01:00
fonfon e2a867901d removed js_block: use page_js or app_js instead 2014-12-02 12:54:04 +01:00
Sunil Mohan Adapa 5b969d9d30 Explicitly write license headers for each source file
The package license (AGPL3+) implicitly indicates the license of each
file.  However, it is desirable to have license headers in each file.
This is the case for many prominent projects like GNU project, Mozilla
etc.
2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa dad4eccbde Remove copyright information in footer for cleaner apperance 2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa 0afe018370 Add screen reader annotation to navigation 2014-11-23 14:24:48 +05:30
Sunil Mohan Adapa 0a553fc797 Simplify navigation icon styling 2014-11-23 14:24:03 +05:30
Sunil Mohan Adapa 0ec7774a2a Use fluid container for navbar 2014-11-23 14:21:10 +05:30
Sunil Mohan Adapa 86c1307dc1 Remove incorrect and unnecessary class .glyphicon-white
Glyph icons automatically take the text color and don't need to be set
an explict color.  Bootstrap 3 does not have the class .glyphicon-white.
2014-11-23 14:14:57 +05:30
Sunil Mohan Adapa 6a1f96d7c2 Bootstrap change .btn-primary -> .btn .btn-primary
Only then the full intended style will apply.  This is a change from
Bootstrap 2 to Bootstrap 3.
2014-11-23 14:08:13 +05:30
fonfon b4df883eee adapted login form size; fixed wrong path of bootstrap.min.js 2014-11-11 22:39:23 +01:00
fonfon f0582e7a94 replaced bootstrap2 by bootstrap3 2014-11-11 19:06:47 +01:00
fonfon e7964a183f login page: auto-focus username input field 2014-10-20 00:15:27 +05:30
Sunil Mohan Adapa 472ffce68a Update URL for reporting issues 2014-08-31 16:13:21 +05:30
Sunil Mohan Adapa 65fa648d9f Reorganize python sources into 'plinth' package 2014-08-29 12:57:27 +05:30