summaryrefslogtreecommitdiff
path: root/template/logged_dump.st
diff options
context:
space:
mode:
Diffstat (limited to 'template/logged_dump.st')
-rwxr-xr-xtemplate/logged_dump.st67
1 files changed, 9 insertions, 58 deletions
diff --git a/template/logged_dump.st b/template/logged_dump.st
index a927323..3b8336a 100755
--- a/template/logged_dump.st
+++ b/template/logged_dump.st
@@ -1,69 +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()}
-
-
- }
+<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>
-</script>
-
- <style type="text/css">
+ <a href="/u/$dump.nick$">
- .logged-dump {
-img{
- max-width:650px;
- width: expression(this.width > 650 ? 650: true);
- max-height:400px;
- height: expression(this.width > 400 ? 400: true);
- max-width:400px;
- }
- .content {
-img{
- max-width:650px;
- width: expression(this.width > 650 ? 650: true);
- max-height:400px;
- height: expression(this.width > 400 ? 400: true);
- max-width:400px;
- }
-
-img{
- max-width:650px;
- width: expression(this.width > 650 ? 650: true);
- max-height:400px;
- height: expression(this.width > 400 ? 400: true);
- max-width:400px;
- body {
- background-image: url(static/bg4.png);
-}
- body,td,th {
- 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$">
<div id="logavatar">
- $if(dump.avatar)$
- <img height="50" width="50" src="$dump.avatar$">
+
+ $if(dump.avatar)$<img height="50" width="50" src="$dump.avatar$" />
+
$else$
+
<img height="50" width="50" src="/static/noinfo.png">
+
$endif$
</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>