<div class="singleton" tal:condition="view/link|nothing">
  <a tal:attributes="href string:${context/@@absolute_url}/${view/link}"
     tal:content="view/title"
     class="title">Title</a>
</div>

<div class="dropdown contracted" tal:condition="not:view/link|nothing">
  <h3 class="title"
     tal:content="view/title">title</h3>
  <a tal:repeat="link view/getMenu"
     tal:content="link/title"
     tal:attributes="href string:${context/@@absolute_url}/${link/action}" />
</div>
