Show link to instruction on how to change affiliation

Closes bug 1215889

Change-Id: I0d423f54e3ee6c2d9c4a3258ddfe8e06eb3998ac
This commit is contained in:
Ilya Shakhat 2013-10-17 13:23:24 +04:00
parent adca768422
commit 4cb4a19544
2 changed files with 10 additions and 2 deletions

View File

@ -164,7 +164,10 @@
<div style="float: left;"><img src="${gravatar}"></div>
<div style="margin-left: 90px;">
<h2>${user_name}</h2>
<div>Company: {%html company_link %}</div>
<div>Company: {%html company_link %}
[<span style="font-style: italic;"><a
href="https://wiki.openstack.org/wiki/Stackalytics#Company_affiliation" style="color: grey" target="_blank">how to change↗</a></span>]
</div>
{%if launchpad_id != '' %}
<div>Launchpad: <a href="https://launchpad.net/~${launchpad_id}">${launchpad_id}</a></div>
{%/if%}

View File

@ -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'],