A bunch of pagination attributes will be nil if the subsequent/previous pages don't exist

This commit is contained in:
Parker Moore 2013-04-09 20:29:48 +02:00
parent 9c296f04a9
commit c9a8a1b29f
1 changed files with 24 additions and 4 deletions

View File

@ -66,19 +66,39 @@ attributes:
</tr> </tr>
<tr> <tr>
<td><p><code>previous_page</code></p></td> <td><p><code>previous_page</code></p></td>
<td><p>page number of the previous pagination page</p></td> <td>
<p>
page number of the previous pagination page,
or <code>nil</code> if no previous page exists
</p>
</td>
</tr> </tr>
<tr> <tr>
<td><p><code>previous_page_path</code></p></td> <td><p><code>previous_page_path</code></p></td>
<td><p>path (including leading "/") of previous pagination page</p></td> <td>
<p>
path (including leading "/") of previous pagination page,
or <code>nil</code> if no previous page exists
</p>
</td>
</tr> </tr>
<tr> <tr>
<td><p><code>next_page</code></p></td> <td><p><code>next_page</code></p></td>
<td><p>page number of the next pagination page</p></td> <td>
<p>
page number of the next pagination page,
or <code>nil</code> if no subsequent page exists
</p>
</td>
</tr> </tr>
<tr> <tr>
<td><p><code>next_page_path</code></p></td> <td><p><code>next_page_path</code></p></td>
<td><p>path (including leading "/") of next pagination page</p></td> <td>
<p>
path (including leading "/") of next pagination page,
or <code>nil</code> if no subsequent page exists
</p>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>