github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/sidebar-topic.html (about)

     1  {% block sidebar %}
     2      <div id="sidebar" class="col-lg-3">
     3          {% block infobox %}
     4            {% include "infobox.html" %}
     5          {% endblock infobox %}
     6          {% if topic_sidebar_hotness_10 %}
     7            <div class="box">
     8              {% include "adlist.html" %}
     9              <div class="cell last">
    10                  <div class="cell first">
    11                      <strong>{% if article.Node %}{{article.Node}}之{% endif %}热门话题</strong>
    12                  </div>
    13                  <ul class="cell sidebar-list last">
    14                      {% for topic in topic_sidebar_hotness_10 %}
    15                          <li>
    16                            <a href="/topic/{{topic.Id}}/">
    17                              {% with s=Htm2Str(topic.Title) %}
    18                                <a href="/topic/{{topic.Id}}/">
    19                                {%if not s %}
    20                                  {{ topic.Author }} {{TimeSince(topic.Created)}}在{{topic.Node}}节点发布了话题#{{topic.Id}}
    21                                {%else%}
    22                                  {{Cropword(s,0,24,"...")}}
    23                                {%endif%}
    24                                </a>
    25                              {% endwith %}
    26                            </a>
    27                          </li>
    28                      {% endfor %}
    29                  </ul>
    30              </div>
    31            </div>
    32          {% endif %}
    33          {% if TopicsByUser_10s %}
    34            <div class="box">
    35              <div class="cell last">
    36                  <div class="cell first">
    37                      <strong>作者其他话题</strong>
    38                  </div>
    39                  <ul class="cell sidebar-list last">
    40                      {% for topic in TopicsByUser_10s %}
    41                          <li>
    42                            <a href="/topic/{{topic.Id}}/">
    43                              {% with s=Htm2Str(topic.Title) %}
    44                                <a href="/topic/{{topic.Id}}/">
    45                                {%if not s %}
    46                                  {{ topic.Author }} {{TimeSince(topic.Created)}}在{{topic.Node}}节点发布了话题#{{topic.Id}}
    47                                {%else%}
    48                                  {{Cropword(s,0,24,"...")}}
    49                                {%endif%}
    50                                </a>
    51                              {% endwith %}
    52                            </a>
    53                          </li>
    54                      {% endfor %}
    55                  </ul>
    56              </div>
    57            </div>
    58          {% endif %}
    59      </div>
    60  {% endblock sidebar %}