lib/rewritten/server/views/delete.erb in rewritten-0.0.3 vs lib/rewritten/server/views/delete.erb in rewritten-0.0.4
- old
+ new
@@ -1,15 +1,20 @@
-<div style="float:left">
+<div style="">
<% if @from && @to %>
- <h2><%= @from %> -> <%= @to %> </h2>
+
+ <h2 style="width: 90%; overflow: scroll"><%= @from %> -> <%= @to %> </h2>
+
+ <div style="float :left">
+
<p>Are you sure you want to delete above translation?</p>
<form action='<%= u("/delete")%>' method="post" style="margin-top: 10px ">
<input type="hidden" name="_method" value="delete">
<input type="hidden" name="from" value="<%= @from %>">
- <input type="hidden" name="to" value="<%= @to %>">
+ <input type="hidden" name="to" value="<%= @to %>">
<input type="submit" value="Yes, Delete It!">
- <a href='<%= u("/to?to=#{@to}") %>'>Cancel</a>
+ <a href='<%= u("/to?to=#{escape(@to)}") %>'>Cancel</a>
</form>
+ </div>
<% else %>
<p>Translation not found.</p>
<% end %>
</div>