Sha256: 82745d1cf62096e93227f9b7295631bbb5bc207952d2f5803ed2db23e9ec91eb

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

<div id="<%= profile.name %>" class="profile-entry">
  <% 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 %>

  <span class="entry-name"><%= profile.name.titleize %></span>

  <%= form_tag(profile_path(name: profile.name), method: :delete, remote: true, class: "inline-form") do %>
    <button class="btn-sail"><%= I18n.t("sail.delete") %></button>
  <% end %>

  <%= form_tag(switch_profile_path(name: profile.name), method: :put, remote: true, class: "inline-form") do %>
    <button class="btn-sail" type="submit"><%= I18n.t("sail.activate") %></button>
  <% end %>

  <%= form_tag(profiles_path, method: :post, remote: true, class: "inline-form") do %>
    <input type="hidden" name="name" value="<%= profile.name %>">
    <button class="btn-sail" type="submit"><%= I18n.t("sail.save") %></button>
  <% end %>

  <div class="clearfix"></div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sail-3.4.0 app/views/sail/profiles/_profile.html.erb
sail-3.3.0 app/views/sail/profiles/_profile.html.erb
sail-3.2.4 app/views/sail/profiles/_profile.html.erb
sail-3.2.3 app/views/sail/profiles/_profile.html.erb