<ul class="qor-menu">
  {{range $_, $value := .Result}}
    {{if $value.SubMenus}}
      <li qor-icon-name="{{get_icon $value}}" {{if $value.Active}}class="active"{{end}}>
        <a href="{{if $value.URL}}{{$value.URL}}{{else}}javascript:void(0);{{end}}">{{t (printf "qor_admin.menus.%v" $value.Name) $value.Name}}</a>
        {{render "shared/menu" $value.SubMenus}}
      </li>
    {{else}}
      <li qor-icon-name="{{get_icon $value}}" {{if $value.Active}}class="active"{{end}}>
        {{link_to (t (printf "qor_admin.menus.%v" $value.Name) $value.Name) $value.URL}}
      </li>
    {{end}}
  {{end}}
</ul>
