File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 </ div >
3030 < div class ="grid-col-6 grid-col-medium-3 grid-col-small-3 ">
3131 {{ package_header_data(package_title=snap_title,
32+ package_name=package_name,
3233 icon_url=icon_url,
3334 developer=developer,
3435 categories=categories,
Original file line number Diff line number Diff line change 2828
2929{%- macro package_header_data(
3030 package_title,
31+ package_name,
3132 icon_url,
3233 developer,
3334 categories,
3940 STAR_DEVELOPER,
4041 VERIFIED_PUBLISHER) -%}
4142 < div class ="p-section--shallow ">
42- < h1 class ="u-sv-1 " data-live ="title "> {{ package_title }}</ h1 >
43+ < h1 class ="u-sv-1 " data-live ="title ">
44+ {{ package_title }}
45+
46+ {# check if the package title could be misleading #}
47+ {% if package_title.replace(" ", "-").lower() != package_name %}
48+ < span class ="p-tooltip--btm-center " aria-label ='(registered as "{{ package_name }}") '>
49+ < span class ="p-heading--6 "> ({{ package_name }})</ span >
50+ < span class ="p-tooltip__message " style ="font-weight: 400 "> Package name</ span >
51+ </ span >
52+ {% endif %}
53+ </ h1 >
4354 {# TODO:
4455 Extract the section below as own slot, to avoid dependency on a lot of publisher data?
4556 #}
You can’t perform that action at this time.
0 commit comments