summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtemplate/logged_dump.st23
1 files changed, 21 insertions, 2 deletions
diff --git a/template/logged_dump.st b/template/logged_dump.st
index f272e5f..48f19eb 100755
--- a/template/logged_dump.st
+++ b/template/logged_dump.st
@@ -1,3 +1,20 @@
+<head> <script>
+
+ function urlencode(turl)
+ {
+ var enurl=encodeURI(turl);
+ var stem="http://www.tumblr.com/share?v=3&u=";
+ var url = stem+enurl;
+
+ newwindow=window.open(url,'name','height=400,width=200');
+ if (window.focus) {newwindow.focus()}
+
+
+ }
+
+
+</script>
+
<style type="text/css">
.logged-dump {
@@ -30,6 +47,8 @@ img{
font-family: Arial, Helvetica, sans-serif;
}
</style>
+
+ </head>
<div class="logged-dump">
<div>$dump.created_on$ -- by <b><a href="/u/$dump.nick$">$dump.nick$</a></b></div>
<a href="/u/$dump.nick$">
@@ -46,9 +65,9 @@ img{
</div></a>
<div class="content">$dump.content$</div>
<hr />
-
+ <div style="display:none;">
+<a href="#" target="_blank" onclick:"urlencode('$dump.content$');"><img src="/static/tumblricon.png"></a></div>
<a href="http://www.facebook.com/share.php?u=$dump.content$&t=via dump.fm" target="_blank"><img src="/static/fbbutton.png"></a>
-
<a href="http://twitter.com/home?status=via dump.fm $dump.content$" target="_blank"><img src="/static/twittericon.png"></a>
<a href="http://delicious.com/save?url=$dump.content$&notes=via dump.fm&title=$dump.content$" target="_blank"><img src="/static/delishicon.png"></a>
</div>