Fixes to following/follower lists

This commit is contained in:
Victoria Wang 2014-10-15 16:17:29 -07:00
parent c1939b5d72
commit ae2bd68858
2 changed files with 4 additions and 4 deletions

View file

@ -484,7 +484,7 @@ a.tag:hover {
text-decoration: none; text-decoration: none;
background: #FFEE8A; background: #FFEE8A;
} }
.follower-list { .follower-list, .following-list {
width: 100%; width: 100%;
float: left; float: left;
margin-bottom: 2em; margin-bottom: 2em;

View file

@ -1,7 +1,7 @@
<% site_followings = site.followings %> <% site_followings = site.followings %>
<% if (!is_current_site && !site_followings.empty?) || is_current_site %> <% if (!is_current_site && !site_followings.empty?) || is_current_site %>
<div class="following-list">
<h3><%= is_current_site ? 'You follow' : 'This site follows' %></h3> <h3><%= is_current_site ? 'You follow' : 'This site follows' %></h3>
<div class="following">
<% if site_followings.empty? %> <% if site_followings.empty? %>
<p>You are not following any sites yet. Add some by <a href="/browse">browsing sites</a> or looking at your tags. <p>You are not following any sites yet. Add some by <a href="/browse">browsing sites</a> or looking at your tags.
<% else %> <% else %>
@ -14,8 +14,8 @@
<% site_follows = site.follows %> <% site_follows = site.follows %>
<% if (!is_current_site && !site_follows.empty?) || is_current_site %> <% if (!is_current_site && !site_follows.empty?) || is_current_site %>
<h3>Followers</h3>
<div class="follower-list"> <div class="follower-list">
<h3>Followers</h3>
<% if site_follows.empty? %> <% if site_follows.empty? %>
No followers yet. No followers yet.
<% else %> <% else %>