Add the service type to the project page title

This has the advantage of including the service type in the list of projects
which gives readers some extra context in an otherwise potentially bewildering
list of names.

Change-Id: Icf6a644d283368f957b978fa4321800d15f38f3e
This commit is contained in:
Dougal Matthews 2016-03-01 12:13:22 +00:00
parent 30a0d73a6c
commit 852db7a9e2

View File

@ -25,11 +25,17 @@ IRC_LOG_URL_BASE = 'http://eavesdrop.openstack.org/irclogs/%23'
def _team_to_rst(name, info):
if 'service' in info:
title = "{0} ({1})".format(name.title(), info['service'])
else:
title = name.title()
yield '.. _project-%s:' % projects.slugify(name)
yield ''
yield '=' * len(name)
yield name.title()
yield '=' * len(name)
yield '=' * len(title)
yield title
yield '=' * len(title)
yield ''
yield ':Home Page: ' + info.get('url', '')
ptl = info.get('ptl', {'name': '', 'irc': ''})