github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/user/replys.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 replys %}
    25                                          {% for reply in replys %}
    26                                          <li class="list-group-item">
    27                                              <a href="/user/{{reply.Reply.Author}}/" class="thumb-sm pull-left 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                                                  <small class="pull-right">{{TimeSince(reply.Reply.Created)}}</small>
    30                                                  <strong class="block">
    31                                                  <a class="color-link" target="_blank" href="/topic/{{reply.Reply.Tid}}/">
    32                                                      {% with s=Htm2Str(reply.Topic.Title) %}
    33                                                        {%if not s %}
    34                                                          {{ reply.Reply.Author }} {{TimeSince(reply.Reply.Created)}} 回应了话题#{{reply.Reply.Tid}}
    35                                                        {%else%}
    36                                                          {{Cropword(s,0,48,"...")}}
    37                                                        {%endif%}
    38                                                      {% endwith %}
    39                                                  </a>
    40                                                  </strong>
    41                                                  <h4>
    42                                                  <a href="/topic/{{reply.Reply.Tid}}/#reply{{reply.Reply.Id}}" rel="floor-link">#{{reply.Reply.Id}}
    43                                                      {% with s=Htm2Str(reply.Reply.Content) %}
    44                                                        {%if not s %}
    45                                                          {{ reply.Reply.Author }} {{TimeSince(reply.Reply.Created)}} 回应了话题#{{reply.Reply.Tid}}
    46                                                        {%else%}
    47                                                          {{Cropword(s,0,48,"...")}}
    48                                                        {%endif%}
    49                                                      {% endwith %}
    50                                                  </a>
    51                                                  </h4>
    52                                          </li>
    53                                          {% endfor %}
    54                                      {% else %}
    55                                          <li class="list-group-item">
    56                                              这是一个懒惰的家伙...
    57                                          </li>
    58                                      {% endif %}
    59                                      </ul>
    60                                  </div>
    61                                  {% if pagesbar %}
    62                                  <div class="clear">
    63                                      {{pagesbar|safe}}
    64                                  </div>
    65                                  {% endif %}
    66                              </div>
    67                          </section>
    68                      </section>
    69                  </section>
    70      </section>
    71  </div>
    72  {% endblock mainland %}