Sha256: 707cf19de25fbdf0689c35676626d22a0fbf7c3596d45e4d12d5aa7ea6af758a

Contents?: true

Size: 280 Bytes

Versions: 4

Compression:

Stored size: 280 Bytes

Contents

<div class="item">
  <h2><%= control.name %></h2>
  <p><%= runner.pins[control.id].read.nonzero? ? "On" : "Off" %></p>
  <form action="/<%= control.id %>" method="get">
    <input type="submit" value="<%= runner.pins[control.id].read.nonzero? ? "Off" : "On" %>">
  </form>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whipped-cream-0.1.1 lib/whipped-cream/views/switch.erb
whipped-cream-0.1.0 lib/whipped-cream/views/switch.erb
whipped-cream-0.0.1 lib/whipped-cream/views/switch.erb
whipped-cream-0.0.1pre5 lib/whipped-cream/views/switch.erb