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