Browse Source

Update main.html.php

Let it look like tag/label
pull/683/head
Huang95 1 year ago
committed by GitHub
parent
commit
1b983c8dc3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      system/admin/views/main.html.php

+ 2
- 2
system/admin/views/main.html.php View File

@ -20,7 +20,7 @@ if (isset($_SESSION[site_url()]['user'])) {
if (config("views.counter") == "true") if (config("views.counter") == "true")
echo '<td>' . $p->views . '</td>'; echo '<td>' . $p->views . '</td>';
echo '<td><a href="' . str_replace('category', 'admin/categories', $p->categoryUrl) . '">'. strip_tags($p->category) .'</a></td>'; echo '<td><a href="' . str_replace('category', 'admin/categories', $p->categoryUrl) . '">'. strip_tags($p->category) .'</a></td>';
echo '<td>' . $p->tag . '</td>';
echo '<td>' . str_replace("rel=\"tag\"", "rel=\"tag\" class=\"badge badge-light text-primary font-weight-normal\"", $p->tag) . '</td>';
echo '<td><a class="btn btn-primary btn-xs" href="' . $p->url . '/edit?destination=admin">' . i18n('Edit') . '</a> <a class="btn btn-danger btn-xs" href="' . $p->url . '/delete?destination=admin">' . i18n('Delete') . '</a></td>'; echo '<td><a class="btn btn-primary btn-xs" href="' . $p->url . '/edit?destination=admin">' . i18n('Edit') . '</a> <a class="btn btn-danger btn-xs" href="' . $p->url . '/delete?destination=admin">' . i18n('Delete') . '</a></td>';
echo '</tr>'; echo '</tr>';
} }
@ -28,4 +28,4 @@ if (isset($_SESSION[site_url()]['user'])) {
} }
} }
?>
?>

Loading…
Cancel
Save