public
Description: Your favorite URL-shortening service in all of Ruby land
Homepage: http://rubyurl.com
Clone URL: git://github.com/robbyrussell/rubyurl.git
Search Repo:
commit  9c710b6160958e137b1ad24dc3f6b185d5c043ee
tree    29f28f095ba0b045e31b09701801f0faeba8be1b
parent  f288173ad00278e5364b331748679bffdbec0416
rubyurl / app / views / links / show.rhtml
100644 25 lines (21 sloc) 0.761 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
25
<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 this RubyURL', "copy('#{@link.permalink}');" -%>
    </div>
    <div id="x_copied" style="display:none;">copied and 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 -->