Minor fixes to admin feedback pages

This commit is contained in:
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; 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%); background: linear-gradient(141deg, #ff0537 0, #3ec487 100%);
color: #fff; color: #fff;
} }

View File

@ -126,7 +126,7 @@
<a href="/admin/photo/certification"> <a href="/admin/photo/certification">
<i class="fa fa-certificate mr-2"></i> <i class="fa fa-certificate mr-2"></i>
Certification Photos 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> </a>
</li> </li>
<li> <li>

View File

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

View File

@ -282,10 +282,23 @@
{{end}} {{end}}
{{if gt .NavAdminNotifications 0}} {{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"> <a class="tag is-danger py-4" href="/admin">
<span class="icon"><i class="fa fa-peace"></i></span> <span class="icon"><i class="fa fa-peace"></i></span>
<small class="nonshy-navbar-notification-count">{{.NavAdminNotifications}}</small> <small class="nonshy-navbar-notification-count">{{.NavAdminNotifications}}</small>
</a> </a>
{{end}}
{{end}} {{end}}
</div> </div>
{{end}} {{end}}