Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raid Dashboard Page updates #22

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/example.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
$invasionPage = true;
$shinyPage = true;

$raidDashboardPage = true

/* Nest Page */
$nestPage = true;
$minNestAvg = 2; // 0 to disable
Expand Down
2 changes: 1 addition & 1 deletion include/nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<div id="collapse-dashboard" class="collapse" aria-labelledby="heading-dashboard" data-parent="#accordion-test">
<div class="card-body">

<?php if ($raidPage) { ?>
<?php if ($raidDashboardPage) { ?>
<a class="dropdown-item" style="position:relative;left:-3px;" href="?page=raid_dashboard">
<img src="static/images/svg/raidicon.svg" style="width:22px;height:22px;filter:brightness(0%);"> <?php echo i8ln('Raid Dashboard'); ?>
</a>
Expand Down
12 changes: 9 additions & 3 deletions include/raid_dashboard.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="container">
<?php if ($raidDashboardPage) { ?>
<div class="container">
<table id="raidDashboardTable" class="table table-striped table-bordered">

<div class="form-row">
<div class="col">
<select class="custom-select form-control" id="geofence">
Expand Down Expand Up @@ -51,4 +51,10 @@
</tr>
</thead>
</table>
</div>
</div>
<?php } else { ?>
<br><center><h1><?php echo i8ln('Access denied.'); ?></h1>
<div><img src="static/images/accessdenied.png" style="max-width:45vh"></div><br><br>
<br><h4><?php echo i8ln('Redirecting...'); ?> <i class="fas fa-spinner fa-spin"></i></h4></center>
<meta http-equiv="refresh" content="2; URL=?overview.php">
<?php } ?>
1 change: 1 addition & 0 deletions pre-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
var invasionPage = '<?php echo $invasionPage ?>';
var shinyPage = '<?php echo $shinyPage ?>';
var nestPage = '<?php echo $nestPage ?>';
var raidDashboardPage = '<?php echo $raidDashboardPage ?>';
var geofenceDefault = '<?php echo $geofenceDefault ?>';
</script>
<script src="static/dist/js/stats.common.min.js"></script>
Expand Down