From 4cb4a19544d0c442709e2101f0b3bf0d4d137f24 Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Thu, 17 Oct 2013 13:23:24 +0400 Subject: [PATCH] Show link to instruction on how to change affiliation Closes bug 1215889 Change-Id: I0d423f54e3ee6c2d9c4a3258ddfe8e06eb3998ac --- dashboard/templates/overview.html | 5 ++++- dashboard/web.py | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dashboard/templates/overview.html b/dashboard/templates/overview.html index 0d10e1d29..6687530b7 100644 --- a/dashboard/templates/overview.html +++ b/dashboard/templates/overview.html @@ -164,7 +164,10 @@

${user_name}

-
Company: {%html company_link %}
+
Company: {%html company_link %} + [how to change↗] +
{%if launchpad_id != '' %}
Launchpad: ${launchpad_id}
{%/if%} diff --git a/dashboard/web.py b/dashboard/web.py index 97397ebf4..2805f6a03 100644 --- a/dashboard/web.py +++ b/dashboard/web.py @@ -815,8 +815,13 @@ def get_bpd(records): result = [] for record in records: if record['record_type'] in ['bpd', 'bpc']: + mention_date = record.get('mention_date') + if mention_date: + date = format_date(mention_date) + else: + date = 'never' result.append({ - 'date': format_date(record['mention_date']), + 'date': date, 'status': record['lifecycle_status'], 'metric': record.get('mention_count') or 0, 'id': record['name'],