Minor UI improvements
Change-Id: I6ac4b603d80e88f2c9b8bad852767056eac1a791
This commit is contained in:
@@ -387,11 +387,6 @@ def templated(template=None, return_code=200):
|
||||
ctx['review_nth'] = (flask.request.args.get('review_nth') or
|
||||
parameters.get_default('review_nth'))
|
||||
|
||||
ctx['project_type_options'] = vault.get_project_types()
|
||||
ctx['release_options'] = vault.get_release_options()
|
||||
ctx['metric_options'] = sorted(parameters.METRIC_LABELS.items(),
|
||||
key=lambda x: x[0])
|
||||
|
||||
ctx['company'] = parameters.get_single_parameter(kwargs, 'company')
|
||||
ctx['company_original'] = (
|
||||
vault.get_memory_storage().get_original_company_name(
|
||||
@@ -403,6 +398,9 @@ def templated(template=None, return_code=200):
|
||||
ctx['module_inst'] = vault_inst['module_id_index'][module]
|
||||
|
||||
ctx['user_id'] = parameters.get_single_parameter(kwargs, 'user_id')
|
||||
if ctx['user_id']:
|
||||
ctx['user_inst'] = vault.get_user_from_runtime_storage(
|
||||
ctx['user_id'])
|
||||
ctx['page_title'] = helpers.make_page_title(
|
||||
ctx['company'], ctx['user_id'], ctx['module'], ctx['release'])
|
||||
ctx['stackalytics_version'] = (
|
||||
|
@@ -18,15 +18,15 @@
|
||||
|
||||
{% macro show_report_links(module=None, company=None, user_id=None) -%}
|
||||
{% if module %}
|
||||
<div><b><a href="/report/reviews/{{ module }}/open" target="_blank">Show open reviews for {{ module }}</a></b></div>
|
||||
<div><b><a href="/report/contribution/{{ module }}/30" target="_blank">Contribution for the last 30 days in {{ module }}</a></b></div>
|
||||
<div><b><a href="/report/contribution/{{ module }}/90" target="_blank">Contribution for the last 90 days in {{ module }}</a></b></div>
|
||||
<div><b><a href="/report/reviews/{{ module }}/open" target="_blank">Show open reviews for {{ module_inst.module_group_name }}</a></b></div>
|
||||
<div><b><a href="/report/contribution/{{ module }}/30" target="_blank">Contribution for the last 30 days in {{ module_inst.module_group_name }}</a></b></div>
|
||||
<div><b><a href="/report/contribution/{{ module }}/90" target="_blank">Contribution for the last 90 days in {{ module_inst.module_group_name }}</a></b></div>
|
||||
{% endif %}
|
||||
{% if company %}
|
||||
<div><b><a href="/report/companies/{{ company }}" target="_blank">Show activity report for {{ company_original }}</a></b></div>
|
||||
{% endif %}
|
||||
{% if user_id %}
|
||||
<div><b><a href="/report/users/{{ user_id }}" target="_blank">Show activity report for {{ user_id }}</a></b></div>
|
||||
<div><b><a href="/report/users/{{ user_id }}" target="_blank">Show activity report for {{ user_inst.user_name }}</a></b></div>
|
||||
{% endif %}
|
||||
{%- endmacro %}
|
||||
|
||||
|
Reference in New Issue
Block a user