Show link to instruction on how to change affiliation
Closes bug 1215889 Change-Id: I0d423f54e3ee6c2d9c4a3258ddfe8e06eb3998ac
This commit is contained in:
parent
adca768422
commit
4cb4a19544
@ -164,7 +164,10 @@
|
|||||||
<div style="float: left;"><img src="${gravatar}"></div>
|
<div style="float: left;"><img src="${gravatar}"></div>
|
||||||
<div style="margin-left: 90px;">
|
<div style="margin-left: 90px;">
|
||||||
<h2>${user_name}</h2>
|
<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 != '' %}
|
{%if launchpad_id != '' %}
|
||||||
<div>Launchpad: <a href="https://launchpad.net/~${launchpad_id}">${launchpad_id}</a></div>
|
<div>Launchpad: <a href="https://launchpad.net/~${launchpad_id}">${launchpad_id}</a></div>
|
||||||
{%/if%}
|
{%/if%}
|
||||||
|
@ -815,8 +815,13 @@ def get_bpd(records):
|
|||||||
result = []
|
result = []
|
||||||
for record in records:
|
for record in records:
|
||||||
if record['record_type'] in ['bpd', 'bpc']:
|
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({
|
result.append({
|
||||||
'date': format_date(record['mention_date']),
|
'date': date,
|
||||||
'status': record['lifecycle_status'],
|
'status': record['lifecycle_status'],
|
||||||
'metric': record.get('mention_count') or 0,
|
'metric': record.get('mention_count') or 0,
|
||||||
'id': record['name'],
|
'id': record['name'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user