rootstrap/activeadmin-chat

View on GitHub
app/views/active_admin/chat/show.html.erb

Summary

Maintainability
Test Coverage
<div class='active-admin-chat__chat'>
  <%= render partial: 'active_admin/chat/list' %>

  <div class='active-admin-chat__conversation-history-container'>
    <div class='active-admin-chat__conversation-history'>
      <% if active_conversation && messages.empty? %>
          <div class='active-admin-chat__conversation-history no-messages'>No messages</div>
      <% else %>
        <%= render partial: 'active_admin/chat/messages' %>
      <% end %>
    </div>
    <div class='active-admin-chat__send-message-container'>
      <input type='text' id='send-message' placeholder="Send message" />
    </div>
  </div>
</div>
<%= javascript_pack_tag 'activeadmin-chat' %>