Activity Dashboard<link href="/skins/common/templates/activitydashboard.css" rel="styleshee

try {// set page-level user details
var ActivityUser = page.namespaceuser;var userDetails = wiki.api(ActivityUser.api);} catch {<span class="error-dekiscript">wiki.localize('MindTouch.Templates.Use
web.showerror(__error);
return;};<div id="deki-activity-dashboard"><div id="col-left">/** User Profile Information Box*/<div id="deki-profile" class="deki-dashboard-group">
try {<div class="dashboard-title"><div class="profile-name">#ActivityUser.fullname > 0 ? ActivityUser.fullname : Activity

var status = xml.text(userDetails, 'status');status == 'active' ? '' : ' (' .. wiki.localize('MindTouch.Te</div></div><div class="profile-image">
ActivityUser.Gravatar</div><dl class="profile-details">
var loginDate = date.parse(xml.text(userDetails, 'date.lastlogin'<dt>wiki.localize('MindTouch.Templates.UserProfile.label.lastlogi<dd class="dashboard-lastlogin">Template('MindTouch/Controls/Date<dt>wiki.localize('MindTouch.Templates.UserProfile.label.joined')</dt><dd class="profile-joined">var joinDate = date.parse(xml.text(userDetails, 'date.createdTemplate('MindTouch/Controls/DateTime', {date:joinDate, forma
</dd>
<dt>
wiki.localize('MindTouch.Templates.UserProfile.label.timezone</dt><dd class="profile-timezone">
ActivityUser.timezone;</dd>
if (#ActivityUser.language > 0 && ActivityUser.language != site.l<dt>
wiki.localize('MindTouch.Templates.UserProfile.label.language</dt><dd class="profile-language">
ActivityUser.language;</dd>}
var groups = userDetails['groups/group'];
if (#groups > 0) {<dt>
wiki.localize('MindTouch.Templates.UserProfile.label.groups')</dt><dd class="profile-groups">
string.join(list.sort([ xml.text(g["groupname"]) foreach var
</dd>
}
</dl>
<div class="clear" />} catch {<span class="error-dekiscript">wiki.localize('MindTouch.Templates.Use
web.showerror(__error);};</div> // end deki-profile/** Recent Comments Dashboard Box*/<div id="deki-recent-comments" class="deki-dashboard-group">
try {<div class="dashboard-title">wiki.localize('MindTouch.Templates.U

var dependencies = Template("MindTouch/Controls/DependencyErrors"components:[{name: "activitystream", sid: "sid://mindtouch.com/std/20]});if (!#dependencies["//div"]) {var activities = activitystream.timeline(ActivityUser.name, 1
if (#activities > 0) {foreach (var a in activities) {<div class="activity-comment"><div class="activity-avatar"><img src=(a.user.gravatar) height="30px" /></div><div class="activity-meta"><div class="activity-from"><span class="activity-name">a.user.name</span><span class="activity-page">' ' .. wiki.localize('MindTouch.Templates.Usea.page.uri ? web.link(a.page.uri, a.page.titl</span><div class="activity-date">Template('MindTouch/Co</div><div class="activity-text"> a.content </div></div> // end meta</div> // end comment} // end foreach} // end if
else {<div class="dashboard-message">
wiki.localize('MindTouch.Templates.UserProfile.empty.
</div>}}
else {
if (#dependencies["//a[contains(@rel, 'component-missing')]"]
dependencies;} else {<div class="dashboard-commercial-text"><div class="dashboard-commercial-message">var link = web.link('http://mindtouch.com/redir/awiki.localize('MindTouch.Templates.UserProfile.er</div></div>}}

} catch {<span class="error-dekiscript">wiki.localize('MindTouch.Templates.Use
web.showerror(__error);};</div> // end recent-comments</div> // end col-left<div id="col-right">/** Recent User Activities*/<div id="deki-recent-changes" class="deki-dashboard-group">
try {<div class="dashboard-title">wiki.localize('MindTouch.Templates.UserPvar feedUri = ActivityUser.api & 'feed' & {limit: 10, format: 'raw'};
var changes = wiki.api(feedUri)['change'];if (#changes > 0) {<ul>
foreach (var c in changes) {var pageId = xml.num(c, 'rc_cur_id');var page = wiki.getPage(pageId);var changeDate = date.parse(xml.text(c, 'rc_timestamp'), 'yyy
var pageExists = xml.num(c, 'rc_page_exists');var pageTitle = xml.text(c, 'rc_title');<li>
pageExists ? web.link(page.uri, page.title) : pageTitle;<div class="recentchanges-date">Template('MindTouch/Contr<div class="recentchanges-details"><span class="dashboard-change">xml.text(c, 'rc_commen</div>
</li>
}
</ul>

<div class="deki-dashboard-group-footer">web.link('/Special:Contributions?target=' .. ActivityUser.nam
wiki.localize('MindTouch.Templates.UserProfile.label.allch</div>}

else {
<div class="dashboard-message">
wiki.localize('MindTouch.Templates.UserProfile.empty.changes'</div>}} catch {<span class="error-dekiscript">wiki.localize('MindTouch.Templates.Use
web.showerror(__error);};</div> // end deki-recent-changes</div> // end col-right</div> // end deki-activity-dashboard