summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/directory.st12
-rwxr-xr-xtemplate/logged_dump.st10
-rw-r--r--template/share_buttons.st6
-rw-r--r--template/single_message.st8
4 files changed, 16 insertions, 20 deletions
diff --git a/template/directory.st b/template/directory.st
index 954c717..ef20a29 100644
--- a/template/directory.st
+++ b/template/directory.st
@@ -17,7 +17,7 @@
<div id="loghead"></div>
<br>
- <div id="posts">
+ <div id="posts">
<br>
<center>
<h2>&#x272D; &#x272D; DUMP STARS &#x272D; &#x272D;</h2>
@@ -27,7 +27,7 @@
</center>
$if(users)$
$users:{ u |
- <div class="logged-dump">
+ <div class="logged-dump" id="message-$u.message_id$">
<a href="/u/$u.nick$">
<b>$u.nick$</b>
$if(u.avatar)$
@@ -40,11 +40,9 @@
<div id="infotxt"><b>last post</b></div>
<span class="linkify">$u.content$</span>
<hr />
- </div>
- <a href="http://www.facebook.com/share.php?u=$u.content$&t=via dump.fm" target="_blank"><img src="/static/fbbutton.png"></a>
- <a href="http://twitter.com/home?status=via dump.fm $u.content$" target="_blank"><img src="/static/twittericon.png"></a>
- <a href="http://delicious.com/save?url=$u.content$&notes=via dump.fm&title=$u.content$" target="_blank"><img src="/static/delishicon.png"></a>
- </div>
+ </div>
+ $share_buttons()$
+ </div>
}$
$else$
<span>No more users!</span>
diff --git a/template/logged_dump.st b/template/logged_dump.st
index 6fe4f68..3b8336a 100755
--- a/template/logged_dump.st
+++ b/template/logged_dump.st
@@ -1,6 +1,5 @@
-
-<div class="logged-dump"> <a href="#">
+<div class="logged-dump" id="message-$dump.message_id$">
<div>$dump.created_on$ -- by <b><a href="/u/$dump.nick$">$dump.nick$</a></b></div>
<a href="/u/$dump.nick$">
@@ -17,10 +16,5 @@
</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>
+ $share_buttons()$
</div>
- </a> \ No newline at end of file
diff --git a/template/share_buttons.st b/template/share_buttons.st
new file mode 100644
index 0000000..eeaae92
--- /dev/null
+++ b/template/share_buttons.st
@@ -0,0 +1,6 @@
+<div class="share-buttons">
+<img src="/static/fbbutton.png" class="share-button" onclick="Share.facebook(this)">
+<img src="/static/tumblricon.png" class="share-button" onclick="Share.tumblr(this)">
+<img src="/static/twittericon.png" class="share-button" onclick="Share.twitter(this)">
+<img src="/static/delishicon.png" class="share-button" onclick="Share.delicious(this)">
+</div> \ No newline at end of file
diff --git a/template/single_message.st b/template/single_message.st
index e75ddd5..7047cbd 100644
--- a/template/single_message.st
+++ b/template/single_message.st
@@ -18,7 +18,7 @@
<br>
<div id="posts">
<br>
- <div class="logged-dump">
+ <div class="logged-dump" id="message-$message.message_id$">
<a href="/u/$message.nick$">
<b>$message.nick$</b>
$if(message.avatar)$
@@ -30,10 +30,8 @@
</a>
<span class="linkify">$message.content$</span>
<hr />
- </div>
- <!--<a href="http://www.facebook.com/share.php?u=$u.content$&t=via dump.fm" target="_blank"><img src="/static/fbbutton.png"></a>
- <a href="http://twitter.com/home?status=via dump.fm $u.content$" target="_blank"><img src="/static/twittericon.png"></a>
- <a href="http://delicious.com/save?url=$u.content$&notes=via dump.fm&title=$u.content$" target="_blank"><img src="/static/delishicon.png"></a>-->
+ </div>
+ $share_buttons()$
</div>
<!--<div id="footer">
$footer()$