Image to Post - tag edit
This commit is contained in:
parent
21f48456a2
commit
886d7cfd99
@ -26,7 +26,7 @@ class TagEditInfo extends ExtensionInfo
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Numeric Score
|
<li>Numeric Score
|
||||||
<ul>
|
<ul>
|
||||||
<li>vote=(up, down, remove) -- vote, or remove your vote on an image
|
<li>vote=(up, down, remove) -- vote, or remove your vote on a post
|
||||||
</ul>
|
</ul>
|
||||||
<li>Pools
|
<li>Pools
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -9,12 +9,12 @@ class TagEditTest extends ShimmiePHPUnitTestCase
|
|||||||
|
|
||||||
// Original
|
// Original
|
||||||
$this->get_page("post/view/$image_id");
|
$this->get_page("post/view/$image_id");
|
||||||
$this->assert_title("Image $image_id: pbx");
|
$this->assert_title("Post $image_id: pbx");
|
||||||
|
|
||||||
// Modified
|
// Modified
|
||||||
send_event(new TagSetEvent($image, ["new"]));
|
send_event(new TagSetEvent($image, ["new"]));
|
||||||
$this->get_page("post/view/$image_id");
|
$this->get_page("post/view/$image_id");
|
||||||
$this->assert_title("Image $image_id: new");
|
$this->assert_title("Post $image_id: new");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testInvalidChange()
|
public function testInvalidChange()
|
||||||
@ -36,7 +36,7 @@ class TagEditTest extends ShimmiePHPUnitTestCase
|
|||||||
$this->log_in_as_user();
|
$this->log_in_as_user();
|
||||||
$image_id = $this->post_image("tests/pbx_screenshot.jpg", str_repeat("a", 500));
|
$image_id = $this->post_image("tests/pbx_screenshot.jpg", str_repeat("a", 500));
|
||||||
$this->get_page("post/view/$image_id");
|
$this->get_page("post/view/$image_id");
|
||||||
$this->assert_title("Image $image_id: tagme");
|
$this->assert_title("Post $image_id: tagme");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSourceEdit()
|
public function testSourceEdit()
|
||||||
|
@ -68,7 +68,7 @@ class TagEditTheme extends Themelet
|
|||||||
$h_owner = html_escape($image->get_owner()->name);
|
$h_owner = html_escape($image->get_owner()->name);
|
||||||
$h_av = $image->get_owner()->get_avatar_html();
|
$h_av = $image->get_owner()->get_avatar_html();
|
||||||
$h_date = autodate($image->posted);
|
$h_date = autodate($image->posted);
|
||||||
$h_ip = $user->can(Permissions::VIEW_IP) ? " (".show_ip($image->owner_ip, "Image posted {$image->posted}").")" : "";
|
$h_ip = $user->can(Permissions::VIEW_IP) ? " (".show_ip($image->owner_ip, "Post posted {$image->posted}").")" : "";
|
||||||
return "
|
return "
|
||||||
<tr>
|
<tr>
|
||||||
<th>Uploader</th>
|
<th>Uploader</th>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user