Bug 33499: Make interface URL clickable on vendor details

This patch adds markup around the vendor details interface URL so that
it is a clickable link.

To test, apply the patch and go to Acquisitions.

- Search for a vendor
- If you don't have a vendor with interfaces defined, edit one
  - Under Interfaces -> Interface details, fill out the form, including
    the URI field.
  - Add more than one interface
- Save your changes and then view the vendor details page
- In the Interfaces section the interfaces you defined should have
  clickable links.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-09-19 10:57:52 +00:00 committed by Tomas Cohen Arazi
parent d550bcd909
commit f6b9f25a4f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -424,7 +424,10 @@ div.rows { padding: 1rem; }
<li><span class="label">Type: </span>[% AuthorisedValues.GetByCode( 'VENDOR_INTERFACE_TYPE', i.type) | html %]</li>
[% END %]
[% IF i.uri %]
<li><span class="label">URI: </span>[% i.uri | html %]</li>
<li>
<span class="label">URI: </span>
<a href="[% i.uri | url %]">[% i.uri | html %]</a>
</li>
[% END %]
[% IF i.login %]
<li><span class="label">Login: </span>[% i.login | html %]</li>