Skip to content

Commit

Permalink
#1334 Update notification page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Aug 30, 2015
1 parent 885e2f8 commit 5166b7c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
27 changes: 16 additions & 11 deletions themes/Sixteen/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,38 @@
</div>
</div>
<div class="col-sm-9 profile">
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a href="notifications.php?id=<?php echo $id ?>" class="navbar-brand"><span class="fa fa-fw fa-circle-o"></span> <?php _e('Notifications', 'luna') ?></a>
<h2 class="profile-title"><?php _e('Notifications', 'luna') ?></h2>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php _e('New notifications', 'luna'); ?><span class="pull-right"><a href="notifications.php?id=2&action=readnoti" class="btn btn-primary"><span class="fa fa-fw fa-eye"></span> <?php _e('Mark as seen', 'luna') ?></a></span></h3>
</div>
</nav>
<div class="list-group">
<h3><?php _e('New notifications', 'luna'); ?><span class="pull-right"><a href="notifications.php?id=2&action=readnoti" class="btn btn-primary"><span class="fa fa-fw fa-eye"></span> <?php _e('Mark as seen', 'luna') ?></a></span></h3>
<div class="list-group">
<?php if (empty($unviewed_notifications)) { ?>
<a class="list-group-item disabled" href="notifications.php?id=<?php echo $id; ?>"><?php _e('No new notifications', 'luna'); ?></a>
<a class="list-group-item disabled" href="notifications.php?id=<?php echo $id; ?>"><?php _e('No new notifications', 'luna'); ?></a>
<?php
} else {
foreach ($unviewed_notifications as $notification) {
?>
<a class="list-group-item" href="<?php echo $notification->link; ?>"><span class="fa fa-fw <?php echo $notification->icon; ?>"></span>&nbsp; <?php echo $notification->message; ?><span class="timestamp pull-right"><?php echo format_time($notification->time, false, null, $luna_config['o_time_format'], true, true); ?></span></a>
<a class="list-group-item" href="<?php echo $notification->link; ?>"><span class="fa fa-fw <?php echo $notification->icon; ?>"></span>&nbsp; <?php echo $notification->message; ?><span class="timestamp pull-right"><?php echo format_time($notification->time, false, null, $luna_config['o_time_format'], true, true); ?></span></a>

<?php
}
}
?>
<h3><?php _e('Seen notifications', 'luna') ?><span class="pull-right"><a href="notifications.php?id=2&action=delnoti" class="btn btn-danger"><span class="fa fa-fw fa-trash"></span> <?php _e('Delete notifications', 'luna') ?></a></span></h3>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php _e('Seen notifications', 'luna') ?><span class="pull-right"><a href="notifications.php?id=2&action=delnoti" class="btn btn-danger"><span class="fa fa-fw fa-trash"></span> <?php _e('Delete notifications', 'luna') ?></a></span></h3>
</div>
<div class="list-group">
<?php if (empty($viewed_notifications)) { ?>
<a class="list-group-item disabled" href="notifications.php?id=<?php echo $id; ?>"><?php _e('No new notifications', 'luna'); ?></a>
<a class="list-group-item disabled" href="notifications.php?id=<?php echo $id; ?>"><?php _e('No new notifications', 'luna'); ?></a>
<?php
} else {
foreach ($viewed_notifications as $notification) {
?>
<a class="list-group-item" href="<?php echo $notification->link; ?>"><span class="fa fa-fw <?php echo $notification->icon; ?>"></span>&nbsp; <?php echo $notification->message; ?><span class="timestamp pull-right"><?php echo format_time($notification->time, false, null, $luna_config['o_time_format'], true, true); ?></span></a>
<a class="list-group-item" href="<?php echo $notification->link; ?>"><span class="fa fa-fw <?php echo $notification->icon; ?>"></span>&nbsp; <?php echo $notification->message; ?><span class="timestamp pull-right"><?php echo format_time($notification->time, false, null, $luna_config['o_time_format'], true, true); ?></span></a>

<?php
}
Expand Down
5 changes: 5 additions & 0 deletions themes/Sixteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ hr {
border-radius: 0;
}

.profile-title {
margin-top: 15px;
margin-bottom: 16px;
}

/* Post messages */
.bblinks {
padding-top: 5px;
Expand Down

0 comments on commit 5166b7c

Please sign in to comment.