<div class='info'>
  <ul>
    <% @emails.each do |email| %>
    <li>Email:
      <%= link_to(email_path(email.id)) do %>
        <%= email.subject %>
        <br>
        <%= truncate(email.text, length: 100) %>
      <% end %>
    </li>
    <br>
    <% end %>
    <br>
  </ul>
  <%= link_to 'Edit', edit_user_path(@user) %> |
  <%= link_to 'Back', users_path %>
</div>

<div class='info'>
  <ul>
    <% @emails.each do |email| %>
    <li>Subject :
      <%= link_to(email_path(email.id)) do %>
        <%= email.subject %>
        <br>
        <%= truncate(email.text, length: 100) %>
        <% if email.sentiment == "positive" %>
          <p id= 'positive'>Positive</p>
        <% else %>
          <p id= 'negative'>Negative</p>
        <% end %>
      <% end %>
    </li>
    <br>
    <% end %>
    <br>
  </ul>
  <%= link_to 'Edit', edit_user_path(@user) %> |
  <%= link_to 'Back', users_path %>
</div>

Add sentiment styling with colors for emails index
Add sentiment styling with colors for emails index
