Navigation box
FossilOrigin-Name: 2849625ba930e407caac5daaed1401bf56ad217fedfda72d5c6dc0d61cde6675
This commit is contained in:
parent
4a88dcb68d
commit
66c27577a4
3 changed files with 32 additions and 11 deletions
8
dist/treebird20.css
vendored
8
dist/treebird20.css
vendored
|
@ -756,13 +756,9 @@ ul.large-list li a
|
|||
box-shadow: 0px 1px 0px #dadada;
|
||||
}
|
||||
|
||||
.navigation tr
|
||||
{
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.navigation td
|
||||
.navigation .nav-btn
|
||||
{
|
||||
display: block;
|
||||
padding: 8px !important;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ void tl_public(mastodont_t* api, int local)
|
|||
size_t status_count, statuses_html_count;
|
||||
struct mstdnt_status* statuses;
|
||||
struct mstdnt_storage storage = { 0 };
|
||||
char* status_format, *post_box;
|
||||
char* status_format, *post_box, *navigation_box;
|
||||
char* output = NULL;
|
||||
|
||||
struct mstdnt_args args = {
|
||||
|
@ -43,7 +43,7 @@ void tl_public(mastodont_t* api, int local)
|
|||
.max_id = NULL,
|
||||
.since_id = NULL,
|
||||
.min_id = NULL,
|
||||
.limit = 20,
|
||||
.limit = 20
|
||||
};
|
||||
|
||||
try_post_status(api);
|
||||
|
@ -62,6 +62,7 @@ void tl_public(mastodont_t* api, int local)
|
|||
|
||||
// Create post box
|
||||
post_box = construct_post_box(NULL, "", NULL);
|
||||
navigation_box = construct_navigation_box();
|
||||
easprintf(&output, "%s%s%s", post_box, status_format, data_navigation_html);
|
||||
|
||||
struct base_page b = {
|
||||
|
@ -78,6 +79,7 @@ void tl_public(mastodont_t* api, int local)
|
|||
mstdnt_cleanup_statuses(statuses, status_count);
|
||||
if (cleanup) free(status_format);
|
||||
if (post_box) free(post_box);
|
||||
if (navigation_box) free(navigation_box);
|
||||
if (output) free(output);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,30 @@
|
|||
<table class="navigation ui-table">
|
||||
<tr>
|
||||
<td class="nav-up btn">Up</td>
|
||||
<td class="nav-prev btn">Previous</td>
|
||||
<td class="nav-next btn">Next</td>
|
||||
<td class="nav-up btn">
|
||||
<form action="." method="get">
|
||||
<label class="pointer">
|
||||
<span class="nav-btn">Up</span>
|
||||
<input type="submit" class="hidden">
|
||||
</label>
|
||||
</form>
|
||||
</td>
|
||||
<td class="nav-prev btn">
|
||||
<form action="." method="get">
|
||||
<label class="pointer">
|
||||
<input type="hidden" name="offset" value="5">
|
||||
<span class="nav-btn">Previous</span>
|
||||
<input type="submit" class="hidden">
|
||||
</label>
|
||||
</form>
|
||||
</td>
|
||||
<td class="nav-next btn">
|
||||
<form action="." method="get">
|
||||
<label class="pointer">
|
||||
<input type="hidden" name="offset" value="5">
|
||||
<span class="nav-btn">Next</span>
|
||||
<input type="submit" class="hidden">
|
||||
</label>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue