diff options
Diffstat (limited to 'template/profile.st')
| -rwxr-xr-x | template/profile.st | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/template/profile.st b/template/profile.st new file mode 100755 index 0000000..034c648 --- /dev/null +++ b/template/profile.st @@ -0,0 +1,80 @@ +<html> + <head> + <title>$nick$ | PERSONAL DUMP LOG</title> + <link rel="shortcut icon" href="static/favicon.ico"> + <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> + <script type="text/javascript" src="/static/pichat.js"></script> + <script type="text/javascript" src="/static/jquery.editinplace.1.0.1.packed.js"></script> + <style type="text/css"> + #profile { + float: right; + border: 1px solid black; + padding: 10px; + width: 25%; + } + + .editable { + color: #0AA; + } + .editing { + color: #F0F; + } + div#avatar { + overflow: hidden; + text-overflow: ellipsis; + } + + img#avatarPic { + max-height:250px; + } + + #logged-dump { + border: 1px solid dotted; + padding: 5px; + } + + </style> + <script> + jQuery(document).ready(initProfile); + </script> + </head> + <body> + $header()$ + <h1>$nick$ | PERSONAL DUMP LOG</h1> + + <div id="profile"> + <h2>$nick$</h2> + + $if(avatar)$ + <img id="avatarPic" src="$avatar$" width="150px"/> + $else$ + <b id="avatarPic">No avatar</b> + $endif$ + + $if(is_home)$ + <div id="avatar" class="editable">$avatar$</div> + $endif$ + + <h3>Contact:</h3> + <div id="contact" $if(is_home)$class="editable"$endif$>$contact$</div> + <br> + + <h3>Bio:</h3> + <div id="bio" $if(is_home)$class="editable"$endif$>$bio$</div> + <br> + </div> + + <div id="log"> + <h2>Log</h2> + + $if(dumps)$ + $dumps:{ d | $logged_dump(dump=d)$ }$ + $else$ + <h3>No dumps yet!</h3> + $endif$ + + </div> + + $footer()$ + </body> +</html> |
