Image to Post - report
This commit is contained in:
parent
456176ac11
commit
61250bd3a3
@ -15,12 +15,12 @@ class ReportImageTest extends ShimmiePHPUnitTestCase
|
|||||||
// Check that the report exists
|
// Check that the report exists
|
||||||
$config->set_bool("report_image_show_thumbs", true);
|
$config->set_bool("report_image_show_thumbs", true);
|
||||||
$this->get_page("image_report/list");
|
$this->get_page("image_report/list");
|
||||||
$this->assert_title("Reported Images");
|
$this->assert_title("Reported Posts");
|
||||||
$this->assert_text("report details");
|
$this->assert_text("report details");
|
||||||
|
|
||||||
$config->set_bool("report_image_show_thumbs", false);
|
$config->set_bool("report_image_show_thumbs", false);
|
||||||
$this->get_page("image_report/list");
|
$this->get_page("image_report/list");
|
||||||
$this->assert_title("Reported Images");
|
$this->assert_title("Reported Posts");
|
||||||
$this->assert_text("report details");
|
$this->assert_text("report details");
|
||||||
$this->assert_text("$image_id");
|
$this->assert_text("$image_id");
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ class ReportImageTest extends ShimmiePHPUnitTestCase
|
|||||||
|
|
||||||
// Check that the report is gone
|
// Check that the report is gone
|
||||||
$this->get_page("image_report/list");
|
$this->get_page("image_report/list");
|
||||||
$this->assert_title("Reported Images");
|
$this->assert_title("Reported Posts");
|
||||||
$this->assert_no_text("report details");
|
$this->assert_no_text("report details");
|
||||||
|
|
||||||
# FIXME: test delete image from report screen
|
# FIXME: test delete image from report screen
|
||||||
|
@ -40,15 +40,15 @@ class ReportImageTheme extends Themelet
|
|||||||
$thumb_width = $config->get_int(ImageConfig::THUMB_WIDTH);
|
$thumb_width = $config->get_int(ImageConfig::THUMB_WIDTH);
|
||||||
$html = "
|
$html = "
|
||||||
<table id='reportedimage' class='zebra'>
|
<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
|
$h_reportedimages
|
||||||
</table>
|
</table>
|
||||||
";
|
";
|
||||||
|
|
||||||
$page->set_title("Reported Images");
|
$page->set_title("Reported Posts");
|
||||||
$page->set_heading("Reported Images");
|
$page->set_heading("Reported Posts");
|
||||||
$page->add_block(new NavBlock());
|
$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'>
|
<input type='submit' value='Report'>
|
||||||
</form>
|
</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)
|
public function get_nuller(User $duser)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user