|
@@ -1,32 +1,37 @@
|
|
|
{{- range . }}
|
|
|
- {{- if .ID == "#" }}
|
|
|
<div class="col">
|
|
|
<div class="card h-100 border-0 bg-transparent">
|
|
|
- <img src="/img/deleted.png" alt="{{ .Title }}" class="card-img-top img-fluid" loading="lazy" />
|
|
|
- <div class="card-body py-2 px-0">
|
|
|
- <p class="text-truncate mb-1">
|
|
|
- <span class="fw-bold text-body text-decoration-none">{{ .Title }}</span>
|
|
|
- </p>
|
|
|
- <div class="d-flex align-items-center">
|
|
|
- <div class="align-items-center text-decoration-none text-truncate">
|
|
|
+ {{- if .ID == "#" }}
|
|
|
+ <!-- Replicate the thumbnail-dt structure -->
|
|
|
+ <div class="position-relative h-100 thumbnail-hover-dark mb-2">
|
|
|
+ <div>
|
|
|
+ <div class="ratio ratio-1x1">
|
|
|
+ <div class="thumbnail-wrapper rounded overflow-hidden">
|
|
|
+ <img src="/img/deleted.png" alt="{{ .Title }}" class="img-fluid object-fit-cover w-100 h-100" loading="lazy" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="card-body p-0">
|
|
|
+ <!-- Replicate the thumbnail-tt structure -->
|
|
|
+ <p class="text-truncate mb-0">
|
|
|
+ <span class="fw-bold text-body-secondary text-decoration-none">{{ .Title }}</span>
|
|
|
+ </p>
|
|
|
+ <!-- Replicate the thumbnail-at structure -->
|
|
|
+ <div class="d-flex align-items-center mt-1">
|
|
|
<img src="/img/deleted.png" class="rounded-circle me-1" style="width: 24px; height: 24px" />
|
|
|
<span class="text-muted">Deleted or Private</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- {{- else if .ID }}
|
|
|
- <div class="col">
|
|
|
- <div class="card h-100 border-0 bg-transparent">
|
|
|
- {{ include "thumbnail-dt" . }}
|
|
|
- <div class="card-body p-0">
|
|
|
- {{ include "thumbnail-tt" . }}
|
|
|
- {{- if isFirstPathPart (CurrentPath, "/users") == false }}
|
|
|
- {{ include "thumbnail-at" . }}
|
|
|
- {{- end }}
|
|
|
- </div>
|
|
|
+ {{- else if .ID }}
|
|
|
+ {{ include "thumbnail-dt" . }}
|
|
|
+ <div class="card-body p-0">
|
|
|
+ {{ include "thumbnail-tt" . }}
|
|
|
+ {{- if isFirstPathPart (CurrentPath, "/users") == false || isLastPathPart (CurrentPath, "/bookmarks") == true }}
|
|
|
+ {{ include "thumbnail-at" . }}
|
|
|
+ {{- end }}
|
|
|
+ </div>
|
|
|
+ {{- end }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- {{- end }}
|
|
|
{{- end }}
|