summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/fame_dump.st19
-rw-r--r--template/log_dump.st23
-rw-r--r--template/popular.st49
-rw-r--r--template/popular_dump.st15
-rw-r--r--template/profile_dump.st2
-rw-r--r--template/userlog.st2
6 files changed, 74 insertions, 36 deletions
diff --git a/template/fame_dump.st b/template/fame_dump.st
index 05cc9fe..9403696 100644
--- a/template/fame_dump.st
+++ b/template/fame_dump.st
@@ -4,21 +4,10 @@ $else$
<div class="logged-dump dump $if(dump.favorited)$favorite$endif$" id="message-$dump.message_id$" nick="$dump.nick$">
$endif$
-$dump.created_on$ -- by <a href="/$dump.nick$"><b>$dump.nick$</b>
- <div id="logavatar">
-$if(dump.avatar)$
- <img height="50" width="50" src="$dump.avatar$" />
-$else$
- <img height="50" width="50" src="/static/noinfo.png">
-$endif$
- </div></a>&nbsp;&nbsp;&nbsp;<img height="16px" width="16px" src="http://dump.fm/static/img/thumbs/heartfaved.gif">$dump.count$
-<!--
-$if(dump.favorited)$
- <img src="/static/img/thumbs/heartfaved.gif" class="thumb favorite" onclick="Tag.favorite(this)">
-$else$
- <img src="/static/img/thumbs/heart.gif" class="thumb" onclick="Tag.favorite(this)">
-$endif$
--->
+
+$dump.created_on$ -- by <a href="/$dump.nick$"><b>$dump.nick$</b></a>
+<span>&nbsp;&nbsp;&nbsp;<img height="16px" width="16px" src="http://dump.fm/static/img/thumbs/heartfaved.gif">$dump.count$</span>
+
<div class="content">$dump.content$</div>
<hr />
$share_buttons()$
diff --git a/template/log_dump.st b/template/log_dump.st
index f594cea..17e6adc 100644
--- a/template/log_dump.st
+++ b/template/log_dump.st
@@ -4,22 +4,9 @@ $else$
<div class="logged-dump dump $if(dump.favorited)$favorite$endif$" id="message-$dump.message_id$" nick="$dump.nick$">
$endif$
-$dump.created_on$ -- by <a href="/$dump.nick$"><b>$dump.nick$</b>
- <div id="logavatar">
-$if(dump.avatar)$
- <img height="50" width="50" src="$dump.avatar$" />
-$else$
- <img height="50" width="50" src="/static/noinfo.png">
-$endif$
- </div></a>
-<!--
-$if(dump.favorited)$
- <img src="/static/img/thumbs/heartfaved.gif" class="thumb favorite" onclick="Tag.favorite(this)">
-$else$
- <img src="/static/img/thumbs/heart.gif" class="thumb" onclick="Tag.favorite(this)">
-$endif$
--->
- <div class="content">$dump.content$</div>
- <hr />
+
+$dump.created_on$ -- by <a href="/$dump.nick$"><b>$dump.nick$</b></a>
+<div class="content">$dump.content$</div>
+<hr />
$share_buttons()$
- </div>
+</div>
diff --git a/template/popular.st b/template/popular.st
new file mode 100644
index 0000000..21edcc1
--- /dev/null
+++ b/template/popular.st
@@ -0,0 +1,49 @@
+<html>
+ <head>
+ <title>$nick$'s dump.fm -- popular</title>
+ $head()$
+ <link rel="stylesheet" type="text/css" media="screen" href="/static/css/dump.css">
+
+ <script>
+ jQuery(document).ready(initLog);
+ </script>
+
+ </head>
+ <body>
+ $banner()$
+ <div id="dcontent">
+
+
+ <div id="messagePanep">
+ $mini_profile$
+ <div id="messageList">
+ $if(dumps)$ <span class="content">
+ $dumps:{ d | $popular_dump(dump=d)$ }$
+ </span>
+ $else$
+ no dumps
+ $endif$
+ </div>
+
+ <div id="msgInputDiv">
+ <div id="msginputrapper">
+ $if(prev)$
+ <a href="/$nick$/whofaved/$prev$"><input id="prevbutton" value="<- Prev"></a>
+ $else$
+ <input id="prevbutton">
+ $endif$
+
+ $if(next)$
+ <a href="/$nick$/whofaved/$next$"> <input id="nextbutton" value="Next ->"></a>
+ $else$
+ <input id="nextbutton" value="nomodumps">
+ $endif$
+ </div>
+ <div id="footerc">
+ $footer()$
+ </div>
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
diff --git a/template/popular_dump.st b/template/popular_dump.st
new file mode 100644
index 0000000..508bc4a
--- /dev/null
+++ b/template/popular_dump.st
@@ -0,0 +1,15 @@
+<div class="logged-dump dump $if(dump.favorited)$favorite$endif$" id="message-$dump.message_id$" nick="$dump.nick$">
+
+<div id="profiletxt">
+$dump.created_on$ -- in <b><a href="http://$dump.key$.dump.fm">$dump.key$</a></b>
+<span>&nbsp;&nbsp;&nbsp;<img height="16px" width="16px" src="http://dump.fm/static/img/thumbs/heartfaved.gif">$dump.count$</span>
+</div>
+
+
+<div class="content">$dump.content$</div>
+<hr/>
+<div class="faver-list">
+$dump.favers: { f | <img height="16px" width="16px" src="$f.avatar$"> <a href="http://dump.fm/$f.nick$">$f.nick$</a> &nbsp; }$
+</div>
+$share_buttons()$
+</div>
diff --git a/template/profile_dump.st b/template/profile_dump.st
index b101a08..2e9a259 100644
--- a/template/profile_dump.st
+++ b/template/profile_dump.st
@@ -2,7 +2,7 @@
<div id="profiletxt">
$dump.created_on$ -- in <b><a href="http://$dump.key$.dump.fm">$dump.key$</a></b>
</div>
- <a href="/u/$dump.nick$">
+ <a href="/$dump.nick$">
<div id="logavatar">
$if(dump.avatar)$
<img height="50" width="50" src="$dump.avatar$" />
diff --git a/template/userlog.st b/template/userlog.st
index ee01b09..5c925fd 100644
--- a/template/userlog.st
+++ b/template/userlog.st
@@ -2,8 +2,6 @@
<head>
<title>$nick$'s dump.fm</title>
$head()$
- <script src="/static/js/jquery.editinplace.1.0.1.packed.js" type="text/javascript"></script>
- <script src="/static/js/ajaxupload.js"></script>
<script>
jQuery(document).ready(initLog);