add pagination navigator
This commit is contained in:
@@ -13,6 +13,12 @@
|
||||
margin: auto;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.scroll {
|
||||
font-size: 20px;
|
||||
margin: auto;
|
||||
text-align:center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
<% render("views.navigation") %>
|
||||
|
||||
<div class="scroll">
|
||||
<% if offset > 0 then %>
|
||||
<a href="<%= url_for("station", { station = station_id }, { offset = offset-1 }) %>"><span style="color:#ffffff !important;">previous</span></a>
|
||||
<% end %>
|
||||
-
|
||||
<% if table.getn(airtimes) >= limit then %>
|
||||
<a href="<%= url_for("station", { station = station_id }, { offset = offset+1 }) %>"><span style="color:#ffffff !important;">next</span></a>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="airtimes" style="background-color: black; width: 900px; margin:0 auto;">
|
||||
<% for i, item in ipairs(airtimes) do %>
|
||||
<div style="clear:both;height:5px;"></div>
|
||||
|
||||
Reference in New Issue
Block a user