User Profile
[show modes: view edit]

[begin mode view]
[if(getv("my_id") != "") replace(webget({http://rhetori.ca?id=[getv("my_id")]&mode=external}), {/?}, {http://rhetori.ca/?})]
<h1>outstanding responsibilities</h1>
[
	$ps = 20;

	$q = query({view_[$_id]}, $ps, "date", "author", $_owner.id, "template", title2id("Bugfest Bug"));
	$c = query_view("abbr", $q);
	$c;

	$z = query_count($q);
	if($z > $ps) {[
		if($ps != 0) {<center><br>[
			$np = next_page($q);
			$pp = previous_page($q);

			if($pp != "-1") {<a href="[$pp]">Previous</a> };
			]
			<div style="display: inline-block;">
			[page_list($q);]
			</div>
			[
			if($np != "-1") { <a href="[$np]">Next</a>};
		]<br></center>};
	]};
]
[end mode view]
[begin mode edit]

<form method="post" action="/" width="100%">
	<input type="hidden" name="id" value="[$_id]">
	<input type="hidden" name="mode" value="submit">


	User profile page on Celestial Mechanics:<br>
	<input type="text" name="my_id"
	value="[getv("my_id")]">
	<br>
	<input type="submit" value="Update">
</form>
[end mode edit]
[begin mode submit]
[
	$_title = $_owner.name;
	putv("my_id", int($_params.my_id));
]
Done. <a href="/?id=[$_id]">Click here to go back</a>.
[end mode submit]
[begin mode icon]
<a new href="/?id=[$_id]"><img src="/avatars/[$_owner.name].jpg" height="64px" title="[$_owner.name]" style="vertical-align: middle; border-radius: 5px; box-shadow: rgba(0,0,0,0.2) 1px 2px 3px;"></a>
[end mode icon]

[begin mode link]
<style type="text/css">
.hoverimg a {
	display: inline-block;
	position: relative;
}
.hoverimg a img {
	border-radius: 3px;
	box-shadow: rgba(0,0,0,0.2) 1px 1px 3px;
	display: none;
}
.hoverimg:hover a img {
	display: block;
	position: absolute;
	left: 0px;
}
</style>
<span class="hoverimg">
<a new href="/?id=[$_id]">[$_owner.name]<img src="/avatars/[$_owner.name].jpg" height="32px"></a>
</span>
[end mode link]

[begin mode abbr]
<li>
<a new href="/?id=[$_id]"><img src="/avatars/[$_owner.name].jpg" height="32px" style="vertical-align: middle; border-radius: 5px; box-shadow: rgba(0,0,0,0.2) 1px 2px 3px;">[$_owner.name]</a>
[$c = children("abbr", $_id);
if($c) {<ol>[$c]</ol>};]
</li>
[end mode abbr]