Sha256: 0da93c972cbeea7537366bd73e035e0370975eff1a0c86e35b6161cf27166247

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 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>
  <% 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

6 entries across 6 versions & 1 rubygems

Version Path
sail-3.2.2 app/views/sail/profiles/_profile.html.erb
sail-3.2.1 app/views/sail/profiles/_profile.html.erb
sail-3.2.0 app/views/sail/profiles/_profile.html.erb
sail-3.1.0 app/views/sail/profiles/_profile.html.erb
sail-3.0.1 app/views/sail/profiles/_profile.html.erb
sail-3.0.0 app/views/sail/profiles/_profile.html.erb