mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: make dependency source use superscript tag
Avoid using special characters and use '<sup>' HTML tag instead. To not rely on user's fonts Unicode coverage. Closes: #490 Signed-off-by: Hanabishi <1722-hanabishi@users.noreply.gitlab.archlinux.org>
This commit is contained in:
parent
27c51430fb
commit
2b8c8fc92a
3 changed files with 4 additions and 4 deletions
|
@ -85,7 +85,7 @@ def package_link(package: Union[Package, OfficialProvider]) -> str:
|
|||
def provides_markup(provides: Providers) -> str:
|
||||
links = []
|
||||
for pkg in provides:
|
||||
aur = "ᴬᵁᴿ" if not pkg.is_official else ""
|
||||
aur = "<sup><small>AUR</small></sup>" if not pkg.is_official else ""
|
||||
links.append(f'<a href="{package_link(pkg)}">{pkg.Name}</a>{aur}')
|
||||
return ", ".join(links)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue