Skip to content

Commit

Permalink
include api link
Browse files Browse the repository at this point in the history
Signed-off-by: Raghav Kaul <[email protected]>
  • Loading branch information
raghavkaul committed Mar 25, 2024
1 parent 79a615f commit ddd564e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scorecards-site/static/viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,17 @@
</a>
</div>
</div>
<div class="content"><small class="fw-semibold">API:</small>
{{#if data.repo.name}}
{{$if data.repo.commit}}
<a class="btn-link text-muted" href="https://api.scorecard.dev/{{data.repo.name}}?commit={{data.repo.commit}}" target="_blank" rel="noopener noreferrer"></a>
{{else}}
<a class="btn-link text-muted" href="https://api.scorecard.dev/{{data.repo.name}}" target="_blank" rel="noopener noreferrer"></a>
{{/if}}
{{else}}
<span class="text-muted">-</span>
{{/if}}
</div>
<div class="content text-truncate"><small class="fw-semibold">COMMIT:</small>
{{#if data.repo.commit}}
<span class="d-none d-sm-inline-block text-muted">{{data.repo.commit}}</span>
Expand Down

0 comments on commit ddd564e

Please sign in to comment.