<div id="history">
<h2>Command history</h2>
<% @history.each do |line| %>
<%   if line[/^# /] %>
<div class="histtime"><%= line %></div>
<%   else %>
<div class="histline"><%= line %></div>
<%   end %>
<% end %>
</div>
