-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Following and Followers page UI (#8372)
* adding tags in modals of Nodes #8230 * refactored #8230 * fixed tag path in the modal #8230 also fixed extra spacing when no tags on the modal * #8277 & #8278 changed UI for Following and Followers page * #8277 updating no followers / following message
- Loading branch information
1 parent
1a61864
commit 07b03d0
Showing
3 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
<div class="container"> | ||
<% @users.each do |user| %> | ||
<div class="col-lg-3"> | ||
<div style="text-align:center;"> | ||
<img class="rounded-circle" id="profile-photo" style="width:50%;margin-bottom:20px;" src="<%= user.profile_image %>"> | ||
<h3><%= user.username %></h3> | ||
</div> | ||
</div> | ||
<h3><%= @user.username %></h3> | ||
<ul class="nav nav-tabs border-0"> | ||
<li class="nav-item"> | ||
<%= link_to "Followers", followers_path(@user.username),class: "nav-link #{@title=='Followers' ? 'active' : ''}" %> | ||
</li> | ||
<li class="nav-item"> | ||
<%= link_to "Following", following_path(@user.username), class: "nav-link #{@title=='Following' ? 'active' : ''}" %> | ||
</li> | ||
</ul> | ||
<% if @users.length > 0 %> | ||
<table class="table"> | ||
<tbody> | ||
<% @users.each do |user| %> | ||
<tr class="followers-row"> | ||
<td><%= link_to "<i class='fa fa-user-o'></i> #{user.username}".html_safe, user_path(user.username) %> | ||
</tr> | ||
<% end %> | ||
</table> | ||
<%= will_paginate @users, renderer: WillPaginate::ActionView::BootstrapLinkRenderer %> | ||
<% else %> | ||
<p class="pt-3 border-top"> | ||
<%= @user.username %><%= @title === "Followers" ? " has no followers yet" : " is not following anyone yet" %> | ||
</p> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters