Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 16, 2023
1 parent f8ec844 commit 62e4354
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/rule34v2/tag_edit.theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public function display_mass_editor()
$page->add_block(new Block("Mass Tag Edit", $html));
}

public function get_tag_editor_html(Image $image): \MicroHTML\HTMLElement
public function get_tag_editor_html(Image $image): HTMLElement
{
$h_tags = html_escape($image->get_tag_list());
return \MicroHTML\rawHTML("
return rawHTML("
<tr>
<th width='50px'><a href='".make_link("tag_history/{$image->id}")."'>Tags</a></th>
<td>
Expand All @@ -38,13 +38,13 @@ public function get_tag_editor_html(Image $image): \MicroHTML\HTMLElement
");
}

public function get_source_editor_html(Image $image): \MicroHTML\HTMLElement
public function get_source_editor_html(Image $image): HTMLElement
{
global $user;
$h_source = html_escape($image->get_source());
$f_source = $this->format_source($image->get_source());
$style = "overflow: hidden; white-space: nowrap; max-width: 350px; text-overflow: ellipsis;";
return \MicroHTML\rawHTML("
return rawHTML("
<tr>
<th><a href='".make_link("source_history/{$image->id}")."'>Source&nbsp;Link</a></th>
<td>
Expand Down

0 comments on commit 62e4354

Please sign in to comment.