public
Clone URL: git://github.com/robbyrussell/rubyurl.git
Search Repo:
Adding a buttn to allow people to copy the rubyurl to their paste buffer
robbyrussell (author)
Wed May 14 08:22:49 -0700 2008
commit  9c710b6160958e137b1ad24dc3f6b185d5c043ee
tree    29f28f095ba0b045e31b09701801f0faeba8be1b
parent  f288173ad00278e5364b331748679bffdbec0416
...
14
15
16
 
17
18
19
...
14
15
16
17
18
19
20
0
@@ -14,6 +14,7 @@
0
 
0
   <%= stylesheet_link_tag "reset" %>
0
   <%= stylesheet_link_tag "master" %>
0
+ <%= javascript_include_tag :defaults %>
0
   <!--[if lt IE 7]><%= stylesheet_link_tag "ie" %><![endif]-->
0
 </head>
0
 
...
2
3
4
5
 
 
 
 
 
6
7
8
...
2
3
4
 
5
6
7
8
9
10
11
12
0
@@ -2,7 +2,11 @@
0
   <h1>Here is your RubyURL</h1>
0
 
0
   <div id="url" class="arrow">
0
- <%= link_to @link.permalink, @link.permalink -%>
0
+ <%= link_to @link.permalink, @link.permalink -%>
0
+ <div id="x_copy_button">
0
+ <%= button_to_function 'Copy this RubyURL', "copy('#{@link.permalink}');" -%>
0
+ </div>
0
+ <div id="x_copied" style="display:none;">copied and ready for pasting!</div>
0
   </div>
0
 
0
   <dl id="url_stats">

Comments

    No one has commented yet.