diff options
Diffstat (limited to 'template/profile.st')
| -rwxr-xr-x | template/profile.st | 179 |
1 files changed, 88 insertions, 91 deletions
diff --git a/template/profile.st b/template/profile.st index b5d3f38..46e8cb4 100755 --- a/template/profile.st +++ b/template/profile.st @@ -11,12 +11,9 @@ <script type="text/javascript" src="/static/jquery.editinplace.1.0.1.packed.js"></script> <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> - <script> - jQuery(document).ready(function(){ - initProfile(); - }); - </script> + jQuery(document).ready(initProfile); + </script> </head> <body> @@ -28,114 +25,114 @@ <div id="loghead"> </div> <br> - <div id="posts"> <div id="cats"> + <div id="posts"> + <div id="cats"> $if(dumps)$ $dumps:{ d | $logged_dump(dump=d)$ }$ + <div id="profile"> + + <h2>$nick$</h2> + $if(avatar)$ + <img id="avatarPic" src="$avatar$" width="150px"/> + $else$ + <b id="avatarPic"><img src="/static/noinfo.png"></b> + $endif$ + $if(is_home)$ + <div id="avatar-editing" style="display: none"> + <div id="avatar" class="editable">$avatar$</div> + <input id="upload" value="Upload" type="submit"> + <img id="spinner" src="/static/spinner.gif" style="display: none" /> + </div> + $endif$ - <div id="profile"> - - <h2>$nick$</h2> - - $if(avatar)$ - <img id="avatarPic" src="$avatar$" width="150px"/> - $else$ - <b id="avatarPic"><img src="/static/noinfo.png"></b> - $endif$ - - $if(is_home)$ - <div id="avatar" class="editable">$avatar$</div> - <input id="upload" value="Upload" type="submit"> - <img id="spinner" src="/static/spinner.gif" style="display: none" /> - $endif$ - - - $if(is_home)$ - <h3>contact info</h3> - <div id="contact" class="editable">$contact$</div> - $elseif(contact)$ - <h3>contact info</h3> - <div id="contact" class="linkify">$contact$</div> - $else$ - <br><br> - <div><img src="/static/noinfo.png"></div> - $endif$ - - - <br> + <h3>contact info</h3> + $if(contact)$ + <div id="contact" class="linkify">$contact$</div> + $else$ + <br><br> + <div><img src="/static/noinfo.png"></div> + $endif$ + <br> + + <h3>bio</h3> + $if(bio)$ + <div id="bio" class="linkify">$bio$</div> + $else$ + <div><img src="/static/noinfo.png"></div> + $endif$ - $if(is_home)$ - <h3>bio</h3> - <div id="bio" class="editable">$bio$</div> - $elseif(bio)$ - <h3>bio</h3> - <div id="bio" class="linkify">$bio$</div> - $else$ - <div><img src="/static/noinfo.png"></div> - $endif$ + $if(is_home)$ + <br> + <div id="edit-toggle"><a href="#">--> Edit your information <--</a></div> + $endif$ + <br> + <div id="date"> + <div type="text" id="datepicker"></div></div> + </div> - <br> - <div id="date"> - <div type="text" id="datepicker"></div></div> - </div> $else$ <h3> </h3> <h3> </h3> - <h3> </h3> <h3> </h3> <h3> </h3> - <h3> </h3><div id="newuser"> -<h2>☺✌ Welcome to dump.fm ✌☺</h2> - -<br><br> - -<h1>Step ❶</h1> -<h3>☟ Find a sweet image for your avatar, paste the URL below ☟</h3> - $if(avatar)$ - <img id="avatarPic" src="$avatar$" width="150px"/> - $else$ - <b id="avatarPic"></b> - $endif$ - - $if(is_home)$ - <div id="avatar" class="editable">$avatar$</div> - $endif$ - -<h1>Step ❷</h1> -<h3>☟ Enter some contact info below ☟</h3> - <div id="contact" class="$if(is_home)$editable$else$linkify$endif$">$contact$</div> - <br> - -<h1>Step ❸</h1> -<h3>☟ Enter some personal info below ☟</h3> - <div id="bio" class="$if(is_home)$editable$else$linkify$endif$">$bio$</div> - <br> - <h1>Step ❹</h1> - - <h3> <a href="/chat">Join the ♣ and start posting pictures!</a></h3> - <h3> </h3></div> + <h3> </h3> + <h3> </h3> + <h3> </h3> + <div id="newuser"> + <h2>☺✌ Welcome to dump.fm ✌☺</h2> + <br><br> + + <h1>Step ❶</h1> + <h3>☟ Find a sweet image for your avatar, paste the URL below ☟</h3> + $if(avatar)$ + <img id="avatarPic" src="$avatar$" width="150px"/> + $else$ + <b id="avatarPic"></b> + $endif$ + + $if(is_home)$ + <div id="avatar-editing"> + <div id="avatar" class="editable">$avatar$</div> + <input id="upload" value="Upload" type="submit"> + <img id="spinner" src="/static/spinner.gif" style="display: none" /> + </div> + $endif$ + + <h1>Step ❷</h1> + <h3>☟ Enter some contact info below ☟</h3> + <div id="contact" class="$if(is_home)$editable$else$linkify$endif$">$contact$</div> + <br> + + <h1>Step ❸</h1> + <h3>☟ Enter some personal info below ☟</h3> + <div id="bio" class="$if(is_home)$editable$else$linkify$endif$">$bio$</div> + <br> + <h1>Step ❹</h1> + + <h3> <a href="/chat">Join the ♣ and start posting pictures!</a></h3> + <h3> </h3></div> <h3> </h3> <h3> </h3> <h3> </h3> <h3> </h3> <h3> </h3> $endif$ - + <p> </p> <div id="pnav"> - $if(next)$ - <div id="pnavn"><a href="/u/$nick$/$next$">next ☞</a></div> - $endif$ - - - $if(prev)$ - <div id="pnavo"> <a href="/u/$nick$/$prev$">☜ prev</a> </div> - $endif$ - + $if(next)$ + <div id="pnavn"><a href="/u/$nick$/$next$">next ☞</a></div> + $endif$ - <br><br> + + $if(prev)$ + <div id="pnavo"> <a href="/u/$nick$/$prev$">☜ prev</a></div> + $endif$ + + <br><br> </div> <div id="footer"> |
