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

     1  {% extends "base.html" %}
     2  
     3  {% block title %}
     4  <title>通知讯息 - {{SiteName}}</title>
     5  {% endblock title %}
     6  
     7  {% block content %}
     8      <div id="content" class="col-lg-9">
     9          {% include "msgerr.html" %}
    10          <div class="box post-comments" data-user="{{username}}">
    11              <div class="cell first breadcrumb">你有 {{ notifications|length }} 通知
    12              </div>
    13          {% if notifications %}
    14              <section class="comment-list block">
    15                  {% if not hasavatar %}
    16                      {%if Flash.WarningMsg%}
    17                      <div class="alert-warning cell">
    18                          <a class="close" data-dismiss="alert" href="#">×</a>
    19                          <h4 class="alert-heading">警告</h4>
    20                          {{Flash.WarningMsg}}
    21                          <div class="text-center">
    22                              <a href="/settings/avatar/" class="btn"> <i class="icon-picture"></i>
    23                                  设置头像
    24                              </a>
    25                          </div>
    26                      </div>
    27                      {%endif%}
    28                  {% endif %}
    29                  {% for notific in notifications %}
    30                      <article id="comment-id-{{notific.Id}}" class="comment-item">
    31                          <a class="pull-left thumb-sm avatar">
    32                              <img src="{% if notific.AvatarMedium %}{{File(notific.AvatarMedium)}}{% else %}/identicon/{{notific.Author}}/48/default.png{% endif %}" class="img-circle" alt="{{notific.Author}}"></a>
    33                          <span class="arrow left"></span>
    34                          <section class="comment-body panel panel-default">
    35                              <header class="panel-heading bg-white">
    36                                  <a href="/user/{{notific.Author}}/">{{notific.Author}}</a>
    37                                  <label class="label bg-info m-l-xs">{{Unix2Time(notific.Created,"2006.01.02")}}</label>
    38                                  <span class="text-muted m-l-sm pull-right"> <i class="fa fa-clock-o"></i>
    39                                      {{TimeSince(notific.Created)}}
    40                                  </span>
    41                              </header>
    42                              <div class="panel-body">
    43                                  <div>
    44                                      <a href="/user/{{notific.Author}}/">{{notific.Author}}</a> {% if notific.Created %}<span class="time">{{TimeSince(notific.Created)}}</span>{% endif %}在话题「<a href="/topic/{{notific.Tid}}/">{{ Markdown2Text(notific.Subject)|safe }}</a>」,说道「<a href="/topic/{{notific.Tid}}/{% if notific.Rid>0 %}#reply{{notific.Rid}}{% endif %}">{{ Markdown2Text(notific.Reply)|safe }}</a>」
    45                                  </div>
    46  
    47                                  <div class="comment-action m-t-sm">
    48                                      <a href="javascript:void(0);" data-toggle="class" onclick="javascript:$.get('/touch/like/reply/{{notific.Rid}}/?ver='+(new Date()).valueOf(), {Action:'get'}, function (data, textStatus){this;if (data!=''){$(this).addClass('disabled');}});" class="btn btn-default btn-xs"> <i class="fa fa-star-o text-muted text"></i>
    49                                          <i id="rpscore-{{notific.Rid}}" class="fa fa-star text-danger text-active"></i>
    50                                          喜欢
    51                                      </a>
    52  
    53                                      <a href="javascript:;" rel="quick-reply" data-target="quick-comment-{{notific.Id}}" data-user="{{notific.Author}}" class="btn btn-default btn-xs">
    54                                          <i class="fa fa-mail-reply text-muted"></i>
    55                                          回复
    56                                      </a>
    57                                      <a href="/delete/notification/{{notific.Id}}/" data-dismiss="alert" class="btn btn-default btn-xs">
    58                                          <i class="fa fa-trash-o text-muted"></i>
    59                                          删除
    60                                      </a>
    61                                  </div>
    62                                  <section class="media-body">
    63                                      <form action="/subject/{{notific.Tid}}/comment/" class="m-t-sm m-b-none hide" id="quick-comment-{{notific.Id}}" method="POST">
    64                                          <div class="input-group">
    65                                              <input type="text" name="comment" class="form-control" placeholder="快键评论">
    66                                              <span class="input-group-btn">
    67                                                  <button class="btn btn-s-md btn-dark" type="submit">回复</button>
    68                                              </span>
    69                                          </div>
    70                                      </form>
    71                                  </section>
    72                              </div>
    73                          </section>
    74                      </article>
    75                  {% endfor %}
    76                  {% if pagesbar %}
    77                      <div class="cell last">
    78                          {{pagesbar|safe}}
    79                      </div>
    80                  {% endif %}
    81              </section>
    82          {% else %}
    83              <div class="cell last">没有通知讯息!</div>
    84          {% endif %}
    85              <span class="clearfix"></span>
    86          </div>
    87      </div>
    88  {% endblock content %}