Skip to content

Commit

Permalink
Add section title to "Oznacz jako przeczytane"
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Sep 6, 2024
1 parent 7294ba5 commit 0ffa3fa
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 28 deletions.
32 changes: 19 additions & 13 deletions resources/views/forum/category.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

<main id="js-forum" class="mainbar">
<vue-section
v-for="(section, index) in sections"
:key="index"
:name="section.name"
:order="section.order"
:categories="section.categories"
v-for="(section, index) in sections"
:key="index"
:name="section.name"
:order="section.order"
:categories="section.categories"
></vue-section>

{% include 'forum.partials.topics' %}
Expand All @@ -40,14 +40,20 @@
{% embed "forum.partials.sidebar.twig" %}
{% block side_menu %}
{% include 'forum.partials.post_count' %}

<ul id="js-sidebar" class="side-menu">
<li>
<a @click="markTopics" title="Oznacz kategorie jako przeczytane">
<i class="far fa-eye fa-fw"></i> Oznacz jako przeczytane
</a>
</li>
</ul>
<div class="box">
<h4 class="heading">
<i class="fa-solid fa-circle-dot"></i>
Akcje
</h4>
<ul id="js-sidebar" class="side-menu">
<li>
<a @click="markTopics" title="Oznacz kategorie jako przeczytane">
<i class="far fa-eye fa-fw"></i>
Oznacz jako przeczytane
</a>
</li>
</ul>
</div>
{% endblock %}
{% endembed %}

Expand Down
36 changes: 21 additions & 15 deletions resources/views/forum/home.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
<main id="js-forum" class="mainbar">
{% block mainbar %}
<vue-section
v-for="(section, index) in sections"
:key="index"
:name="section.name"
:order="section.order"
:categories="section.categories"
:is-collapse="section.isCollapse"
@collapse="changeCollapse"
v-for="(section, index) in sections"
:key="index"
:name="section.name"
:order="section.order"
:categories="section.categories"
:is-collapse="section.isCollapse"
@collapse="changeCollapse"
></vue-section>
{% endblock %}

Expand All @@ -35,14 +35,20 @@
{% embed 'forum.partials.sidebar' %}
{% block side_menu %}
{% include 'forum.partials.post_count' %}

<ul id="js-sidebar" class="side-menu">
<li>
<a @click="markForums" title="Oznacz kategorie jako przeczytane">
<i class="far fa-eye fa-fw"></i> Oznacz jako przeczytane
</a>
</li>
</ul>
<div class="box">
<h4 class="heading">
<i class="fa-solid fa-circle-dot"></i>
Akcje
</h4>
<ul id="js-sidebar" class="side-menu">
<li>
<a @click="markForums" title="Oznacz kategorie jako przeczytane">
<i class="far fa-eye fa-fw"></i>
Oznacz jako przeczytane
</a>
</li>
</ul>
</div>
{% endblock %}
{% endembed %}

Expand Down

0 comments on commit 0ffa3fa

Please sign in to comment.