mirror of
https://github.com/Quackster/Havana.git
synced 2025-07-03 13:17:46 +00:00
49 lines
1.8 KiB
Smarty
49 lines
1.8 KiB
Smarty
![]() |
{% include "housekeeping/base/header.tpl" %}
|
||
|
<body>
|
||
|
{% set articlesActive = " active " %}
|
||
|
{% include "housekeeping/base/navigation.tpl" %}
|
||
|
<h1 class="mt-4">Posted Articles</h1>
|
||
|
{% include "housekeeping/base/alert.tpl" %}
|
||
|
<p>This includes the most recent articles posted on the site, you may edit or delete them if you wish.</p>
|
||
|
<p><a href="/{{ site.housekeepingPath }}/articles/create" class="btn btn-danger">New News Article</a></p>
|
||
|
<div class="table-responsive">
|
||
|
<table class="table table-striped">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Author</th>
|
||
|
<th>Short Story</th>
|
||
|
<th>Date</th>
|
||
|
<th>Views</th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for article in articles %}
|
||
|
<tr>
|
||
|
<td>{{ article.title }}</td>
|
||
|
<td>{{ article.author }}</td>
|
||
|
<td>{{ article.shortstory }}</td>
|
||
|
<td>{{ article.getDate() }}</td>
|
||
|
<td>{{ article.views }}</td>
|
||
|
<td>
|
||
|
<a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/articles/edit?id={{ article.id }}" class="btn btn-primary">Edit</a>
|
||
|
<a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/articles/delete?id={{ article.id }}" class="btn btn-danger">Delete</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
|
||
|
<script src="https://blackrockdigital.github.io/startbootstrap-simple-sidebar/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||
|
<script>
|
||
|
$("#menu-toggle").click(function(e) {
|
||
|
e.preventDefault();
|
||
|
$("#wrapper").toggleClass("toggled");
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|