Sha256: 04f49d90b1464bf18df265e574afa7e92f5efd40556e586a0e10c12363da7980

Contents?: true

Size: 986 Bytes

Versions: 1

Compression:

Stored size: 986 Bytes

Contents

<section class='new-link'>
  <form action='/+/links' method='POST'>
    <p><input type='text' name='url' placeholder='https://...' value="<%= session[:last_form]&.dig(:url)&.sub(?", '') %>" class='new-link-url' autocomplete=off></p>
    <p class='new-link-down'>⬇︎</p>
    <p><input type='text' name='linkname' placeholder='Choose a short name (Recommended)' value="<%= session[:last_form]&.dig(:linkname)&.sub(?", '') %>" class='new-link-name' autocomplete=off></p>
    <p><input type='submit' value='Shorten'></p>
  </form>
</section>

<div class='infos'>
  <% if notice_message %>
    <section>
      <h3>Notice</h3>
      <%== notice_message %>
    </section>
  <% end %>
  <section>
    <h3>Usage</h3>
    <form action='/+' method='GET'>
      <p>Edit a link: <input type='text' name='show' placeholder='name...'> <input type='submit' value='Go'></p>
    </form>
    <p>Or add + (plus) sign after the URL like: <%= base_url %>/something → /something+</p>
  </section>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
corpshort-0.2.0 app/views/index.erb