Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added retweet button

  • Loading branch information...
commit 47f73f84914b5c672ff29ed9c3255d105b090dfc 1 parent e747bd4
authored

Showing 1 changed file with 61 additions and 50 deletions. Show diff stats Hide diff stats

  1. 111  layouts/post.rhtml
111  layouts/post.rhtml
@@ -8,54 +8,65 @@ dirty:     true
8 8
 <div class="full-post" align="left">
9 9
     <h2 class="post-title"><a href="<%= @page.url %>"><%= @page.title %></a></h2>
10 10
     <div class="post-subtitle"><%= @page.subtitle %></div>
11  
-	<div class="post-info">
12  
-	    <div class="post-date">Posted on <%= @page.created_at.strftime('%B %d, %Y') %></div>
13  
-		<div class="post-author">by <b><%= @page.author %></b></div>
14  
-		<div class="post-category">in <%= @page.category %></div>
15  
-		<div style="clear: both; height: 1px">&nbsp;</div>
16  
-	</div>
17  
-	<div style="clear:both; height: 5px">&nbsp;</div>
18  
-	<div class="post-body">
19  
-    	<%= @content %>
20  
-	</div>
21  
-	
22  
-	<div align="center" class="post-share">
23  
-		<div class="post-backlink"><a href="http://danieltenner.com/">Go back to the homepage</a></div>
24  
-		
25  
-		or<br/><br/>
26  
-		
27  
-		<h3 class="post-share-headline">Share the joy:</h3>
28  
-		
29  
-		<table border="0" cellspacing="3" cellpadding="0" style="padding: 0; margin: 0; width: 300px">
30  
-			<tr>
31  
-				<td valign="top">
32  
-					<script>reddit_url='http://danieltenner.com<%= @page.url %>'</script>
33  
-					<script>reddit_title='<%= @page.title %>'</script>
34  
-					<script src="/js/social/reddit.js" type="text/javascript"></script>
35  
-				</td>
36  
-				<td valign="top">
37  
-					<a href="http://del.icio.us/post?url=<%= CGI.escape("http://danieltenner.com"+@page.url) %>&title=<%= CGI.escape(@page.title) %>&jump=no"><img src="/images/social/delicious_64x64.png"></a>
38  
-				</td>
39  
-				<td valign="top">
40  
-					<a href="http://www.stumbleupon.com/submit?url=<%= CGI.escape("http://danieltenner.com"+@page.url) %>&title=<%= CGI.escape(@page.title) %>"><img border=0 src="/images/social/Stumbleupon_64x64.png" alt="Stumble It!"></a>
41  
-				</td>
42  
-				<td valign="top">
43  
-					<a href="javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/link-bookmarklet.js');void(b.appendChild(z));}else{}"><img src="/images/social/greader_64x64.png"></a>
44  
-				</td>
45  
-				<% if @page.hnid -%>
46  
-				<td valign="top">
47  
-					<a href="http://news.ycombinator.com/item?id=<%= @page.hnid %>"><img src="/images/social/hn_64x64.png"></a>
48  
-				</td>
49  
-				<% end -%>
50  
-				
51  
-			</tr>
52  
-		</table>
53  
-		
54  
-		</div>
55  
-		
56  
-		<div id="disqus_thread"></div>
57  
-		<script type="text/javascript" src="http://disqus.com/forums/danieltennercom/embed.js"></script>
58  
-		<noscript><a href="http://danieltennercom.disqus.com/?url=ref">View the discussion thread.</a></noscript>
59  
-	</div>
  11
+    <div class="post-info">
  12
+        <div class="post-date">Posted on <%= @page.created_at.strftime('%B %d, %Y') %></div>
  13
+        <div class="post-author">by <b><%= @page.author %></b></div>
  14
+        <div class="post-category">in <%= @page.category %></div>
  15
+        <div style="clear: both; height: 1px">&nbsp;</div>
  16
+    </div>
  17
+    <div style="clear:both; height: 5px">&nbsp;</div>
  18
+    <div class="post-body">
  19
+        <div style="float: right">
  20
+            <script type="text/javascript">
  21
+            tweetmeme_url = 'http://danieltenner.com<%= @page.url %>';
  22
+            </script>
  23
+            <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
  24
+        </div>
  25
+        <%= @content %>
  26
+    </div>
  27
+    
  28
+    <div align="center" class="post-share">
  29
+        <div class="post-backlink"><a href="http://danieltenner.com/">Go back to the homepage</a></div>
  30
+        
  31
+        or<br/><br/>
  32
+        
  33
+        <h3 class="post-share-headline">Share the joy:</h3>
  34
+        
  35
+        <table border="0" cellspacing="3" cellpadding="0" style="padding: 0; margin: 0; width: 300px">
  36
+            <tr>
  37
+                <td valign="top">
  38
+                    <script type="text/javascript">
  39
+                    tweetmeme_url = 'http://danieltenner.com<%= @page.url %>';
  40
+                    </script>
  41
+                    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
  42
+        	    </td>
  43
+                <td valign="top">
  44
+                    <script>reddit_url='http://danieltenner.com<%= @page.url %>'</script>
  45
+                    <script>reddit_title='<%= @page.title %>'</script>
  46
+                    <script src="/js/social/reddit.js" type="text/javascript"></script>
  47
+                </td>
  48
+                <td valign="top">
  49
+                    <a href="http://del.icio.us/post?url=<%= CGI.escape("http://danieltenner.com"+@page.url) %>&title=<%= CGI.escape(@page.title) %>&jump=no"><img src="/images/social/delicious_64x64.png"></a>
  50
+                </td>
  51
+                <td valign="top">
  52
+                    <a href="http://www.stumbleupon.com/submit?url=<%= CGI.escape("http://danieltenner.com"+@page.url) %>&title=<%= CGI.escape(@page.title) %>"><img border=0 src="/images/social/Stumbleupon_64x64.png" alt="Stumble It!"></a>
  53
+                </td>
  54
+                <td valign="top">
  55
+                    <a href="javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/link-bookmarklet.js');void(b.appendChild(z));}else{}"><img src="/images/social/greader_64x64.png"></a>
  56
+                </td>
  57
+                <% if @page.hnid -%>
  58
+                <td valign="top">
  59
+                    <a href="http://news.ycombinator.com/item?id=<%= @page.hnid %>"><img src="/images/social/hn_64x64.png"></a>
  60
+                </td>
  61
+                <% end -%>
  62
+            </tr>
  63
+        </table>
  64
+        
  65
+        </div>
  66
+        
  67
+        <div id="disqus_thread"></div>
  68
+        <script type="text/javascript" src="http://disqus.com/forums/danieltennercom/embed.js"></script>
  69
+        <noscript><a href="http://danieltennercom.disqus.com/?url=ref">View the discussion thread.</a></noscript>
  70
+    </div>
60 71
 </div>
61  
-		
  72
+        

0 notes on commit 47f73f8

Please sign in to comment.
Something went wrong with that request. Please try again.