mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
updated userpage
Page now displays colored tags, and favored pastes now load in updated order.
This commit is contained in:
parent
cef0d39f18
commit
755bf5fe5d
1 changed files with 4 additions and 6 deletions
|
@ -21,6 +21,7 @@ $protocol = paste_protocol();
|
||||||
rowReorder: { selector: 'td:nth-child(2)'},
|
rowReorder: { selector: 'td:nth-child(2)'},
|
||||||
responsive: true,
|
responsive: true,
|
||||||
pageLength: 50,
|
pageLength: 50,
|
||||||
|
order: [[ 1, "desc" ]],
|
||||||
autoWidth: false,
|
autoWidth: false,
|
||||||
initComplete: function () {
|
initComplete: function () {
|
||||||
var search = new URLSearchParams(window.location.search);
|
var search = new URLSearchParams(window.location.search);
|
||||||
|
@ -40,6 +41,7 @@ $protocol = paste_protocol();
|
||||||
$("#favs").dataTable({
|
$("#favs").dataTable({
|
||||||
rowReorder: { selector: 'td:nth-child(2)'},
|
rowReorder: { selector: 'td:nth-child(2)'},
|
||||||
responsive: true,
|
responsive: true,
|
||||||
|
order: [[ 2, "desc" ]],
|
||||||
pageLength: 50,
|
pageLength: 50,
|
||||||
autoWidth: false,
|
autoWidth: false,
|
||||||
initComplete: function () {
|
initComplete: function () {
|
||||||
|
@ -220,9 +222,7 @@ $protocol = paste_protocol();
|
||||||
</td>
|
</td>
|
||||||
<td class="td-left">';
|
<td class="td-left">';
|
||||||
if (strlen($p_tags) > 0) {
|
if (strlen($p_tags) > 0) {
|
||||||
foreach ($tagArray as $tags) {
|
echo tagsToHtmlUser($p_tags,$profile_username);
|
||||||
echo '<a href="' . $protocol . $baseurl . '/user.php?user=' . $profile_username . '&q=' . $tags . '"><span class="tag is-info">' . trim($tags) . '</span></a>';
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
echo ' <span class="tag is-warning">No tags</span>';
|
echo ' <span class="tag is-warning">No tags</span>';
|
||||||
}
|
}
|
||||||
|
@ -307,9 +307,7 @@ $protocol = paste_protocol();
|
||||||
</td>
|
</td>
|
||||||
<td class="td-left">';
|
<td class="td-left">';
|
||||||
if (strlen($f_tags) > 0) {
|
if (strlen($f_tags) > 0) {
|
||||||
foreach ($tagArray2 as $tags) {
|
echo tagsToHtmlUser($f_tags,$profile_username);
|
||||||
echo '<a href="' . $protocol . $baseurl . '/user.php?user=' . $profile_username . '&q=' . $tags . '"><span class="tag is-info">' . trim($tags) . '</span></a>';
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
echo ' <span class="tag is-warning">No tags</span>';
|
echo ' <span class="tag is-warning">No tags</span>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue