Image to Post - report
This commit is contained in:
parent
456176ac11
commit
61250bd3a3
2 changed files with 8 additions and 8 deletions
|
@ -15,12 +15,12 @@ class ReportImageTest extends ShimmiePHPUnitTestCase
|
|||
// Check that the report exists
|
||||
$config->set_bool("report_image_show_thumbs", true);
|
||||
$this->get_page("image_report/list");
|
||||
$this->assert_title("Reported Images");
|
||||
$this->assert_title("Reported Posts");
|
||||
$this->assert_text("report details");
|
||||
|
||||
$config->set_bool("report_image_show_thumbs", false);
|
||||
$this->get_page("image_report/list");
|
||||
$this->assert_title("Reported Images");
|
||||
$this->assert_title("Reported Posts");
|
||||
$this->assert_text("report details");
|
||||
$this->assert_text("$image_id");
|
||||
|
||||
|
@ -30,7 +30,7 @@ class ReportImageTest extends ShimmiePHPUnitTestCase
|
|||
|
||||
// Check that the report is gone
|
||||
$this->get_page("image_report/list");
|
||||
$this->assert_title("Reported Images");
|
||||
$this->assert_title("Reported Posts");
|
||||
$this->assert_no_text("report details");
|
||||
|
||||
# FIXME: test delete image from report screen
|
||||
|
|
|
@ -40,15 +40,15 @@ class ReportImageTheme extends Themelet
|
|||
$thumb_width = $config->get_int(ImageConfig::THUMB_WIDTH);
|
||||
$html = "
|
||||
<table id='reportedimage' class='zebra'>
|
||||
<thead><td width='$thumb_width'>Image</td><td>Reason</td><td width='128'>Action</td></thead>
|
||||
<thead><td width='$thumb_width'>Post</td><td>Reason</td><td width='128'>Action</td></thead>
|
||||
$h_reportedimages
|
||||
</table>
|
||||
";
|
||||
|
||||
$page->set_title("Reported Images");
|
||||
$page->set_heading("Reported Images");
|
||||
$page->set_title("Reported Posts");
|
||||
$page->set_heading("Reported Posts");
|
||||
$page->add_block(new NavBlock());
|
||||
$page->add_block(new Block("Reported Images", $html));
|
||||
$page->add_block(new Block("Reported Posts", $html));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -84,7 +84,7 @@ class ReportImageTheme extends Themelet
|
|||
<input type='submit' value='Report'>
|
||||
</form>
|
||||
";
|
||||
$page->add_block(new Block("Report Image", $html, "left"));
|
||||
$page->add_block(new Block("Report Post", $html, "left"));
|
||||
}
|
||||
|
||||
public function get_nuller(User $duser)
|
||||
|
|
Reference in a new issue