Show More
@@ -29,6 +29,7 b' pdebug = false' | |||||
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
|
32 | ## PASTE | |||
32 | ##nr of threads to spawn |
|
33 | ##nr of threads to spawn | |
33 | #threadpool_workers = 5 |
|
34 | #threadpool_workers = 5 | |
34 |
|
35 | |||
@@ -39,7 +40,11 b' pdebug = false' | |||||
39 | #use_threadpool = true |
|
40 | #use_threadpool = true | |
40 |
|
41 | |||
41 | #use = egg:Paste#http |
|
42 | #use = egg:Paste#http | |
|
43 | ||||
|
44 | #WAITRESS | |||
|
45 | threads = 5 | |||
42 | use = egg:waitress#main |
|
46 | use = egg:waitress#main | |
|
47 | ||||
43 | host = 0.0.0.0 |
|
48 | host = 0.0.0.0 | |
44 | port = 5000 |
|
49 | port = 5000 | |
45 |
|
50 | |||
@@ -54,7 +59,7 b' use = egg:rhodecode' | |||||
54 | full_stack = true |
|
59 | full_stack = true | |
55 | static_files = true |
|
60 | static_files = true | |
56 | # Optional Languages |
|
61 | # Optional Languages | |
57 | # en, fr, ja, pt_BR, zh_CN, zh_TW |
|
62 | # en, fr, ja, pt_BR, zh_CN, zh_TW, pl | |
58 | lang = en |
|
63 | lang = en | |
59 | cache_dir = %(here)s/data |
|
64 | cache_dir = %(here)s/data | |
60 | index_dir = %(here)s/data/index |
|
65 | index_dir = %(here)s/data/index | |
@@ -63,6 +68,8 b' cut_off_limit = 256000' | |||||
63 | vcs_full_cache = True |
|
68 | vcs_full_cache = True | |
64 | force_https = false |
|
69 | force_https = false | |
65 | commit_parse_limit = 25 |
|
70 | commit_parse_limit = 25 | |
|
71 | # number of items displayed in lightweight dashboard before paginating | |||
|
72 | dashboard_items = 100 | |||
66 | use_gravatar = true |
|
73 | use_gravatar = true | |
67 |
|
74 | |||
68 | ## RSS feed options |
|
75 | ## RSS feed options |
@@ -29,6 +29,7 b' pdebug = false' | |||||
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
|
32 | ## PASTE | |||
32 | ##nr of threads to spawn |
|
33 | ##nr of threads to spawn | |
33 | #threadpool_workers = 5 |
|
34 | #threadpool_workers = 5 | |
34 |
|
35 | |||
@@ -39,7 +40,11 b' pdebug = false' | |||||
39 | #use_threadpool = true |
|
40 | #use_threadpool = true | |
40 |
|
41 | |||
41 | #use = egg:Paste#http |
|
42 | #use = egg:Paste#http | |
|
43 | ||||
|
44 | #WAITRESS | |||
|
45 | threads = 5 | |||
42 | use = egg:waitress#main |
|
46 | use = egg:waitress#main | |
|
47 | ||||
43 | host = 127.0.0.1 |
|
48 | host = 127.0.0.1 | |
44 | port = 8001 |
|
49 | port = 8001 | |
45 |
|
50 | |||
@@ -54,7 +59,7 b' use = egg:rhodecode' | |||||
54 | full_stack = true |
|
59 | full_stack = true | |
55 | static_files = true |
|
60 | static_files = true | |
56 | # Optional Languages |
|
61 | # Optional Languages | |
57 | # en, fr, ja, pt_BR, zh_CN, zh_TW |
|
62 | # en, fr, ja, pt_BR, zh_CN, zh_TW, pl | |
58 | lang = en |
|
63 | lang = en | |
59 | cache_dir = %(here)s/data |
|
64 | cache_dir = %(here)s/data | |
60 | index_dir = %(here)s/data/index |
|
65 | index_dir = %(here)s/data/index | |
@@ -63,6 +68,8 b' cut_off_limit = 256000' | |||||
63 | vcs_full_cache = True |
|
68 | vcs_full_cache = True | |
64 | force_https = false |
|
69 | force_https = false | |
65 | commit_parse_limit = 50 |
|
70 | commit_parse_limit = 50 | |
|
71 | # number of items displayed in lightweight dashboard before paginating | |||
|
72 | dashboard_items = 100 | |||
66 | use_gravatar = true |
|
73 | use_gravatar = true | |
67 |
|
74 | |||
68 | ## RSS feed options |
|
75 | ## RSS feed options |
@@ -29,6 +29,7 b' pdebug = false' | |||||
29 | #smtp_auth = |
|
29 | #smtp_auth = | |
30 |
|
30 | |||
31 | [server:main] |
|
31 | [server:main] | |
|
32 | ## PASTE | |||
32 | ##nr of threads to spawn |
|
33 | ##nr of threads to spawn | |
33 | #threadpool_workers = 5 |
|
34 | #threadpool_workers = 5 | |
34 |
|
35 | |||
@@ -39,7 +40,11 b' pdebug = false' | |||||
39 | #use_threadpool = true |
|
40 | #use_threadpool = true | |
40 |
|
41 | |||
41 | #use = egg:Paste#http |
|
42 | #use = egg:Paste#http | |
|
43 | ||||
|
44 | #WAITRESS | |||
|
45 | threads = 5 | |||
42 | use = egg:waitress#main |
|
46 | use = egg:waitress#main | |
|
47 | ||||
43 | host = 127.0.0.1 |
|
48 | host = 127.0.0.1 | |
44 | port = 5000 |
|
49 | port = 5000 | |
45 |
|
50 | |||
@@ -63,6 +68,8 b' cut_off_limit = 256000' | |||||
63 | vcs_full_cache = True |
|
68 | vcs_full_cache = True | |
64 | force_https = false |
|
69 | force_https = false | |
65 | commit_parse_limit = 50 |
|
70 | commit_parse_limit = 50 | |
|
71 | # number of items displayed in lightweight dashboard before paginating | |||
|
72 | dashboard_items = 100 | |||
66 | use_gravatar = true |
|
73 | use_gravatar = true | |
67 |
|
74 | |||
68 | ## RSS feed options |
|
75 | ## RSS feed options |
@@ -18,7 +18,7 b' from pylons.templating import render_mak' | |||||
18 | from rhodecode import __version__, BACKENDS |
|
18 | from rhodecode import __version__, BACKENDS | |
19 |
|
19 | |||
20 | from rhodecode.lib.utils2 import str2bool, safe_unicode, AttributeDict,\ |
|
20 | from rhodecode.lib.utils2 import str2bool, safe_unicode, AttributeDict,\ | |
21 | safe_str |
|
21 | safe_str, safe_int | |
22 | from rhodecode.lib.auth import AuthUser, get_container_username, authfunc,\ |
|
22 | from rhodecode.lib.auth import AuthUser, get_container_username, authfunc,\ | |
23 | HasPermissionAnyMiddleware, CookieStoreWrapper |
|
23 | HasPermissionAnyMiddleware, CookieStoreWrapper | |
24 | from rhodecode.lib.utils import get_repo_slug, invalidate_cache |
|
24 | from rhodecode.lib.utils import get_repo_slug, invalidate_cache | |
@@ -248,6 +248,7 b' class BaseController(WSGIController):' | |||||
248 | c.visual.show_private_icon = str2bool(rc_config.get('rhodecode_show_private_icon')) |
|
248 | c.visual.show_private_icon = str2bool(rc_config.get('rhodecode_show_private_icon')) | |
249 | c.visual.stylify_metatags = str2bool(rc_config.get('rhodecode_stylify_metatags')) |
|
249 | c.visual.stylify_metatags = str2bool(rc_config.get('rhodecode_stylify_metatags')) | |
250 | c.visual.lightweight_dashboard = str2bool(rc_config.get('rhodecode_lightweight_dashboard')) |
|
250 | c.visual.lightweight_dashboard = str2bool(rc_config.get('rhodecode_lightweight_dashboard')) | |
|
251 | c.visual.lightweight_dashboard_items = safe_int(config.get('dashboard_items', 100)) | |||
251 |
|
252 | |||
252 | c.repo_name = get_repo_slug(request) |
|
253 | c.repo_name = get_repo_slug(request) | |
253 | c.backends = BACKENDS.keys() |
|
254 | c.backends = BACKENDS.keys() |
@@ -274,7 +274,7 b'' | |||||
274 | var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{ |
|
274 | var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{ | |
275 | sortedBy:{key:"name",dir:"asc"}, |
|
275 | sortedBy:{key:"name",dir:"asc"}, | |
276 | paginator: new YAHOO.widget.Paginator({ |
|
276 | paginator: new YAHOO.widget.Paginator({ | |
277 | rowsPerPage: 15, |
|
277 | rowsPerPage: ${c.visual.lightweight_dashboard_items}, | |
278 | alwaysVisible: false, |
|
278 | alwaysVisible: false, | |
279 | template : "{PreviousPageLink} {FirstPageLink} {PageLinks} {LastPageLink} {NextPageLink}", |
|
279 | template : "{PreviousPageLink} {FirstPageLink} {PageLinks} {LastPageLink} {NextPageLink}", | |
280 | pageLinks: 5, |
|
280 | pageLinks: 5, |
General Comments 0
You need to be logged in to leave comments.
Login now