lib/split/dashboard/views/_experiment.erb in split-0.3.3 vs lib/split/dashboard/views/_experiment.erb in split-0.4.0

- old
+ new

@@ -1,8 +1,13 @@ <div class="experiment"> <div class="experiment-header"> - <h2>Experiment: <%= experiment.name %> <% if experiment.version > 1 %><span class='version'>v<%= experiment.version %></span><% end %></h2> + <h2> + Experiment: <%= experiment.name %> + <% if experiment.version > 1 %><span class='version'>v<%= experiment.version %></span><% end %> + </h2> + <div class='inline-controls'> + <small><%= experiment.start_time ? experiment.start_time.strftime('%Y-%m-%d') : 'Unknown' %></small> <form action="<%= url "/reset/#{experiment.name}" %>" method='post' onclick="return confirmReset()"> <input type="submit" value="Reset Data"> </form> <form action="<%= url "/#{experiment.name}" %>" method='post' onclick="return confirmDelete()"> <input type="hidden" name="_method" value="delete"/> \ No newline at end of file