lib/letter_opener/web/views/index.erb in letter_opener-web-0.1.2 vs lib/letter_opener/web/views/index.erb in letter_opener-web-0.2.0
- old
+ new
@@ -17,13 +17,19 @@
<input type="hidden" name="message_ids" value="" />
<button type="submit" class="btn btn-danger" title="Clear inbox">
<span class="glyphicon glyphicon-trash"></span>
</button>
</form>
- <a class="btn btn-primary refresh" href="<%= root_path %>">
+ <a id="refresh" class="btn btn-primary refresh" href="<%= root_path %>">
<span class="glyphicon glyphicon-refresh"></span>
</a>
+ <form id="search" class="form-horizontal">
+ <div class="form-group has-feedback">
+ <input id="search_input" class="form-control" />
+ <span class="form-control-feedback glyphicon glyphicon-search"></span>
+ </div>
+ </form>
</div>
</li>
</ul>
</div>
</div>
@@ -33,10 +39,10 @@
<li class="list-group-item message">
<input id="message_<%= message.id %>" name="message_ids[]" type="checkbox" value="<%= message.id %>" />
<label for="message_<%= message.id %>"></label>
<a href="<%= root_path + message.id %>" target='mail'>
<dl>
- <dt><%= message.info[:subject] || message.id %></dt>
+ <dt><%=h message.info[:subject] || message.id %></dt>
<dd class="text-right"><small><%= message.sent_at %></small></dd>
</dl>
</a>
</li>
<% end %>