Change to;

```
<li class="<%= data.hasPrev ? '' : 'disabled' %>">
```