* Add infinite scroll to followers list (#258) * Refactor fetchNext function for clarity (#258) * Sepparate following tab into multiple tabs to support infinite scroll (#258) * Add infinite scroll to following pages (#258) * Add tests to infinite scroll api * Refactor dashboard loading text * Refactor infine scroll function * Fix duplicated entries problem in infinite scrolling * Switch randomized attributes to sequential to avoid InvalidRecord error * Add acceptance tests for infinite scroll * Remove unused following method * parameterize limit per page for followers and followings * Split follows endpoint into followers and followings * Authenticate user with api key in followers and followings * Split followers endpoint into users and organizations * Add redundant html to sublist partial * Speed up infinite scroll tests * Refactor api json responses to use partials * Authenticate api user before follows create * Resolve conflicts on scrolling js * Improve partials organization and fix organization username bug * Improve readability of unauthorized test * Use let! to create scrolling test data * Fix not working podcasts link * Refactor initScrolling to remove linting errors * Fix codeclimate coding style issue * Test tags forms and podcasts hyperlinks * Fix eslint issue with double equals * Improve before_action usage and readability
14 lines
783 B
Text
14 lines
783 B
Text
<h1>
|
|
<a class="rounded-btn <%= "active" if params[:action] == "following_tags" %>" href="/dashboard/following_tags">
|
|
<span>tags (<%= @user.following_tags_count %>)</span>
|
|
</a>
|
|
<a class="rounded-btn <%= "active" if params[:action] == "following_users" %>" href="/dashboard/following_users">
|
|
<span>users (<%= @user.following_users_count %>)</span>
|
|
</a>
|
|
<a class="rounded-btn <%= "active" if params[:action] == "following_organizations" %>" href="/dashboard/following_organizations">
|
|
<span>organizations (<%= @user.following_organizations_count %>)</span>
|
|
</a>
|
|
<a class="rounded-btn <%= "active" if params[:action] == "following_podcasts" %>" href="/dashboard/following_podcasts">
|
|
<span>podcasts (<%= @user.following_podcasts_count %>)</span>
|
|
</a>
|
|
</h1>
|