}
}
-/* Rules for the user profile page */
-
-.contact-activity {
- margin-top: $lineheight;
- width: 100%;
-}
-
/* Rules for the user map */
.content_map .leaflet-popup-content {
:icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
:description => render(:partial => "popup", :object => contact, :locals => { :type => type })
} %>
-<%= tag.div :class => "contact-activity clearfix row", :data => { :user => user_data } do %>
+<%= tag.div :class => "clearfix row", :data => { :user => user_data } do %>
<div class="col-auto">
<%= user_thumbnail contact, :class => "user_thumbnail_no_margins" %>
</div>
<% if friends.empty? %>
<%= t ".no friends" %>
<% else %>
- <nav class='secondary-actions'>
+ <nav class='secondary-actions mb-3'>
<ul class='clearfix'>
<li><%= link_to t(".friends_changesets"), friend_changesets_path %></li>
<li><%= link_to t(".friends_diaries"), friends_diary_entries_path %></li>
<% if nearby.empty? %>
<%= t ".no nearby users" %>
<% else %>
- <nav class='secondary-actions'>
+ <nav class='secondary-actions mb-3'>
<ul class='clearfix'>
<li><%= link_to t(".nearby_changesets"), nearby_changesets_path %></li>
<li><%= link_to t(".nearby_diaries"), nearby_diary_entries_path %></li>
# Friends should be visible as we're now logged in
assert_select "div#friends-container" do
- assert_select "div.contact-activity", :count => 1
+ assert_select "div" do
+ assert_select "a[href='/user/#{ERB::Util.u(friend_user.display_name)}']", :count => 1
+ end
end
end
end