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