Hi Nico nathan
Below is my actual excerpt from the code which is giving issues. When the returned status is not success, it shoud print the text No Avatar Text Should be displayed on the screen, but instead, it shows Widget Could no be displayed 2 times. It is working fine for Success case.
<!-- If user is logged in-->
<#if user.registered == true>
<#attempt>
<#assign check_status = rest("/users/id/${user.id}/profiles/avatar/size/profile")>
<#recover>
<!-- Just checking the status of the REST call in the Attempt block -->
</#attempt>
<#if check_status.@status = "success">
<#assign user_avatar = rest("/users/id/${user.id}/profiles/avatar/size/profile").image>
<#assign user_profile = rest("/users/id/${user.id}?restapi.response_style=view").user>
<div class="avatar-mash-area">
<img src="${user_avatar.url}" alt="${user.login}" title="${user.login}" height="64" width="64"/>
<#assign pvt_msg_count = rest("/users/id/${user.id}/mailbox/notes/inbox/unread/count")>
<div class="avatar-links-mash">
<p>Hello, <a href="${user_profile.@view_href}" title="${user.login}"> ${user.login}</a></p>
<#if pvt_msg_count.value?number > 0>
<p class="settings-links"><a href="/t5/user/myprofilepage/tab/personal-profile">SETTINGS</a><a href="/t5/notes/privatenotespage" title="${pvt_msg_count.value} Unread Messages"><span class="unread-pvt-msg">MESSAGES</a><a href="/t5/help/faqpage">HELP</a><a href="${webUi.getUserLogoutPageUrl("/")}">SIGN OUT</a></p>
<#else>
<p class="settings-links"><a href="/t5/user/myprofilepage/tab/personal-profile">SETTINGS</a><a href="/t5/notes/privatenotespage" title="No Unread Messages">MESSAGES</a><a href="/t5/help/faqpage">HELP</a><a href="${webUi.getUserLogoutPageUrl("/")}">SIGN OUT</a></p>
</#if>
</div>
</div>
<#else>
No Avatar Text Should be displayed
</#if>
<#else>
<!-- If user is Not logged in-->
<div id="buttonCol" class="signupCol clearfix">
<div class="link-btn black-btn -btn">
<@component id="users.action.login" />
</div>
<div class="link-btn blue-btn -btn">
<@component id="users.action.registration" />
</div>
</div>
</#if>