Skip to content

Commit

Permalink
wip: hp & search results
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodeloo committed Jul 3, 2023
1 parent 6463064 commit 77aaa1c
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

<small class="text-muted">
{% spaceless %}
<i class="fas fa-clock"></i>&nbsp;
{% if post.poster %}
{% url 'members:profile' post.poster.username as poster_url %}
{% blocktrans trimmed with poster_url=poster_url poster=post.poster_display_name creation_date=post.created %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<div id="{{ topic.pk }}" class="card post mb-3">
<div class="card-header mb-1 d-flex flex-column flex-md-row align-items-md-center">
<div class="topic-thumbnail bg-light d-none d-md-block">
<i class="ri-article-line ri-xl mr-1" aria-hidden="true"></i>
</div>
<p class="h4 mb-0 flex-grow-1">
<a href="{% url 'forum_conversation:topic' topic.forum.slug topic.forum.pk topic.slug topic.pk %}"
Expand Down
14 changes: 8 additions & 6 deletions lacommunaute/templates/forum_search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,16 @@ <h3 class="h4 mb-0">{{ page.paginator.count }} {% trans "result" %}{{ page.pagin
<tr>
<td class="position-relative">
<a href="{% url 'forum_conversation:topic' result.forum_slug result.forum result.topic_slug result.topic %}"
class="btn-link stretched-link matomo-event"
class="btn-link stretched-link btn-ico matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="topic"
>
{{ result.topic_subject }}</a><br>
<i class="ri-user-line ri-lg" aria-hidden="true"></i>
<span>{{ result.topic_subject }}</span>
</a><br>
<small class="text-muted">
{% spaceless %}
<i class="fas fa-clock"></i>&nbsp;
{% blocktrans trimmed with poster_username=result.poster_name creation_date=result.created %}
By: {{ poster_username }},
{% endblocktrans %}
Expand All @@ -67,15 +68,16 @@ <h3 class="h4 mb-0">{{ page.paginator.count }} {% trans "result" %}{{ page.pagin
<tr>
<td class="position-relative">
<a href="{% url 'forum_extension:forum' result.forum_slug result.forum %}"
class="btn-link stretched-link matomo-event"
class="btn-link btn-ico stretched-link matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="forum"
>
{{ result.forum_name }}</a><br>
<i class="ri-article-line" aria-hidden="true"></i>
<span>{{ result.forum_name }}</span>
</a><br>
<small class="text-muted">
{% spaceless %}
<i class="fas fa-clock"></i>&nbsp;
Fiche mise à jour
{% endspaceless %}
{{result.forum_updated|relativetimesince_fr}}
Expand Down
5 changes: 0 additions & 5 deletions lacommunaute/templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,8 @@ <h3>Les dernières actus</h3>
</div>
</div>
</div>
</div>
</div>
</section>




{% endblock %}

{% block extra_js %}
Expand Down
26 changes: 12 additions & 14 deletions lacommunaute/templates/partials/ask_a_question.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
{% load i18n %}


{% if forum %}
<div class="row">
<div class="col-12 col-lg-auto">
<div class="row align-items-center">
<div class="col-12 col-md-auto">
<a href="{% url 'forum_conversation:topic_create' forum.slug forum.pk %}"
class="btn btn-primary btn-ico matomo-event"
data-matomo-category="engagement"
data-matomo-action="contribute"
data-matomo-option="new_topic">
class="btn btn-primary btn-ico btn-block matomo-event"
data-matomo-category="engagement"
data-matomo-action="contribute"
data-matomo-option="new_topic">
<i class="ri-chat-new-line ri-lg"></i>
<span>{% trans "New topic" %}</span>
</a>
</div>
<div class="col-12 col-lg-auto">
<div class="col-12 col-md-auto py-1 py-md-0 px-md-0 text-center">
ou
</div>
<div class="col-12 col-lg-auto">
<div class="col-12 col-md-auto">
<a href="{% url 'forum_search_extension:search' %}"
class="btn btn-outline-primary btn-ico matomo-event"
data-matomo-category="engagement"
data-matomo-action="search"
data-matomo-option="query">
class="btn btn-outline-primary btn-ico btn-block matomo-event"
data-matomo-category="engagement"
data-matomo-action="search"
data-matomo-option="query">
<i class="ri-chat-new-line ri-lg"></i>
<span>{% trans "Search forums" %}</span>
</a>
</div>
</div>
{% endif %}

6 changes: 1 addition & 5 deletions lacommunaute/templates/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@
Évènements publics
</a>
</li>
<li>
<a href="{% url 'forum_search_extension:search' %}">
{% trans "Search forums" %}
</a>
</li>
<li><a href="{% url 'forum_search_extension:search' %}">{% trans "Search forums" %}</a></li>
</ul>
</div>
<div class="s-footer-quick__col col-12 col-md-6 col-lg-auto">
Expand Down
15 changes: 5 additions & 10 deletions lacommunaute/templates/partials/header_nav_secondary_items.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,27 @@
{% load i18n %}
{% load theme_inclusion %}
<ul>
<li class="col-12 col-lg-auto">
<a href="{% url 'pages:home' %}">
Accueil
</a>
</li>
<li class="col-12 col-lg-auto">
<li>
<a href="{% url 'forum_conversation_extension:publicforum' %}">
Espace d'échanges
</a>
</li>
<li class="col-12 col-lg-auto mt-3 mt-lg-0">
<li>
<a href="{% url 'forum_conversation_extension:newsfeed' %}">
Actualités
</a>
</li>
<li class="col-12 col-lg-auto mt-3 mt-lg-0">
<li>
<a href="{% url 'forum_extension:documentation' %}">
Documentations
</a>
</li>
<li class="col-12 col-lg-auto mt-3 mt-lg-0">
<li>
<a href="{% url 'event:calendar' %}">
Évènements publics
</a>
</li>
<li class="col-12 col-lg-auto mt-3 mt-lg-0">
<li>
<a href="{% url 'forum_search_extension:search' %}">
{% trans "Search forums" %}
</a>
Expand Down

0 comments on commit 77aaa1c

Please sign in to comment.