summaryrefslogtreecommitdiff
path: root/template/logged_dump.st
diff options
context:
space:
mode:
authorScott Ostler <sostler@deathmachine.local>2010-03-17 22:51:27 -0400
committerScott Ostler <sostler@deathmachine.local>2010-03-17 22:51:27 -0400
commit859df13e5ba9dcc693952ece60eb1d16b5388201 (patch)
tree5e4fe50ed56a8b676d006a0623fd997ac399ba88 /template/logged_dump.st
parentb5a74b56baed8b0ad2eed96857ba99ebcb041dca (diff)
parentf6ec036fd3614cdefe43535a8410e0b5455ae2ea (diff)
Merge branch 'master' of ssh://dump.fm/pichat/repo
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>