Michael Price
de65d96fe2
Update cabinets and document_index api views docstrings. Update multi level docstrings as per Python best practices.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:27:45 -04:00
Eric Riggs
410f8fed76
- Fix login and authentication views by adding the html_extra_classes Link attribute and using it to avoid loading authentication clicks as partials.
...
- Add a new base_plain template as parernt for the authentication templates.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:47 -04:00
Eric Riggs
5b3285c006
Add periodic AJAX workers to update the value of the notifications link.
...
Signed-off-by: Eric Riggs <ericriggs42@gmail.com >
2018-04-01 19:57:38 -04:00
Michael Price
381dafc7b9
Update to Font Awesome 5. Add experimental Icon class. Simplify document loading icon.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-01 19:53:03 -04:00
Roberto Rosario
da8fa6f91c
Fix resolved link class URL mangling when the keep_query argument is used.
...
Fixes source navigation on the document upload wizard. Thanks to
Nick Douma (LordGaav) for the report and diagnostic information. GitLab
issue #436 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-09-10 20:32:13 -04:00
Roberto Rosario
27468651ff
Support unicode in URL querystring. GitLab issue #423 .
...
Thanks to Gustavo Teixeira (@gsteixei) for the find.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-31 03:10:44 -04:00
Roberto Rosario
c375282de0
Remove repeated import.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-31 02:17:57 -04:00
Roberto Rosario
83491dd7e1
Update urllib imports to use django.six. Use items(). Update usage
...
if sorted for Python 3.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-29 02:08:59 -04:00
Roberto Rosario
31681c66a1
Fix menu test cases by not reseting the entire menu class cache,
...
but only specific temporary test menus.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-10 03:16:03 -04:00
Roberto Rosario
6ec235afc0
Add support for multiple dashboards.
...
Add support for removing dashboard widgets.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-10 02:56:40 -04:00
Roberto Rosario
0efbf79fa1
Add support for unbinding sub-menus.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-09 01:36:43 -04:00
Roberto Rosario
c96745ce0e
Add ordering support to the SourceColumn class. GitLab issue #417 .
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-02 20:56:42 -04:00
Roberto Rosario
d49a5f43ed
Add missing replacements of reverse to resolve_url.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-25 08:23:26 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
804b077115
Fix typos in new link unbinding code.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-16 04:04:52 -04:00
Roberto Rosario
524a0d0c35
Improve link unbinding code for all cases.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-16 02:20:47 -04:00
Roberto Rosario
e5685eee04
Improve code to unbind menu entries.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-15 15:57:27 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
Roberto Rosario
5629033578
Menu reorganization.
...
The "About" menu has been renamed to "System".
The "Tools" and "Setup" sub menus, were moved from the "Profile" menu
to the "System" menu.
The "Profile" menu has been renamed to "User".
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-04 02:06:32 -04:00
Roberto Rosario
f11ffdec52
Use force_text for debug print to avoid showing non critical unicode errors in the console.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-03-06 23:09:53 -04:00
Roberto Rosario
958ce912a0
AccessControlList.objects.check_access was updated to do a
...
Permission.check_permissions too. Remove duplicity.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-22 16:48:59 -04:00
Roberto Rosario
a3c1b0873d
Add links to the documentation, support page, forum and source in
...
the about menu. Make the about menu a nested menu.
2017-01-16 01:50:14 -04:00
Roberto Rosario
aa91bce3ab
Add support for drop down menu in the navigation bar. Simplify the home screen.
2016-11-12 01:56:31 -04:00
Roberto Rosario
d4a95ddb8b
Add new menu instance for user related links.
2016-11-10 23:32:43 -04:00
Roberto Rosario
69bcade6fb
Don't asume all non model instances have the get_deferred_fields method (ie: Statistics).
...
GitLab issue #331
2016-11-04 01:52:33 -04:00
Roberto Rosario
31b2464899
Add explicit test for deferred fields instances in menu resolution.
...
Fixes document link appearing in deleted document views. Fixes GitLab issue #331 .
2016-11-03 18:33:25 -04:00
Roberto Rosario
696c2be2f3
Fix link global permission check.
2016-11-02 16:09:16 -04:00
Roberto Rosario
5893e149e0
Reduce the check_access boilerplate code.
2016-11-02 04:58:05 -04:00
Roberto Rosario
621c988809
Simplify filter_by_access boilerplate code
2016-11-02 03:48:16 -04:00
Roberto Rosario
8250085703
Statistics navigation links are not tied to querysets or model instances,
...
don't fail when failing to access their _meta field. Fixes GitLab issue #316 .
2016-10-20 03:46:49 -04:00
Roberto Rosario
3d722325ca
Fix navigation object column resolution. Fixes GitLab issue #288 .
2016-05-17 01:36:12 -04:00
Roberto Rosario
7da6408de0
Add second attempt to match a navigation object as an instance of a source. Use for instances from a queryset using .defer() or .only().
2016-05-12 01:48:42 -04:00
Roberto Rosario
9c22fc9714
Fix link related object ACL resolution. GitLab issue #274 . Thanks to Baptiste GAILLET @bat79a.
2016-05-11 03:37:51 -04:00
Roberto Rosario
55d53bf4d5
Equate queryset model instances with deffered fields to their parent model class when resolving UI model columns.
...
This will allow models using .defer or .only optimizations to render properly on list views.
2016-05-09 19:55:03 -04:00
Roberto Rosario
739b96ed37
Add related object link permission support.
2016-03-29 16:27:53 -04:00
Roberto Rosario
27d8644438
Silence 90% of remaining Django 1.8 model warnings.
2016-01-28 05:43:08 -04:00
Roberto Rosario
f4a461e5a5
Don't error out link resolution if user doesn't has permission for the object argument. This issue manifests during the forcefull check in attempt of issue GL #237 . Solved and test added.
2015-10-26 02:15:53 -04:00
Roberto Rosario
ce07077f3e
Test links ACL against the view's resolved_object or fallback to test against the {{ object }} context variable. Solves GL issue #230 .
2015-10-25 01:54:18 -04:00
Roberto Rosario
5167e91c90
Remove TODO reminder, this link position was implemented.
2015-10-19 02:54:34 -04:00
Roberto Rosario
d4d9a5a276
Fail elegantly when resolving a menu and there is no request variable.
2015-10-09 23:39:56 -04:00
Roberto Rosario
cbe77ee258
Dynamic links do not have a menu position entry. Use .get to avoid error on non existant entries.
2015-10-07 02:43:01 -04:00
Roberto Rosario
4b1bb38c86
Implement menu link ordering.
2015-09-27 02:18:04 -04:00
Roberto Rosario
b335f70e57
Improve how unbounded links are calculated and removed from results.
2015-09-27 01:42:12 -04:00
Roberto Rosario
df417f562c
PEP8 Cleanups (471 warnings).
2015-09-17 21:34:27 -04:00
Roberto Rosario
1dee5a8e78
Add support for unbinding links from sources by menu. Improve ResolvedLink class. Remove Link class 'klass' property.
2015-09-16 20:09:31 -04:00
Roberto Rosario
4ff19c6f95
Remove CombinedSource class now that is no longer needed.
2015-08-24 02:27:44 -04:00
Roberto Rosario
9b51dea22b
Fix missing object buttons for keys.
2015-08-23 21:52:31 -04:00
Roberto Rosario
0d3c2defe2
Improve date rendering.
2015-08-20 00:08:28 -04:00
Roberto Rosario
60bc327756
Improve SourceColumn workflow by allowing explicit functions as columns. Remove usage of encapsulate. Move instances of 'extra_columns' to SourceColumn.
2015-08-16 14:26:41 -04:00
Roberto Rosario
3b728328ad
PEP8 cleanups, E501.
2015-07-23 04:05:29 -04:00