<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
var data = {{data|tojson}};
$(function() {
$('#table').bootstrapTable({
data: data
});
});
});//]]>
</script>
</head>
<body>
<div class="container" style="padding: 10px; ">
<br>
<table id="table" data-toggle="true" data-show-columns="true" data-pagination="true" data-height="500">
<thead>
<tr>
<th data-field="name" data-sortable="true">Repo</th>
<th data-field="commits" data-sortable="true" >commits</th>
<th data-field="attention" data-sortable="true">attention</th>
<th data-field="uneven" data-sortable="true">uneven</th>
<th
</tr>
</thead>
</table>
</div>
This code renders json data and put it in a bootstrap table. I want to add a button in each row so that when it is clicked I can send the user to a new page.
How do I do this?