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

     1  {% extends "../base.html" %}
     2  
     3  {% block title %}
     4  <title>{{userProfile.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 favorites %}
    25                                          {% for favorite in favorites %}
    26                                          <li class="list-group-item">
    27                                              <a href="/user/{{favorite.User.Username}}/" class="thumb-sm pull-right m-r-sm">
    28                                                  <img src="{% if favorite.User.AvatarMedium %}{{File(favorite.User.AvatarMedium)}}{% else %}/identicon/{{favorite.User.Username}}/48/default.png{% endif %}" class="img-circle"></a>
    29                                              <h4 class="title">
    30                                                  <a href="/topic/{{favorite.TopicMark.Tid}}/">{{favorite.Topic.Title}}</a>
    31                                              </h4>
    32                                              <div class="meta">
    33                                                  {% if favorite.Topic.Category %}
    34                                                  <a class="tag" href="/category/{{ favorite.Topic.Cid }}/">{{ favorite.Topic.Category }}</a>
    35                                                  {% endif %}
    36                                                  {% if favorite.Topic.Node %}
    37                                                  •
    38                                                  <a class="tag" href="/node/{{favorite.Topic.Node}}/">{{favorite.Topic.Node}}</a>
    39                                                  {% endif %}
    40                                                  {% if favorite.Topic.Created %}
    41                                                  •
    42                                                  <span class="time">{{TimeSince(favorite.Topic.Created)}}</span>
    43                                                  {% endif %}
    44                                                  {% if favorite.Topic.ReplyLastUsername %}
    45                                                  <span class="last-reply">
    46                                                  • 最后回复来自
    47                                                      <a href="/user/{{favorite.Topic.ReplyLastUsername}}/">{{favorite.Topic.ReplyLastUsername}}</a>
    48                                                  </span>
    49                                                  {% endif %}
    50                                                  {% if favorite.Topic.ReplyTime %}
    51                                                       <span class="time">• 最后回复于{{Unix2Time(favorite.Topic.ReplyTime,"2006.01.02 15:04")}}</span>
    52                                                  {% endif %}
    53                                                  {% if favorite.Topic.Views %}
    54                                                      <div class="data hidden-xs pull-right">
    55                                                       • {% if favorite.Topic.ReplyCount %} {{ favorite.Topic.ReplyCount }} <i class="icon-comment"></i> 个评论{% endif %}
    56                                                          {{ favorite.Topic.Views }} <i class="icon-eye-open"> 次浏览</i>
    57                                                      </div>
    58                                                  {% endif %}
    59                                              </div>
    60                                          </li>
    61                                          {% endfor %}
    62                                      {% else %}
    63                                          <li class="list-group-item">
    64                                              尚无收藏的话题...
    65                                          </li>
    66                                      {% endif %}
    67                                      </ul>
    68                                  </div>
    69                                  {% if pagesbar %}
    70                                  <div class="clear">
    71                                      {{pagesbar|safe}}
    72                                  </div>
    73                                  {% endif %}
    74                              </div>
    75                          </section>
    76                      </section>
    77                  </section>
    78      </section>
    79  </div>
    80  {% endblock mainland %}