Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
agent async status
<p>
<%= 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 %>
</p>
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.