summaryrefslogtreecommitdiff
path: root/template/profile.st
blob: ea554abb2d15eb625b988ab6b71f0720a54c0baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<html>
  <head>
    <title>$nick$'s dump.fm</title>
    $head()$
    <link rel="stylesheet" type="text/css" media="screen" href="/static/css/dump.css">
    <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(initProfile);
    </script> 
  </head>
  <body>
    $if(avatar)$
    <div id="dashtotal"style="background-image:url($avatar$);opacity:0.1;width:100%;height:100%;z-index:-1"></div>
    $else$
    <div id="dashtotal"style="background-image:url(http://dump.fm/static/img/thumbs/stripes.gif);width:100%;height:100%;z-index:-1"></div>
    $endif$
    
    $banner()$
    
    <div id="dashrapper">
      <div id="dashuserlist">
        $if(avatar)$
        <div id="dashavatar">
          <img id="dashavatarPic" src="$avatar$"/>
	</div>
        $else$
        <img id="avatarPic" src="/static/img/noinfo.png">
        
        $endif$

        $if(isadmin)$
        <div id="dashadminmute">
          <a href="#" onclick="Admin.mute('$nick$'); return false">Mute $nick$!</a>
        </div>
        $endif$

        
        $if(is_home)$
        <div id="avatar-editing" style="display: none">
          <input id="uploadp" value="Upload Icon" type="submit">
          <img id="spinner" src="/static/img/spinner.gif" style="display: none" />
        </div>
        $endif$
        <div id="dashinfo">
          <h2>  
            $nick$$if(score_ent)$$score_ent$$endif$ </h2>           
          
	  <br> <h3>contact info</h3>
          $if(contact)$
	  <div id="contact" class="linkify">$contact$</div>
	  $else$
          <img id="contact" src="/static/img/noinfo.png">
	  $endif$            
	  <br>
	  <h3>bio</h3>
          $if(bio)$
	  <div id="bio" class="linkify">$bio$</div>
	  $else$
	  <img id="bio" src="/static/img/noinfo.png">
	  $endif$
	</div>

        $if(is_home)$
        
        <div id="edit-toggle"><a href="#">edit profile</a></div>
        $endif$   
      </div>
      
      <div id="middash">		
 	<h2><a href="http://dump.fm/$nick$/log">$dump_cnt$ dumps &#10145;</a></h2>
	<hr>
	<h2><a href="http://dump.fm/$nick$/favorites">$dumps_user_faved_cnt$ dumps Faved &#10145;</a></h2>
	<hr>
	<h3>$if(score_ent)$ $score$ $else$ 0 $endif$ of $if(is_home)$ your $else$ $nick$'s$endif$ dumps Faved</h3>
      </div>
      <div id="dashpix">
	<div id="favstxt">$nick$'s most recent favs</div>
	$dumps: { d | $log_dump(dump=d)$ }$
      </div>
    </div>
<div id="footerc">
  $footer()$
</div>

</body>
</html>