Skip to content

Commit

Permalink
Merge pull request #68 from Hojagulyyev/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Hojagulyyev authored Nov 15, 2023
2 parents 10f43d0 + 2ef7372 commit 931daaa
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/clans/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def overview(request):
diaries_count=Count("diaries", distinct=True),
diary_commits_count=Count("diaries__commits", distinct=True),
)
.order_by("-level")
.order_by("-diary_commits_count")
)
paginated_account_queryset = paginate(account_queryset, page, page_size)

Expand Down
4 changes: 4 additions & 0 deletions templates/clans/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ <h2 class="section-title">Overview</h2>
</div>
<!-- /WIDGET BOX -->

<!-- SECTION PAGER BAR WRAP -->
{% include "includes/pager-bar.html" with objects=accounts %}
<!-- /SECTION PAGER BAR WRAP -->

</div>
{% endblock content %}

Expand Down
15 changes: 15 additions & 0 deletions templates/partials/expanded-left-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,21 @@
<!-- MENU -->
<ul class="menu">

<!-- MENU ITEM -->
<li class="menu-item {% if request.resolver_match.url_name == 'overview' %} active {% endif %}">
<!-- MENU ITEM LINK -->
<a class="menu-item-link" href="{% url 'clans:overview' %}">
<!-- MENU ITEM LINK ICON -->
<svg class="menu-item-link-icon icon-newsfeed">
<use xlink:href="#svg-overview"></use>
</svg>
<!-- /MENU ITEM LINK ICON -->
Overview
</a>
<!-- /MENU ITEM LINK -->
</li>
<!-- /MENU ITEM -->

<!-- MENU ITEM -->
<li class="menu-item {% if request.resolver_match.url_name == 'newsfeed_view' %} active {% endif %}">
<!-- MENU ITEM LINK -->
Expand Down
27 changes: 26 additions & 1 deletion templates/partials/mobile-left-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,17 @@
</p>
<!-- /NAVIGATION WIDGET INFO TITLE -->

<!-- NAVIGATION WIDGET INFO TEXT --><!-- /NAVIGATION WIDGET INFO TEXT -->
<!-- NAVIGATION WIDGET INFO TEXT -->
<p class="navigation-widget-info-text">
<a href="#">
{% if user.account.clan %}
{{ user.account.clan }}
{% else %}
No Clan
{% endif %}
</a>
</p>
<!-- /NAVIGATION WIDGET INFO TEXT -->
</div>
<!-- /NAVIGATION WIDGET INFO -->

Expand All @@ -87,6 +97,21 @@
<!-- MENU -->
<ul class="menu">

<!-- MENU ITEM -->
<li class="menu-item {% if request.resolver_match.url_name == 'overview' %} active {% endif %}">
<!-- MENU ITEM LINK -->
<a class="menu-item-link" href="{% url 'clans:overview' %}">
<!-- MENU ITEM LINK ICON -->
<svg class="menu-item-link-icon icon-newsfeed">
<use xlink:href="#svg-overview"></use>
</svg>
<!-- /MENU ITEM LINK ICON -->
Overview
</a>
<!-- /MENU ITEM LINK -->
</li>
<!-- /MENU ITEM -->

<!-- MENU ITEM -->
<li class="menu-item {% if request.resolver_match.url_name == 'newsfeed_view' %} active {% endif %}">
<!-- MENU ITEM LINK -->
Expand Down

0 comments on commit 931daaa

Please sign in to comment.