Sha256: e6b2de624bfe23639fbfd326fe0b5801d987f9b1fefff8a893837e411d9b4149

Contents?: true

Size: 765 Bytes

Versions: 6

Compression:

Stored size: 765 Bytes

Contents

<div class="redis-snippets">
  <h1 class="h1">Snippets</h1>

  <%= form_tag "", method: :put, class: "redis-snippets__form" do |f| %>
    <fieldset class="redis-snippets__fieldset">
      <ol class="redis-snippets__list">
        <% RedisSnippets::Engine.config.redis_snippets[:keys].each do |key| %>
          <li class="redis-snippets__snippet">
            <%= label_tag key.to_s, key.to_s, class: "redis-snippets__snippet-label" %>
            <%= text_area_tag "snippets[#{key}]", SnippetStoreService.send(snippet_key(key)), cols: 120, rows: 10 %>
          </li>
        <% end -%>
      </ol>
    </fieldset>
    <fieldset class="redis-snippets__actions">
      <%= button_tag "Submit", class: "redis-snippets__submit" %>
    </fieldset>
  <% end -%>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
redis_snippets-1.0.5 app/views/redis_snippets/snippets/show.html.erb
redis_snippets-1.0.4 app/views/redis_snippets/snippets/show.html.erb
redis_snippets-1.0.3 app/views/redis_snippets/snippets/show.html.erb
redis_snippets-1.0.2 app/views/redis_snippets/snippets/show.html.erb
redis_snippets-1.0.1 app/views/redis_snippets/snippets/show.html.erb
redis_snippets-1.0.0 app/views/redis_snippets/snippets/show.html.erb