Add pagination.

This commit is contained in:
BoHung Chiu 2021-05-11 10:31:38 +08:00
parent 710157d098
commit 86eb202d2b
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div> </div>
</div> </div>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@templates), class: "pagination pagination-centered"
end
%>
<script type="text/javascript"> <script type="text/javascript">
$(".template-display-btn").on("click",function(){ $(".template-display-btn").on("click",function(){
var el = $(this); var el = $(this);