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

     1  {% extends "../base.html" %}
     2  
     3  {% block title %}
     4  <title>{{user.Username}} • 发布的话题 - {{SiteName}}</title>
     5  {% endblock title %}
     6  
     7  {% block mainland %}
     8  <div id="main" class="container">
     9      <section class="hbox stretch" style="margin-bottom:1em;">
    10          {% include "./sidebar.html" %}
    11                  <section class="bg-white">
    12                      <section class="vbox">
    13                          <header class="header bg-light lt">
    14                              <ul class="nav nav-tabs nav-white">
    15                                  <li class="active">
    16                                      <a href="#activity" data-toggle="tab"> <i class="fa fa-caret-right"></i> 最近发布的话题</a>
    17                                  </li>
    18                              </ul>
    19                          </header>
    20                          <section class="scrollable">
    21                              <div class="tab-content">
    22                                  <div class="tab-pane active" id="activity">
    23                                      <ul class="list-group no-radius m-b-none m-t-n-xxs list-group-lg no-border">
    24                                      {% if topics %}
    25                                          {% for topic in topics %}
    26                                          <li class="list-group-item">
    27                                              <a href="/user/{{userProfile.Username}}/" class="thumb-sm pull-right m-r-sm">
    28                                                  <img src="{% if userProfile.AvatarMedium %}{{File(userProfile.AvatarMedium)}}{% else %}/identicon/{{userProfile.Username}}/48/default.png{% endif %}" class="img-circle"></a>
    29                                              <h4 class="title">
    30                                                  <a href="/topic/{{topic.Id}}/">{{topic.Title|safe}}</a>
    31                                              </h4>
    32                                              <div class="meta">
    33                                                  {% if topic.Category %}
    34                                                  <a class="tag" href="/category/{{ topic.Cid }}/">{{ topic.Category }}</a>
    35                                                  {% endif %}
    36                                                  {% if topic.Node %}
    37                                                  •
    38                                                  <a class="tag" href="/node/{{ topic.Nid }}/">{{ topic.Node }}</a>
    39                                                  {% endif %}
    40                                                  {% if topic.Created %}
    41                                                  •
    42                                                  <span class="time">{{TimeSince(topic.Created)}}</span>
    43                                                  {% endif %}
    44                                                  {% if topic.ReplyLastUsername %}
    45                                                  <span class="last-reply">
    46                                                  • 最后回复来自
    47                                                      <a href="/user/{{topic.ReplyLastUsername}}/">{{topic.ReplyLastUsername}}</a>
    48                                                  </span>
    49                                                  {% endif %}
    50                                                  {% if topic.ReplyCount %}
    51                                                  •
    52                                                  <div class="data hidden-xs pull-right">
    53                                                      {{topic.ReplyCount}} <i class="icon-comment"></i>
    54                                                  </div>
    55                                                  {% endif %}
    56                                              </div>
    57                                          </li>
    58                                          {% endfor %}
    59                                      {% else %}
    60                                          <li class="list-group-item">
    61                                              这是一个懒惰的家伙...
    62                                          </li>
    63                                      {% endif %}
    64                                      </ul>
    65                                  </div>
    66                                  {% if pagesbar %}
    67                                  <div class="clear">
    68                                      {{pagesbar|safe}}
    69                                  </div>
    70                                  {% endif %}
    71                              </div>
    72                          </section>
    73                      </section>
    74                  </section>
    75      </section>
    76  </div>
    77  {% endblock mainland %}