Blame view

apps/guang/views/partial/wei-guang/side-nav.hbs 1.81 KB
zhangxiaoru authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<div class="side-nav">
    {{#sideNav}}
    <ul {{#if @first}}class="first"{{/if}}>
        {{#this}}
        <li class="{{lowerCase sort_name_en}}">
            {{#if sort_url}}
            <a href="{{sort_url}}" style="{{#if sort_name_color}}color:{{sort_name_color}};{{/if}}">
            {{else}}
            <a href="javascript:;" style="{{#if sort_name_color}}color:{{sort_name_color}};{{/if}}">
            {{/if}}
                {{# sort_ico}}
                <span class="nav-img" style="background-image: url({{image . 60 60}})"></span>
                {{/ sort_ico}}
                {{^ sort_ico}}
                <i class="nav-icon"></i>
                {{/ sort_ico}}
                <em>{{sort_name}}</em>
                <span class="title">{{sort_name_en}}</span>
                {{# sub}}
                <span class="enter-subnav iconfont">&#xe614;</span>
                {{/ sub}}
            </a>
            {{#if sub}}
            <ul class="sub-nav">
                {{# sub}}
                <li class="{{# isSelect}}current{{/ isSelect}}" style="background-color:{{bgColor}};">
                    {{#if sort_url}}
                        <a href="{{sort_url}}" style="{{#if sort_name_color}}color:{{sort_name_color}};{{/if}}">
                    {{else}}
                        <a href="javascript:;" style="{{#if sort_name_color}}color:{{sort_name_color}};{{/if}}">
                    {{/if}}
                        {{# back}}
                        <i class="nav-back iconfont">&#xe610;</i>
                        {{/ back}}
                        <em>{{sort_name}}</em>
                        <span class="title">{{sort_name_en}}</span>
                    </a>
                </li>
                {{/ sub}}
            </ul>
            {{/if}}
        </li>
        {{/this}}
    </ul>
    {{/sideNav}}
</div>