diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako index 10db733e..a6e157d1 100644 --- a/tailbone/templates/products/view.mako +++ b/tailbone/templates/products/view.mako @@ -191,7 +191,13 @@ % for i, cost in enumerate(instance.costs, 1): ${'X' if cost.preference == 1 else ''} - ${cost.vendor} + + % if request.has_perm('vendors.view'): + ${h.link_to(cost.vendor, request.route_url('vendors.view', uuid=cost.vendor_uuid))} + % else: + ${cost.vendor} + % endif + ${cost.code or ''} ${h.pretty_quantity(cost.case_size)} ${'$ %0.2f' % cost.case_cost if cost.case_cost is not None else ''}