2023-10-18 04:46:31

This commit is contained in:
z17CX 2023-10-18 04:46:31 +00:00
parent d0f8860543
commit 7953ed414c
Signed by: z17cx
GPG key ID: 3F5F87C84EE943E4
12 changed files with 74 additions and 45 deletions

View file

@ -32,17 +32,20 @@ EXAMPLE:
<ul class="list-inline mb-0">
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "sc.file.copy") }}'>
<a class="text-body" href="#"
data-fn="clipboard preventDefault" data-clipboard-target="#{{ ($cp) }}" role="button">
data-fn="clipboard preventDefault" data-clipboard-target="#{{ ($cp) }}"
role="button" aria-label='{{ (i18n "sc.file.copy") }}'>
<i class="fas fa-copy fa-fw"></i>
</a>
</li>
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "sc.file.download") }}'>
<a class="text-body" href="{{ ($file) }}" download role="button">
<a class="text-body" href="{{ ($file) }}" download
role="button" aria-label='{{ (i18n "sc.file.download") }}'>
<i class="fas fa-download fa-fw"></i>
</a>
</li>
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "sc.file.link") }}'>
<a class="text-body" href="{{ ($file) }}" target="_blank" role="button">
<a class="text-body" href="{{ ($file) }}" target="_blank"
role="button" aria-label='{{ (i18n "sc.file.link") }}'>
<i class="fas fa-arrow-up-right-from-square fa-fw"></i>
</a>
</li>

View file

@ -47,14 +47,16 @@ EXAMPLE:
{{ end }}
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.file.copy") }}'>
<a class="text-body" href="#"
data-fn="clipboard preventDefault" data-clipboard-target="#{{ ($cp) }}" role="button">
data-fn="clipboard preventDefault" data-clipboard-target="#{{ ($cp) }}"
role="button" aria-label='{{ (i18n "sc.github.file.copy") }}'>
<i class="fas fa-copy fa-fw"></i>
</a>
</li>
{{ with ($file.download_url) }}
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.file.download") }}'>
<a class="text-body" href="{{ . }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.file.download") }}'>
<i class="fas fa-download fa-fw"></i>
</a>
</li>
@ -62,7 +64,8 @@ EXAMPLE:
{{ with ($file.html_url) }}
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.file.link") }}'>
<a class="text-body" href="{{ . }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.file.link") }}'>
<i class="fas fa-arrow-up-right-from-square fa-fw"></i>
</a>
</li>

View file

