# ${username!}的个人主页 - Jiscuss

<#include "comm/commjs.ftl"/>
<#include "comm/header.ftl"/>
<#-- Left: profile info -->
<#if userEntity?? && userEntity.avatar??> <#else>
${(username!"")?substring(0,1)?upper_case}
${username!}
<#if userEntity?? && userEntity.realname??>
${userEntity.realname}
<#if userEntity?? && userEntity.joinTime??>
加入于 ${userEntity.joinTime?string("yyyy-MM-dd")}
${liveDiscCount!0}
发帖
${liveReplyCount!0}
回复
${(userEntity.level)!1}
等级
<#-- Right: tabs -->
<#if type == 'discussion'> <#if discussions?has_content>
<#list discussions as d>
${d.title}
<#if d.startTime??>${d.startTime?string("yyyy-MM-dd")}
${(d.commentsCount)!0} ${(d.viewCount)!0}
<#else>
暂无发帖记录
<#elseif type == 'reply'> <#if posts?has_content>
<#list posts as p>
<#if discTitles?has_content && p?index < discTitles?size> 回复了 ${discTitles[p?index]} · <#if p.createTime??>${p.createTime?string("MM-dd HH:mm")}
<#if (p.content?length > 150)>${p.content?html?substring(0, 150)}…<#else>${p.content?html}
<#else>
暂无回复记录
<#elseif type == 'like'> <#if likedDiscussions?has_content>
<#list likedDiscussions as d>
${d.title}
<#if d.startTime??>${d.startTime?string("yyyy-MM-dd")}
${(d.likeCount)!0}
<#else>
暂无点赞记录
<#include "comm/footer.ftl"/>