<a class="discrete-injection pat-switch pat-inject icon iconified icon-chat pat-push"
   id="messages-link"
   href="${view/app_app_url}#app-space"
   data-pat-inject="history:record"
   data-pat-push="push_id: incoming_message; url: ${context/portal_url}/@@message-counter"
   data-pat-switch="#app-space state-off state-on"
>
  <tal:counter replace="structure here/@@message-counter" />
</a>
