You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.0 KiB
Smarty

12 years ago
<div class="well">
<div class="alert" id="message" style="display:none">
<button type="button" class="close" data-dismiss="message">&times;</button>
<strong></strong>
<p></p>
</div>
<div class="account-username-box">
<span class="account-username"><a href="/users/{username}">{username}</a></span>
<span id="editLink" class="pull-right"><a href="/users/{username}/edit">edit</a></span>
</div>
12 years ago
<div class="account-picture-block">
<img src="{picture}" class="user-profile-picture"/>
</div>
<div class="account-bio-block">
12 years ago
<span class="account-bio-label">email</span>
<span>{email}</span>
<br/>
<span class="account-bio-label">full name</span>
<span>{fullname}</span>
<br/>
<span class="account-bio-label">website</span>
12 years ago
<span><a href="{website}">{website}</a></span>
<br/>
<span class="account-bio-label">location</span>
<span>{location}</span>
<br/>
<span class="account-bio-label">age</span>
<span>{age}</span>
<br/>
12 years ago
<span class="account-bio-label">member for</span>
<span>{joindate}</span>
12 years ago
<br/>
<span class="account-bio-label">reputation</span>
<span id='reputation'>{reputation}</span>
<br/>
12 years ago
<span class="account-bio-label">posts</span>
<span id='postcount'>{postcount}</span>
</div>
12 years ago
12 years ago
<!-- END user -->
12 years ago
</div>
<script type="text/javascript">
12 years ago
var yourid = '{yourid}';
var theirid = '{theirid}';
(function() {
function addCommas(text) {
return text.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
}
$(document).ready(function() {
var rep = $('#reputation');
rep.html(addCommas(rep.html()));
var postcount = $('#postcount');
postcount.html(addCommas(postcount.html()));
12 years ago
var editLink = $('#editLink');
if( yourid !== theirid)
editLink.addClass('hidden');
});
}());
</script>