<tbody>
  {% for navigation in navigations %}
		<tr id="navigations-tr-{{ navigation.id }}">
		  <td>
        {% if navigation.parentId > 0 %} &nbsp;&nbsp;&nbsp;&nbsp; └─{% endif %}
        <a href="{{navigation.url|navigation_url}}" target="_blank"> {{navigation.name}} </a>
      </td>
		  <td>
				{% if navigation.isNewWin == 0 %}否{% else %}是{% endif %}
  		</td>
		  <td>{{ navigation.sequence }}</td>
		  <td>
        {% if navigation.isOpen == 1 %}开启{% else %}关闭{% endif %}
  		</td>
		  <td>
        {% if navigation.type == 'top' and navigation.parentId == 0 %}
	        <button class="btn btn-sm btn-default edit-btn" data-url="{{ path('admin_navigation_create', {type: navigation.type, parentId: navigation.id}) }}" data-toggle="modal" data-target="#modal">添加二级导航</button>
        {% endif %}
          <button class="btn btn-sm btn-default edit-btn" data-url="{{ path('admin_navigation_update', {id:navigation.id}) }}" data-toggle="modal" data-target="#modal">编辑</button>
	        <button class="btn btn-sm btn-default delete-btn" data-url="{{ path('admin_navigation_delete', {id:navigation.id}) }}" data-target="{{ navigation.id }}">删除</button>
		   </td>
		 </tr>
	{% else %}
	  <tr><td colspan="20"><div class="empty">暂无导航记录</div></td></tr>
  {% endfor %}

</tbody>