## -*- coding: utf-8 -*- <% c.template_context['repo_name'] = getattr(c, 'repo_name', '') if hasattr(c, 'rhodecode_db_repo'): c.template_context['repo_type'] = c.rhodecode_db_repo.repo_type c.template_context['repo_landing_commit'] = c.rhodecode_db_repo.landing_rev[1] if getattr(c, 'rhodecode_user', None) and c.rhodecode_user.user_id: c.template_context['rhodecode_user']['username'] = c.rhodecode_user.username c.template_context['rhodecode_user']['email'] = c.rhodecode_user.email c.template_context['rhodecode_user']['notification_status'] = c.rhodecode_user.get_instance().user_data.get('notification_status', True) c.template_context['rhodecode_user']['first_name'] = c.rhodecode_user.name c.template_context['rhodecode_user']['last_name'] = c.rhodecode_user.lastname c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer') %>