Skip to content

Commit

Permalink
Merge pull request #78 from EUDAT-B2FIND/reltype_badge
Browse files Browse the repository at this point in the history
added badge for relatedIdentifier: relationType.
  • Loading branch information
Lenzma authored Mar 7, 2024
2 parents ebecddd + 4da5bb0 commit 6325f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/b2find/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def display_relidtype(*args, **kw):
parts = text.split("|")
link = f'<a href="{parts[0]}" target="_blank">{parts[0]}</a>'
if len(parts) == 3:
new_text = f"{parts[2]}: {link}"
new_text = f'<span class="label label-info">{parts[2]}</span> {link}'
else:
new_text = link
return literal(new_text)
Expand Down

0 comments on commit 6325f25

Please sign in to comment.