+<% content_for :heading_class, "pb-0" %>
+
<% content_for :heading do %>
- <h1><%= t ".heading", :user => @user.display_name %></h1>
- <p><%= t ".subheading_html", :user => link_to(@user.display_name, @user) %></p>
+ <h1><%= t ".heading_html", :user => link_to(@user.display_name, @user) %></h1>
+ <ul class="nav nav-tabs">
+ <li class="nav-item">
+ <a class="nav-link active"><%= t ".diary_entries" %></a>
+ </li>
+ </ul>
<% end %>
<% if @comments.empty? %>
diary_comments:
index:
title: "Diary Comments added by %{user}"
- heading: "%{user}'s Diary Comments"
- subheading_html: "Diary Comments added by %{user}"
- no_comments: "No diary comments"
+ heading_html: "%{user}'s Comments"
+ diary_entries: "Diary entries"
+ no_comments: "No comments"
page:
post: Post
when: When
get user_diary_comments_path(user)
assert_response :success
assert_template :index
- assert_select "h4", :html => "No diary comments"
+ assert_select "h4", :html => "No comments"
# Test a user with a comment
create(:diary_comment, :user => other_user)