Skip to content

Commit

Permalink
Updated the troubleshooting page
Browse files Browse the repository at this point in the history
  • Loading branch information
ToX82 committed Sep 16, 2023
1 parent 781f4c1 commit 483cf75
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 13 deletions.
24 changes: 12 additions & 12 deletions views/pages/configurations/configurations.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@
data-inline="false"></span>
</i>
<p class="ms-3"><?= $value->title ?></p>
<?php
if (!file_exists($value->file)) {
?>
<p class="ms-3 text-danger">(File not found)</p>
<?php
}
?>
<?php if (!file_exists($value->file)) { ?>
<p class="ms-3 text-danger">File not found</p>
<?php } elseif (!is_writeable($value->file)) { ?>
<p class="ms-3 text-warning">
This file is read only. <a href='<?= buildUrl('display/troubleshooting') ?>'>Need help?</a>
</p>
<?php } ?>
</div>
<div class="col-4 d-flex justify-content-end mb-2 align-items-center">
<a href="<?= buildUrl("duplicate_configuration?configName=$configName") ?>">
<div class="iconify me-2" width="25" height="25" data-icon="clarity:clone-line">
<div class="iconify me-2 text-info" width="25" height="25" data-icon="clarity:clone-line">
</div>
</a>
<a href="<?= buildUrl("edit_configuration?configName=$configName") ?>">
<div class="iconify me-2" width="25" height="25" data-icon="ic:round-edit">
<div class="iconify me-2 text-warning" width="25" height="25" data-icon="ic:round-edit">
</div>
</a>
<input type="submit" name="btn-openDeleteModal"
class="btn-openModal iconify me-2"
width="25" height="25" color="red" data-icon="mingcute:delete-fill"
class="btn-openModal iconify me-2 text-danger"
width="25" height="25" data-icon="mingcute:delete-fill"
href="<?= buildUrl("delete_configuration?configName=$configName") ?>" />
</div>
</div>
Expand All @@ -52,7 +52,7 @@ class="btn-openModal iconify me-2"
</div>

<div class="d-flex flex-row m-2 justify-content-between align-items-center">
<p class="ms-3 mb-0">Total: <?= count((array)$configurations) ?></p>
<p class="ms-3 mb-0">You have <?= count((array)$configurations) ?> tracked log files</p>
<a href="<?= buildUrl("add_configuration") ?>" class="btn btn-primary py-1 px-2">
Add Configuration
</a>
Expand Down
20 changes: 19 additions & 1 deletion views/pages/troubleshooting.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
</p>
</div>
</li>
<li class="mb-3">
<strong>One of my configurations has a "This file is read only" warning</strong>
<div>
<p>
This means that the file is read only and cannot be truncated. To fix this
issue, simply change the file's permissions to 777.
</p>
</div>
</li>
<li class="mb-3">
<strong>One of my configurations has a "File not found" warning</strong>
<div>
<p>
This means that the file path is incorrect. To fix this issue, simply change
the file's path to the correct one.
</p>
</div>
</li>
<li class="mb-3">
<strong>How do I add a log file to be tracked?</strong>
<div>
Expand All @@ -46,7 +64,7 @@
</div>
</li>
<li class="mb-3">
<strong>Can I share a new parser?</strong>
<strong>I had to create a new parser file. Can I share it for the community?</strong>
<div>
<p>Absolutely! If you've created your own parser and want to spread the love, please send
it our way. We would be more than happy to include it among the other parsers and give
Expand Down

0 comments on commit 483cf75

Please sign in to comment.