1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-06 14:47:46 +00:00
Havana/tools/www-tpl/pt/housekeeping/articles.tpl
2025-02-24 08:11:19 -03:00

49 lines
No EOL
1.8 KiB
Smarty

{% include "housekeeping/base/header.tpl" %}
<body>
{% set articlesActive = " active " %}
{% include "housekeeping/base/navigation.tpl" %}
<h1 class="mt-4">Notícias</h1>
{% include "housekeeping/base/alert.tpl" %}
<p>Isso inclui os artigos mais recentes publicados no site, você pode editá-los ou excluí-los se desejar.</p>
<p><a href="/{{ site.housekeepingPath }}/articles/create" class="btn btn-danger">Nova notícia</a></p>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Nome</th>
<th>Autor</th>
<th>Resumo</th>
<th>Data</th>
<th>Visualizações</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">Editar</a>
<a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/articles/delete?id={{ article.id }}" class="btn btn-danger">Deletar</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>