2019-11-20 05:19:02 +00:00
|
|
|
<!DOCTYPE html>
|
2019-11-18 13:33:45 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2019-11-20 05:19:02 +00:00
|
|
|
<script src="<?php echo $root ?>/js/vue.js"></script>
|
|
|
|
<script src="<?php echo $root ?>/js/jquery.min.js"></script>
|
2019-11-18 13:33:45 +00:00
|
|
|
<title>Metaforums</title>
|
2019-11-20 05:19:02 +00:00
|
|
|
<link href="<?php echo $root ?>/css/metaforums.css" rel="stylesheet">
|
2019-11-18 13:33:45 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<div class="header-left">
|
2019-11-20 05:19:02 +00:00
|
|
|
<a href="<?php echo $root ?>/" class="header-link">Metaforums</a>
|
2019-11-18 13:33:45 +00:00
|
|
|
</div>
|
|
|
|
<div class="header-middle">
|
|
|
|
</div>
|
|
|
|
<div class="header-left">
|
|
|
|
<?php if($auth->isLoggedIn()) { ?>
|
2019-11-20 05:19:02 +00:00
|
|
|
<?php if($auth->user()->is_moderator) { ?>
|
|
|
|
<a href="<?php echo $root ?>/moderation" class="header-link">User Management</a>
|
|
|
|
<?php } ?>
|
|
|
|
<a href="<?php echo $root ?>/logout" class="header-link">Logout</a>
|
2019-11-18 13:33:45 +00:00
|
|
|
<?php } else {?>
|
2019-11-20 05:19:02 +00:00
|
|
|
<a href="<?php echo $root ?>/login" class="header-link">Login</a>
|
|
|
|
<a href="<?php echo $root ?>/signup" class="header-link">Signup</a>
|
2019-11-18 13:33:45 +00:00
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<main>
|