copy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/copy/admin/edit.html.erb +1 -1
- data/lib/copy/version.rb +1 -1
- metadata +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
<div id="_copy">
|
2
2
|
<form class="_copy_edit_form" data-content-name="<%= @name %>" action="/_copy/<%= @name %>">
|
3
|
-
<% if @doc =~ /\n/
|
3
|
+
<% if @doc =~ /\n/ || @doc.length > 40 %>
|
4
4
|
<textarea name="content"><%=h @doc %></textarea>
|
5
5
|
<% else %>
|
6
6
|
<input type="text" name="content" value="<%=h @doc %>" />
|
data/lib/copy/version.rb
CHANGED
metadata
CHANGED