Show popular terms in bold
This commit is contained in:
parent
9819229fcd
commit
7bd7f6d344
@ -201,15 +201,22 @@ def buildVocabDef(definition, index, query):
|
|||||||
glossary += u'<li>{0}</li>'.format(g)
|
glossary += u'<li>{0}</li>'.format(g)
|
||||||
glossary += u'</ol>'
|
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'''
|
html = u'''
|
||||||
<span class="links">{links}</span>
|
<span class="links">{links}</span>
|
||||||
<span class="expression">{expression}</span>
|
{expression}
|
||||||
<span class="reading">{reading}</span>
|
<span class="reading">{reading}</span>
|
||||||
<span class="rules">{rules}</span>
|
<span class="rules">{rules}</span>
|
||||||
<span class="glossary">{glossary}<br></span>
|
<span class="glossary">{glossary}<br></span>
|
||||||
<br clear="all">'''.format(
|
<br clear="all">'''.format(
|
||||||
links = links,
|
links = links,
|
||||||
expression = definition['expression'],
|
expression = expression,
|
||||||
reading = reading,
|
reading = reading,
|
||||||
glossary = glossary,
|
glossary = glossary,
|
||||||
rules = rules
|
rules = rules
|
||||||
|
Loading…
Reference in New Issue
Block a user