1

Show popular terms in bold

This commit is contained in:
Alex Yatskov 2016-05-29 16:39:35 -07:00
parent 9819229fcd
commit 7bd7f6d344

View File

@ -201,15 +201,22 @@ def buildVocabDef(definition, index, query):
glossary += u'<li>{0}</li>'.format(g)
glossary += u'</ol>'
expression = u'<span class="expression">'
if 'P' in definition['tags']:
expression += u'<strong>{}</strong>'.format(definition['expression'])
else:
expression += definition['expression']
expression += u'</span>'
html = u'''
<span class="links">{links}</span>
<span class="expression">{expression}</span>
{expression}
<span class="reading">{reading}</span>
<span class="rules">{rules}</span>
<span class="glossary">{glossary}<br></span>
<br clear="all">'''.format(
links = links,
expression = definition['expression'],
expression = expression,
reading = reading,
glossary = glossary,
rules = rules