Sha256: d69bb8c359afb66008ec28a64c3707e0968dd4ce95b0312bc381f55ee530ffa3
Contents?: true
Size: 1.49 KB
Versions: 4
Compression:
Stored size: 1.49 KB
Contents
<div id="<%= profile.name %>" class="profile-entry flex-container space-between"> <div> <% if profile.active? %> <span class="active-indicator <%= profile.dirty? ? "yellow" : "green" %>" title="<%= profile.dirty? ? I18n.t("sail.dirty_profile_tooltip") : I18n.t("sail.clean_profile_tooltip") %>"> ⬤ </span> <% unless Sail.instrumenter.profile(profile.name).zero? %> <span class="errors-indicator" title="<%= I18n.t("sail.profile_error_tooltip") %>"> <%= I18n.t("sail.profile_errors", count: Sail.instrumenter.profile(profile.name)) %> </span> <% end %> <% end %> </div> <div> <span class="entry-name"><%= profile.name.titleize %></span> </div> <div> <div class="flex-container space-between buttons"> <div> <%= form_tag(profile_path(name: profile.name), method: :delete, remote: true) do %> <button class="btn-sail"><%= I18n.t("sail.delete") %></button> <% end %> </div> <div> <%= form_tag(switch_profile_path(name: profile.name), method: :put, remote: true) do %> <button class="btn-sail" type="submit"><%= I18n.t("sail.activate") %></button> <% end %> </div> <div> <%= form_tag(profiles_path, method: :post, remote: true) do %> <input type="hidden" name="name" value="<%= profile.name %>"> <button class="btn-sail" type="submit"><%= I18n.t("sail.save") %></button> <% end %> </div> </div> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems