public
Clone URL: git://github.com/robbyrussell/rubyurl.git
Search Repo:
robbyrussell (author)
Wed May 14 08:44:53 -0700 2008
commit  65af4e584b40dd9663fa3eebf1b7e79df01335a7
tree    67ea5ee96b815a0c934477cb858162fb7291859c
parent  9c710b6160958e137b1ad24dc3f6b185d5c043ee
rubyurl / app / views / links / show.rhtml
100644 24 lines (21 sloc) 0.766 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div id="app_content">
  <h1>Here is your RubyURL</h1>
 
  <div id="url" class="arrow">
    <%= link_to @link.permalink, @link.permalink -%>
    <div id="x_copy_button">
     <%= button_to_function 'Copy your RubyURL', "copy('#{@link.permalink}');" -%>
    </div>
    <div id="x_copied" style="display:none;">Your RubyURL is ready for pasting!</div>
  </div>
 
  <dl id="url_stats">
    <dt>Original URL Length:</dt>
    <dd><%= @link.website_url.length -%> characters</dd>
    <dt>RubyURL Length:</dt>
    <dd><%= @link.permalink.length -%> characters</dd>
    <dt>shortened by:</dt>
    <dd><%= @link.website_url.length - @link.permalink.length -%> characters</dd>
  </dl>
 
  <div id="action">
    <%= link_to 'Create another rubyurl', '/' -%> &#8617;
  </div>
</div><!-- end app_content -->