Compare commits

..

2 commits

Author SHA1 Message Date
rlx
3fa099460b Merge branch 'master' of https://code.0x2620.org/0x2620/pandora_cms 2018-08-06 19:45:31 +01:00
rlx
0ced15df7b fix links 2018-08-06 19:44:46 +01:00

View file

@ -88,9 +88,9 @@ for string in sorted(strings):
parent_items[parts[-2]], parts[-2]
)
if string in child_items:
parts_[-1] = '<a href="https://{}/clip/text/keywords=={}:_{}" target="_blank" title="{}">{}</a>'.format(
site, parts[-2].replace(' ', '_'), parts[-1].replace(' ', '_'),
child_items[string], parts[-1]
parts_[-1] = '<a href="https://{}/clip/text/keywords=={}{}" target="_blank" title="{}">{}</a>'.format(
site, '{}:_'.format(parts[-2].replace(' ', '_')) if parts[-2] != 'unknown' else '',
parts[-1].replace(' ', '_'), child_items[string], parts[-1]
)
html.append(': '.join(parts_))
template = open('ontology_template.html').read()