AsiaV2_lite/modules/personal_college_project/index.html.erb

52 lines
1.2 KiB
Plaintext

<table class="table table-hover table-striped projects-index college_projects-index dt-responsive">
<caption><h3>{{widget-title}}</h3></caption>
<thead>
<tr>
<th class="col-md-1">{{th-year}}</th>
<th class="col-md-1">{{th-project_name}}</th>
<th class="col-md-1">{{th-advising_professor}}</th>
<th class="col-md-1">{{th-department}}</th>
<th class="col-md-1">{{th-student_name}}</th>
<th class="col-md-1">{{th-member_profile}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="college_projects">
<tr>
<td>{{year}}</td>
<td>{{project_name}}</td>
<td>{{advising_professor}}</td>
<td>{{department}}</td>
<td>{{student_name}}</td>
<td>{{member_profile}}</td>
</tr>
</tbody>
</table>
{{pagination_goes_here}}
<script>
$('table.college_projects-index').each(function(){
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
$(this).DataTable({
searching: false,
paging: false,
ordering: false,
info: false,
autoWidth: false
});
}
});;
</script>