Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
agent async status
<%= link "Agent", to: agent_path(@conn, :show) %>
<%= if @is_agent_online do %>
(Online: <span class="has-text-success"><%= @is_agent_online %></span>)
<% else %>
(Online: <span class="has-text-danger"><%= @is_agent_online %></span>)
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.