Skip to content

Commit 364a1ef

Browse files
committed
Refine ASN page content and styles for improved clarity. Update searchbar placeholder for better user guidance, adjust ASN name rendering in the template, and ensure transparent background for chart wrapper in styles.
1 parent a57ab03 commit 364a1ef

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

routes/asn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def asn(asn):
187187
return render_template(
188188
'pages/asn.html',
189189
asn=asn,
190-
as_name=asn_info_dict['as_name'] or f"AS{asn}",
190+
as_name=asn_info_dict['as_name'],
191191
ipv4_count=ipv4_count,
192192
ipv6_count=ipv6_count,
193193
upstream_count=upstream_count,

static/styles/pages/_asn.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@
240240
color: inherit;
241241

242242
.cds--cc--chart-wrapper {
243+
background: transparent !important;
244+
243245
svg.layout-svg-wrapper {
244246
cursor: crosshair;
245247

templates/components/searchbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
role="searchbox"
1616
autocomplete="off"
1717
id="searchbar"
18-
placeholder="IP address/prefix, ASN, country code or community"
18+
placeholder="Enter an IP address/prefix, ASN, country code or community"
1919
name="query"
2020
/>
2121
</form>

templates/pages/asn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<a href="/" class="breadcrumbs__item">Home</a>
2424
</div>
2525
<h2 class="container__title" id="asn">
26-
AS{{ asn }} - {{ as_name }}
26+
AS{{ asn }}{% if as_name %}&nbsp;-&nbsp;{{ as_name }}{% endif %}
2727
</h2>
2828
</div>
2929
</div>

0 commit comments

Comments
 (0)