Overview of my own series #6938 (#9054)

* add series to dashboard sidebar template

* add series view to the user dashboard

* update typo

* merge master

* modify the dashboard to hold series count that link to the user's series page

* remove schema unnecessary change

* remove controller count from function
This commit is contained in:
Raphael Noriode 2020-08-06 09:54:59 +01:00 committed by GitHub
parent fc86c30790
commit 269ef9c4f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,11 @@
<span class="crayons-indicator"><%= @user.articles_count %></span>
</a>
<a class="crayons-link crayons-link--block <%= "crayons-link--current" if params[:action] == "series" && (params[:which] == "organization" || params[:which].blank?) %>" href="/<%=current_user.username%>/series">
Series
<span class="crayons-indicator"><%= @user.collections.count %></span>
</a>
<a class="crayons-link crayons-link--block <%= "crayons-link--current" if params[:action] == "followers" %>" href="/dashboard/user_followers">
Followers
<span class="crayons-indicator"><%= @user.followers_count %></span>