Skip to content

Commit

Permalink
Update: Changing redirect of search view
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi-KLevy committed Jul 31, 2024
1 parent ccb73bf commit ab002d8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions forunb/main/templates/main/forums.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,25 @@

</style>

<h2 class="titulo fw-bold p-4">Meus fóruns</h2>

<h2 class="titulo fw-bold p-4">Meus fóruns</h2>
<div class="scroll-container p-3 rounded container"> <!--Controle do scroll dos foruns-->
{% if query %}
<h2 class="titulo fw-bold p-4">Resultados da pesquisa para "{{ query }}"</h2>
{% endif %}

<div class="scroll-container p-3 rounded container">
{% for forum in forums %}
<div class="list-group col-xxl-12 "> <!--Listagem dos foruns-->
<div class="list-group col-xxl-12">
<a class="foruns list-group-item list-group-item-action" href="{% url 'forum_detail' forum.id %}">
<div class=" d-flex w-100 justify-content-between">
<div class="d-flex w-100 justify-content-between">
<h5 class="fw-bold mb-1">{{ forum.title }}</h5>
</div>
<p class="mb-1">{{ forum.description }}</p>
</a>
<br>

</div>
{% empty %}
<p>Nenhum fórum encontrado.</p>
{% endfor %}
</div>
{% endblock %}

0 comments on commit ab002d8

Please sign in to comment.