@ -56,7 +56,8 @@ EXAMPLE:
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.org.repos") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($org.html_url) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.repos") }}'>
<i class="fas fa-book fa-fw me-1"></i>
{{ ($org.public_repos) }}
</a>
@ -66,7 +67,8 @@ EXAMPLE:
{{ $url := (urls.Parse ($org.blog)) }}{{ $scheme := "http://" }}
{{ if ($url.Scheme) }}{{ $scheme = "" }}{{ end }}
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($scheme) }}{{ ($org.blog) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.blog") }}'>
<i class="fas fa-globe fa-fw"></i>
</a>
</div>
@ -74,7 +76,8 @@ EXAMPLE:
{{ if ($org.twitter_username) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.org.twitter") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://twitter.com/{{ ($org.twitter_username) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.twitter") }}'>
<i class="fab fa-twitter fa-fw"></i>
</a>
</div>
@ -82,7 +85,8 @@ EXAMPLE:
{{ if ($org.email) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.org.email") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="mailto:{{ ($org.email) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.email") }}'>
<i class="fas fa-envelope-open-text fa-fw"></i>
</a>
</div>

View file

@ -60,21 +60,24 @@ EXAMPLE:
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.subscribers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($repo.html_url) }}/watchers"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.repo.subscribers") }}'>
<i class="fas fa-eye fa-fw me-1"></i>
{{ ($repo.subscribers_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.stargazers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($repo.html_url) }}/stargazers"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.repo.stargazers") }}'>
<i class="fas fa-star fa-fw me-1"></i>
{{ ($repo.stargazers_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.forks") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($repo.html_url) }}/network/members"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.repo.forks") }}'>
<i class="fas fa-code-branch fa-fw me-1"></i>
{{ ($repo.forks_count) }}
</a>
@ -83,7 +86,8 @@ EXAMPLE:
{{ $license := (getJSON ($repo.license.url) "?ts=" ($ts) ($headers)) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.license") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($license.html_url) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.repo.license") }}'>
<i class="fas fa-copyright fa-fw me-1"></i>
{{ ($license.spdx_id) }}
</a>

View file

@ -60,7 +60,8 @@ EXAMPLE:
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.org.repos") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($org.html_url) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.repos") }}'>
<i class="fas fa-book fa-fw me-1"></i>
{{ ($org.public_repos) }}
</a>
@ -70,7 +71,8 @@ EXAMPLE:
{{ $url := (urls.Parse ($org.blog)) }}{{ $scheme := "http://" }}
{{ if ($url.Scheme) }}{{ $scheme = "" }}{{ end }}
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($scheme) }}{{ ($org.blog) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.blog") }}'>
<i class="fas fa-globe fa-fw"></i>
</a>
</div>
@ -78,7 +80,8 @@ EXAMPLE:
{{ if ($org.twitter_username) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.org.twitter") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://twitter.com/{{ ($org.twitter_username) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.twitter") }}'>
<i class="fab fa-twitter fa-fw"></i>
</a>
</div>
@ -86,7 +89,8 @@ EXAMPLE:
{{ if ($org.email) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.org.email") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="mailto:{{ ($org.email) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.email") }}'>
<i class="fas fa-envelope-open-text fa-fw"></i>
</a>
</div>

View file

@ -63,14 +63,16 @@ EXAMPLE:
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repo.stargazers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ (.html_url) }}/stargazers"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.repo.stargazers") }}'>
<i class="fas fa-star fa-fw me-1"></i>
{{ (.stargazers_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repo.forks") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ (.html_url) }}/network/members"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.repo.forks") }}'>
<i class="fas fa-code-branch fa-fw me-1"></i>
{{ (.forks_count) }}
</a>
@ -79,7 +81,8 @@ EXAMPLE:
{{ $license := (getJSON (.license.url) "?ts=" ($ts) ($headers)) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repo.license") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($license.html_url) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.repo.license") }}'>
<i class="fas fa-copyright fa-fw me-1"></i>
{{ ($license.spdx_id) }}
</a>

View file

@ -56,21 +56,24 @@ EXAMPLE:
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repos") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($user.html_url) }}?tab=repositories"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.repos") }}'>
<i class="fas fa-book fa-fw me-1"></i>
{{ ($user.public_repos) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.followers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($user.html_url) }}?tab=followers"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.followers") }}'>
<i class="fas fa-user-friends fa-fw me-1"></i>
{{ ($user.followers) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.following") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($user.html_url) }}?tab=following"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.following") }}'>
<i class="fas fa-user-check fa-fw me-1"></i>
{{ ($user.following) }}
</a>
@ -80,7 +83,8 @@ EXAMPLE:
{{ $url := (urls.Parse ($user.blog)) }}{{ $scheme := "http://" }}
{{ if ($url.Scheme) }}{{ $scheme = "" }}{{ end }}
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($scheme) }}{{ ($user.blog) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.blog") }}'>
<i class="fas fa-globe fa-fw"></i>
</a>
</div>

View file

@ -45,7 +45,8 @@ EXAMPLE:
{{ end }}
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.file.copy") }}'>
<a class="text-body" href="#"
data-fn="clipboard preventDefault" data-clipboard-target="#{{ ($cp) }}" role="button">
data-fn="clipboard preventDefault" data-clipboard-target="#{{ ($cp) }}"
role="button" aria-label='{{ (i18n "sc.gitlab.file.copy") }}'>
<i class="fas fa-copy fa-fw"></i>
</a>
</li>

View file

@ -61,21 +61,24 @@ EXAMPLE:
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.issues") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($project.web_url) }}/-/issues"
target="_blank" rel="noopener nofollow">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.issues") }}'>
<i class="fas fa-info-circle fa-fw me-1"></i>
{{ ($project.open_issues_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.starrers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($project.web_url) }}/-/starrers"
target="_blank" rel="noopener nofollow">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.starrers") }}'>
<i class="fas fa-star fa-fw me-1"></i>
{{ ($project.star_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.forks") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($project.web_url) }}/-/forks"
target="_blank" rel="noopener nofollow">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.forks") }}'>
<i class="fas fa-code-branch fa-fw me-1"></i>
{{ ($project.forks_count) }}
</a>
@ -83,7 +86,8 @@ EXAMPLE:
{{ if ($project.license_url) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.license") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ $project.license.html_url }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.license") }}'>
<i class="fas fa-copyright fa-fw me-1"></i>
{{ (($project.license.key) | upper) }}
</a>

View file

@ -58,14 +58,16 @@ EXAMPLE:
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.followers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($user.web_url) }}/followers"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.followers") }}'>
<i class="fas fa-user-friends fa-fw me-1"></i>
{{ ($user.followers) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.following") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($user.web_url) }}/following"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.following") }}'>
<i class="fas fa-user-check fa-fw me-1"></i>
{{ ($user.following) }}
</a>
@ -73,7 +75,8 @@ EXAMPLE:
{{ if ($user.linkedin) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.linkedin") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://linkedin.com/in/{{ ($user.linkedin) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.linkedin") }}'>
<i class="fab fa-linkedin-in fa-fw"></i>
</a>
</div>
@ -81,7 +84,8 @@ EXAMPLE:
{{ if ($user.twitter) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.twitter") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://twitter.com/{{ ($user.twitter) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.twitter") }}'>
<i class="fab fa-twitter fa-fw"></i>
</a>
</div>
@ -91,7 +95,8 @@ EXAMPLE:
{{ $url := (urls.Parse ($user.website_url)) }}{{ $scheme := "http://" }}
{{ if ($url.Scheme) }}{{ $scheme = "" }}{{ end }}
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($scheme) }}{{ ($user.website_url) }}"
target="_blank" rel="noopener nofollow" role="button">
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.site") }}'>
<i class="fas fa-globe fa-fw"></i>
</a>
</div>

View file

@ -30,7 +30,7 @@
{{ $url := (printf "https://%s.wikipedia.org/wiki/%s" ($lang) (replace (.title) " " "_")) }}
<a class="text-body-secondary" href="{{ ($url) }}"
target="_blank" rel="noopener nofollow"
role="button">
role="button" aria-label='{{ (i18n "sc.wiki.link") }}'>
<i class="fas fa-arrow-up-right-from-square fa-fw"></i>
</a>
</li>

View file

@ -31,15 +31,9 @@ EXAMPLE:
</div>
<div class="flex-shrink-0">
<ul class="list-inline mb-0">
<li class="list-inline-item">
<i class="fas fa-circle fa-fw"></i>
</li>
<li class="list-inline-item">
<i class="fas fa-circle fa-fw"></i>
</li>
<li class="list-inline-item">
<i class="fas fa-circle fa-fw"></i>
</li>
<li class="list-inline-item"><i class="fas fa-circle fa-fw"></i></li>
<li class="list-inline-item"><i class="fas fa-circle fa-fw"></i></li>
<li class="list-inline-item"><i class="fas fa-circle fa-fw"></i></li>
</ul>
</div>
</div>