Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion _includes/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,24 @@
per deployment (managing org, full-scan upsell, request-update link). To
support another deployment, add a branch here and re-sync - don't fork
the file.

4. `showLastUpdated` - set in page front matter for non-profile pages that
need a "Last updated" row (e.g. /pulse/). Renders a single-item ul with
the same mono/border-bottom styling as the profile list above.
#}
{% if showLastUpdated and not profile %}
<ul class="small list-unstyled text-body-secondary font-monospace mt-2 mb-0">
<li>
Last scan:
<span id="updated">{{ updates }}</span>
{% set infoHref = "https://docs.scangov.org/scans/" %}
{% set infoLabel = "Last scan" %}
{% set infoDescription = "How often ScanGov scans this site." %}
{% set infoMatchTextColor = true %}
{% include "info-icon.html" %}
</li>
</ul>
{% endif %}
{% if profile %}
<ul class="small list-unstyled text-body-secondary font-monospace">
{% if not mapPage and not orgPage %}
Expand All @@ -40,9 +57,15 @@
<a href="/org/{{ domain.name | slugify }}/">{{ domain.name }}</a>
</li>
{% endif %}
{% if domain.status %}
<li>
Status:
<a href="/status/{{ domain.status }}/">{{ domain.status }}</a>
</li>
{% endif %}
{% if site.url == 'https://scangov.org' %}
<li>
Pages: 1
Pages: 1 (homepage only)
&middot; <a href="https://scangov.com/plans">Get full site scan</a>
</li>
{% elif site.url == 'https://my.scangov.com' %}
Expand All @@ -56,6 +79,11 @@
<li>
Last scan:
<span id="updated">{{ updates }}</span>
{% set infoHref = "https://docs.scangov.org/scans/" %}
{% set infoLabel = "Last scan" %}
{% set infoDescription = "How often ScanGov scans this site." %}
{% set infoMatchTextColor = true %}
{% include "info-icon.html" %}
</li>
{% elif site.url == 'https://my.scangov.com' %}
<li>
Expand Down
2 changes: 1 addition & 1 deletion _includes/filter-pill.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
pillTitle, pillUrl, pillIcon (optional), pillIconTitle (optional),
pillActive (optional bool), pillId (optional), pillExtraClass (optional) #}
<li class="nav-item">
<a{% if pillId %} id="{{ pillId }}"{% endif %} class="{% if pillExtraClass %}{{ pillExtraClass }} {% endif %}nav-link btn btn-primary-outline mx-1{% if pillActive %} active{% endif %}"{% if pillActive %} aria-current="page"{% endif %} href="{{ pillUrl }}">
<a{% if pillId %} id="{{ pillId }}"{% endif %} class="{% if pillExtraClass %}{{ pillExtraClass }} {% endif %}nav-link mx-1{% if pillActive %} active{% endif %}"{% if pillActive %} aria-current="page"{% endif %} href="{{ pillUrl }}">
{% if pillIcon %}<i class="{{ pillIcon }}"{% if pillIconTitle %} title="{{ pillIconTitle }}"{% endif %}></i>{% endif %}{{ pillTitle }}</a>
</li>
2 changes: 1 addition & 1 deletion _includes/sidenav.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav class="d-none d-md-block js-sidenav position-sticky">
<nav class="d-none d-md-block js-sidenav position-sticky" style="top: 1rem;">
<ul class="nav flex-column small">
{% for item in sidenav %}
{% if item.items %}
Expand Down
4 changes: 2 additions & 2 deletions public/css/scangov.css
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ button:not(.card *) {
font-family: "JetBrains Mono ExtraBold", monospace !important;
color: var(--bs-body-color) !important;
text-decoration: none;
margin-left: 0.5rem;
padding-left: 0.5rem;
margin-left: 1.25rem;
padding-left: 1.25rem;
border-left: 1px solid var(--bs-border-color);
}

Expand Down