visual fixes

This commit is contained in:
Joey Kimsey
2024-12-20 14:10:31 -05:00
parent 1c5b020a87
commit 87e4f90bab
9 changed files with 41 additions and 32 deletions

View File

@ -130,8 +130,10 @@ class Notification extends DatabaseModel {
}
if ( $message->seenAt == 0 ) {
$message->unseenBadge = Views::simpleView( 'notifications.unseenBadge' );
$message->markReadLink = '<a href="{ROOT_URL}notifications/markRead/'.$message->ID.'" class="btn btn-sm btn-primary"><i class="fa-solid fa-fw fa-envelope-open"></i></a>';
} else {
$message->unseenBadge = '';
$message->markReadLink = '';
}
$out[] = (object) $message;
if ( !empty( $end ) ) {

View File

@ -1,8 +1,7 @@
<div class="container py-4">
<div class="col-8 mx-auto p-4 rounded shadow-sm context-main-bg my-4">
<div class="row justify-content-center">
<div class="col-md-8">
<legend>Notifications</legend>
<legend class="text-center">Notifications</legend>
<table class="table">
<thead>
<tr>
@ -14,14 +13,20 @@
<tbody>
{LOOP}
<tr {unseenBadge}>
<td>{notification}</td>
<td><a href="{ROOT_URL}notifications/markRead/{ID}" class="btn btn-sm btn-primary"><i class="fa fa-fw fa-upload"></i></a></td>
<td><a href="{ROOT_URL}notifications/delete/{ID}" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></a></td>
<td class=" context-main">{notification}</td>
<td>
{markReadLink}
</td>
<td>
<a href="{ROOT_URL}notifications/delete/{ID}" class="btn btn-sm btn-danger">
<i class="fa fa-fw fa-trash"></i>
</a>
</td>
</tr>
{/LOOP}
{ALT}
<tr>
<td colspan="7">
<td colspan="7" class=" context-main">
No Notifications
</td>
</tr>