Skip to content

Instantly share code, notes, and snippets.

@sreecodeslayer
Last active August 21, 2019 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sreecodeslayer/246312be1c4b766cbe06dd8ce4307d13 to your computer and use it in GitHub Desktop.
Save sreecodeslayer/246312be1c4b766cbe06dd8ce4307d13 to your computer and use it in GitHub Desktop.
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