Skip to content

Commit

Permalink
Change star fill color
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Nov 25, 2024
1 parent 879aeeb commit 4dea537
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/webserver/embedded/images/star-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion internal/webserver/embedded/views/document.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="row mt-5">
<div class="col-md-4 col-sm-12 pe-3">
<div class="card border border-0">
{{template "partials/cover" dict "Lang" .Lang "Document" .Document "Session" .Session}}
{{template "partials/cover" dict "Lang" .Lang "Document" .Document "Session" .Session "DisableCoverMainLink" true}}
</div>
<div class="d-grid gap-2 mb-5 actions">
<a href="/documents/{{.Document.Slug}}/download" class="btn btn-outline-secondary" download>
Expand Down
5 changes: 3 additions & 2 deletions internal/webserver/embedded/views/partials/cover.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="position-relative mb-3 border border-2 cover-background">
<a href="/documents/{{.Document.Slug}}" class="text-decoration-none">
{{if not .DisableCoverMainLink}}<a href="/documents/{{.Document.Slug}}" class="text-decoration-none">{{end}}
<picture>
<source srcset="/documents/{{.Document.Slug}}/cover" alt='{{t .Lang "\"%s\" cover" .Document.Title}}' />
<img src="/images/generic.jpg" loading="lazy" class="cover img-fluid cover-corner" alt='{{t .Lang "\"%s\" cover" .Document.Title}}'>
Expand All @@ -14,7 +14,8 @@ <h5 class="card-title text-center">{{.Document.Title}}</h5>
<p class="card-text text-center">{{t .Lang "Unknown author"}}</p>
{{end}}
</div>
</a>
{{if not .DisableCoverMainLink}}</a>{{end}}

{{if and (.Session) (ne .Session.Name "")}}
{{template "partials/highlight-toggle" dict "Lang" .Lang "Document" .Document}}
{{end}}
Expand Down

0 comments on commit 4dea537

Please sign in to comment.