Minor fixes to admin feedback pages

face-detect
Noah Petherbridge 2023-11-26 21:02:36 -08:00
parent 22e8c9129b
commit 0cb3efe577
4 changed files with 24 additions and 2 deletions

View File

@ -152,7 +152,8 @@ abbr {
color: #fff;
}
.nonshy-navbar-notification-tag.is-mixed {
.nonshy-navbar-notification-tag.is-mixed,
.tag.is-mixed {
background: linear-gradient(141deg, #ff0537 0, #3ec487 100%);
color: #fff;
}

View File

@ -126,7 +126,7 @@
<a href="/admin/photo/certification">
<i class="fa fa-certificate mr-2"></i>
Certification Photos
{{if .NavCertificationPhotos}}<span class="tag is-danger ml-1">{{.NavCertificationPhotos}}</span>{{end}}
{{if .NavCertificationPhotos}}<span class="tag is-success ml-1">{{.NavCertificationPhotos}}</span>{{end}}
</a>
</li>
<li>

View File

@ -135,6 +135,14 @@
{{end}}
</td>
</tr>
<tr>
<td class="has-text-right">
<strong>Date:</strong>
</td>
<td>
{{.CreatedAt.Format "2006-01-02 15:04:05 MST"}}
</td>
</tr>
</table>
<div class="content">

View File

@ -282,10 +282,23 @@
{{end}}
{{if gt .NavAdminNotifications 0}}
<!-- Color code them by the type -->
{{if and (.NavCertificationPhotos) (not .NavAdminFeedback)}}
<a class="tag is-success py-4" href="/admin">
<span class="icon"><i class="fa fa-peace"></i></span>
<small class="nonshy-navbar-notification-count">{{.NavAdminNotifications}}</small>
</a>
{{else if and .NavCertificationPhotos .NavAdminFeedback}}
<a class="tag is-mixed py-4" href="/admin">
<span class="icon"><i class="fa fa-peace"></i></span>
<small class="nonshy-navbar-notification-count">{{.NavAdminNotifications}}</small>
</a>
{{else}}
<a class="tag is-danger py-4" href="/admin">
<span class="icon"><i class="fa fa-peace"></i></span>
<small class="nonshy-navbar-notification-count">{{.NavAdminNotifications}}</small>
</a>
{{end}}
{{end}}
</div>
{{end}}