summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorScott Ostler <sostler@deathmachine.local>2010-02-24 09:55:06 -0500
committerScott Ostler <sostler@deathmachine.local>2010-02-24 09:55:06 -0500
commitc3a98fda15c707f3718e30cf1abb30c1ea042df8 (patch)
tree6910f43ab4b1181ecf5b92e92ed7f8090663bb5b /template
parentc4b8c62ffe424e8c3b45519d113905384f3b9b87 (diff)
Added edit-toggle to profile
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/profile.st89
1 files changed, 45 insertions, 44 deletions
diff --git a/template/profile.st b/template/profile.st
index b5d3f38..52b745c 100755
--- a/template/profile.st
+++ b/template/profile.st
@@ -34,59 +34,60 @@
$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" 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$
+ <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$
- <br>
+ $endif$
+
+ <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>&nbsp;</h3>
<h3>&nbsp;</h3>
- <h3>&nbsp;</h3> <h3>&nbsp;</h3>
<h3>&nbsp;</h3>
- <h3>&nbsp;</h3><div id="newuser">
-<h2>&#x263A;&#x270C; Welcome to dump.fm &#x270C;&#x263A;</h2>
+ <h3>&nbsp;</h3>
+ <h3>&nbsp;</h3>
+ <h3>&nbsp;</h3>
+ <div id="newuser">
+ <h2>&#x263A;&#x270C; Welcome to dump.fm &#x270C;&#x263A;</h2>
<br><br>