consul/consul

View on GitHub
app/views/comments/_responses_count.html.erb

Summary

Maintainability
Test Coverage
<% if count > 0 %>
  <%= link_to "", class: "js-toggle-children" do %>
    <span class="show-children"><%= t("comments.comment.responses_show", count: count) %></span>
    <span class="collapse-children"><%= t("comments.comment.responses_collapse", count: count) %></span>
  <% end %>
<% else %>
  <%= t("comments.comment.responses", count: 0) %>
<% end %>