      <table id="user-table" class="table table-striped table-hover" data-search-form="#user-search-form">
          <thead>
            <tr>
              <th>{{'用户名'|trans}}</th>
              <th>{{'加入课程'|trans}}</th>
              <th>{{'加入时间'|trans}}</th>
              <th>{{'课程价格'|trans}}</th>
            </tr>
          </thead>
          <tbody>
            {% if JoinLessonDetail %}
            {% for data in JoinLessonDetail %}
            {% if courses[data.targetId].title|default(null) %}
              <tr>
                  <td> {{ admin_macro.user_link(users[data.userId]) }}</td>
                   <td><a href="{{ path('course_show', {id:data.targetId}) }}" target="_blank"><strong>{{ courses[data.targetId].title|default("") }}</strong></a><br></td>
                   <td>{{data.createdTime|date("Y-m-d H:i:s")}}</td>
                   <td class="text-danger">{% if data.amount==0 %}{{'免费'|trans}}{% else %}{{data.amount}}{% endif %}</td>
              </tr>
            {% else %}
              <tr>
                  <td> {{ admin_macro.user_link(users[data.userId]) }}</td>
                   <td><strong>{{'此课程已不存在'|trans}}</strong><br></td>
                   <td>{{data.createdTime|date("Y-m-d H:i:s")}}</td>
                   <td class="text-danger">{% if data.amount==0 %}{{'免费'|trans}}{% else %}{{data.amount}}{% endif %}</td>
              </tr>
            {% endif %}
            {% endfor %}
            {% endif %}
          </tbody>
      </table>    
      {{ admin_macro.paginator(paginator) }}