mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
fixed alignment
fixed alignment on user pastes table + added langs. Neatened up UI of datatable for userpage.
This commit is contained in:
parent
935b75cb85
commit
8ba425f0fc
2 changed files with 20 additions and 18 deletions
|
@ -4,6 +4,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$lang = array();
|
$lang = array();
|
||||||
|
$lang['pastestatus'] = "Status";
|
||||||
|
$lang['datefav'] = "Date Favorited";
|
||||||
$lang['loginwarning'] = "You must be logged in to do that.";
|
$lang['loginwarning'] = "You must be logged in to do that.";
|
||||||
$lang['titlelen'] = "Title too long";
|
$lang['titlelen'] = "Title too long";
|
||||||
$lang['notags'] = "Please tag your paste";
|
$lang['notags'] = "Please tag your paste";
|
||||||
|
|
|
@ -143,29 +143,29 @@ $protocol = paste_protocol();
|
||||||
<table id="archive" class="table is-fullwidth is-hoverable">
|
<table id="archive" class="table is-fullwidth is-hoverable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $lang['pastetitle']; ?></td>
|
<td class="td-right" ><?php echo $lang['pastetitle']; ?></td>
|
||||||
<td><?php echo $lang['pastetime']; ?></td>
|
<td class="td-center"><?php echo $lang['pastetime']; ?></td>
|
||||||
<?php if ($is_current_user) {
|
<?php if ($is_current_user) {
|
||||||
echo "<td>" . $lang['visibility'] . "</td>";
|
echo "<td class='td-center'>" . $lang['visibility'] . "</td>";
|
||||||
} ?>
|
} ?>
|
||||||
<td><?php echo $lang['pasteviews']; ?></td>
|
<td class="td-center"><?php echo $lang['pasteviews']; ?></td>
|
||||||
<td><?php echo $lang['tags']; ?></td>
|
<td class="td-center"><?php echo $lang['tags']; ?></td>
|
||||||
<?php if ($is_current_user) {
|
<?php if ($is_current_user) {
|
||||||
echo "<td>" . $lang['delete'] . "</td>";
|
echo "<td class='td-center'>" . $lang['delete'] . "</td>";
|
||||||
} ?>
|
} ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $lang['pastetitle']; ?></td>
|
<td class="td-center"><?php echo $lang['pastetitle']; ?></td>
|
||||||
<td><?php echo $lang['pastedate']; ?></td>
|
<td class="td-center"><?php echo $lang['pastedate']; ?></td>
|
||||||
<?php if ($is_current_user) {
|
<?php if ($is_current_user) {
|
||||||
echo "<td>" . $lang['visibility'] . "</td>";
|
echo "<td class='td-center'>" . $lang['visibility'] . "</td>";
|
||||||
} ?>
|
} ?>
|
||||||
<td><?php echo $lang['pasteviews']; ?></td>
|
<td class="td-center"><?php echo $lang['pasteviews']; ?></td>
|
||||||
<td><?php echo $lang['tags']; ?></td>
|
<td class="td-center"><?php echo $lang['tags']; ?></td>
|
||||||
<?php if ($is_current_user) {
|
<?php if ($is_current_user) {
|
||||||
echo "<td>" . $lang['delete'] . "</td>";
|
echo "<td class='td-center'>" . $lang['delete'] . "</td>";
|
||||||
} ?>
|
} ?>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
@ -252,10 +252,10 @@ $protocol = paste_protocol();
|
||||||
<table id="favs" class="table is-fullwidth is-hoverable">
|
<table id="favs" class="table is-fullwidth is-hoverable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $lang['pastetitle']; ?></td>
|
<td class="td-right"><?php echo $lang['pastetitle']; ?></td>
|
||||||
<td><?php echo $lang['tags']; ?></td>
|
<td class="td-center"><?php echo $lang['datefav']; ?></td>
|
||||||
<td><?php echo "Updated (48hrs)"; ?></td>
|
<td class="td-center"><?php echo $lang['pastestatus']; ?></td>
|
||||||
<td><?php echo $lang['tags']; ?></td>
|
<td class="td-center"><?php echo $lang['tags']; ?></td>
|
||||||
<?php //if (isset($_SESSION) && $_SESSION['username'] == $profile_username) {
|
<?php //if (isset($_SESSION) && $_SESSION['username'] == $profile_username) {
|
||||||
//echo "<td>" . $lang['delete'] . "</td>";
|
//echo "<td>" . $lang['delete'] . "</td>";
|
||||||
//} ?>
|
//} ?>
|
||||||
|
@ -288,10 +288,10 @@ $protocol = paste_protocol();
|
||||||
<td>
|
<td>
|
||||||
<a href="' . $protocol . $baseurl . '/' . $f_id . '" title="' . $ftitle . '">' . ($ftitle) . '</a>
|
<a href="' . $protocol . $baseurl . '/' . $f_id . '" title="' . $ftitle . '">' . ($ftitle) . '</a>
|
||||||
</td>
|
</td>
|
||||||
<td data-sort="' . date_format($f_date, 'U') . '" class="td-left">
|
<td data-sort="' . date_format($f_date, 'U') . '" class="td-center">
|
||||||
<span>' . $f_dateui . '</span>
|
<span>' . $f_dateui . '</span>
|
||||||
</td>
|
</td>
|
||||||
<td data-sort="' . $Recent_update_u . '" class="td-left">
|
<td data-sort="' . $Recent_update_u . '" class="td-center">
|
||||||
<span>' . $updatenote . '</span>
|
<span>' . $updatenote . '</span>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue