article.phtml 1.07 KB
{{# favArticles}}
    <div class="favorite-articles">
        {{#if articles.empty}}
            {{#with articles}}
                {{> home/empty}}
            {{/with}}
        {{^}}
            <ul>
                {{# articles}}
                    <li class="fav-article fav-row" data-id="{{id}}">
                        <div class="checkbox">
                            <input type="checkbox">
                        </div>

                        <div class="thumb">
                            <a class="bg-img" href="{{url}}" target="_blank" style="background-image:url({{img}})"></a>
                        </div>

                        <div class="text-info">
                            <a class="name" href="{{url}}" target="_blank">{{name}}</a>
                            <p class="desc">{{desc}}</p>
                            <a class="del-favorite">[ 删除 ]</a>
                        </div>
                    </li>
                {{/ articles}}
            </ul>
        {{/if}}
    </div>

    {{> home/pager}}
{{/ favArticles}}