Show More
@@ -202,6 +202,11 b' class SettingsController(BaseController)' | |||
|
202 | 202 | form_result['rhodecode_lightweight_dashboard'] |
|
203 | 203 | Session().add(sett4) |
|
204 | 204 | |
|
205 | sett5 = RhodeCodeSetting.get_by_name_or_create('lightweight_journal') | |
|
206 | sett5.app_settings_value = \ | |
|
207 | form_result['rhodecode_lightweight_journal'] | |
|
208 | Session().add(sett5) | |
|
209 | ||
|
205 | 210 | Session().commit() |
|
206 | 211 | set_rhodecode_config(config) |
|
207 | 212 | h.flash(_('Updated visualisation settings'), |
@@ -246,6 +246,7 b' class BaseController(WSGIController):' | |||
|
246 | 246 | c.visual.show_private_icon = str2bool(config.get('rhodecode_show_private_icon')) |
|
247 | 247 | c.visual.stylify_metatags = str2bool(config.get('rhodecode_stylify_metatags')) |
|
248 | 248 | c.visual.lightweight_dashboard = str2bool(config.get('rhodecode_lightweight_dashboard')) |
|
249 | c.visual.lightweight_journal = str2bool(config.get('rhodecode_lightweight_dashboard')) | |
|
249 | 250 | |
|
250 | 251 | c.repo_name = get_repo_slug(request) |
|
251 | 252 | c.backends = BACKENDS.keys() |
@@ -500,7 +500,8 b' def action_parser(user_log, feed=False, ' | |||
|
500 | 500 | :param feed: use output for feeds (no html and fancy icons) |
|
501 | 501 | :param parse_cs: parse Changesets into VCS instances |
|
502 | 502 | """ |
|
503 | if request.GET.get('lightweight'): | |
|
503 | from pylons import tmpl_context as c | |
|
504 | if c.visual.lightweight_journal: | |
|
504 | 505 | parse_cs = False |
|
505 | 506 | action = user_log.action |
|
506 | 507 | action_params = ' ' |
@@ -531,7 +532,7 b' def action_parser(user_log, feed=False, ' | |||
|
531 | 532 | revision=rev.raw_id) |
|
532 | 533 | title = tooltip(rev.message) if parse_cs else '' |
|
533 | 534 | else: |
|
534 | lbl = '%s' % rev | |
|
535 | lbl = ('%s' % rev)[:12] | |
|
535 | 536 | _url = '#' |
|
536 | 537 | title = _('Changeset not found') |
|
537 | 538 |
@@ -255,6 +255,7 b' def ApplicationVisualisationForm():' | |||
|
255 | 255 | rhodecode_stylify_metatags = v.StringBoolean(if_missing=False) |
|
256 | 256 | |
|
257 | 257 | rhodecode_lightweight_dashboard = v.StringBoolean(if_missing=False) |
|
258 | rhodecode_lightweight_journal = v.StringBoolean(if_missing=False) | |
|
258 | 259 | |
|
259 | 260 | return _ApplicationVisualisationForm |
|
260 | 261 |
@@ -131,6 +131,10 b'' | |||
|
131 | 131 | ${h.checkbox('rhodecode_lightweight_dashboard','True')} |
|
132 | 132 | <label for="rhodecode_lightweight_dashboard">${_('Use lightweight dashboard')}</label> |
|
133 | 133 | </div> |
|
134 | <div class="checkbox"> | |
|
135 | ${h.checkbox('rhodecode_lightweight_journal','True')} | |
|
136 | <label for="rhodecode_lightweight_journal">${_('Use lightweight journal')}</label> | |
|
137 | </div> | |
|
134 | 138 | </div> |
|
135 | 139 | </div> |
|
136 | 140 |
General Comments 0
You need to be logged in to leave comments.
Login now