path-nav.phtml
1.06 KB
{{#if pathNav}}
<p class="path-nav">
{{#each pathNav}}
{{#if href}}
<a href="{{href}}">
{{#if @last}}
<b {{#if title}}title="{{title}}"{{/if}}>{{name}}</b>
{{else}}
<span {{#if title}}title="{{title}}"{{/if}}>{{name}}</span>
{{/if}}
{{#unless @last}}
<span class="iconfont"></span>
{{/unless}}
</a>
{{^}}
{{#if @last}}
<b {{#if title}}title="{{title}}"{{/if}}>{{{name}}}</b>
{{else}}
<span {{#if title}}title="{{title}}"{{/if}}>{{name}}</span>
{{/if}}
{{#unless @last}}
<span>
<i class="iconfont"></i>
</span>
{{/unless}}
{{/if}}
{{/each}}
</p>
{{/if}}