mirror of
https://github.com/discourse/discourse.git
synced 2025-04-16 21:21:27 +08:00

Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
13 lines
389 B
JavaScript
13 lines
389 B
JavaScript
import { htmlHelper } from "discourse-common/lib/helpers";
|
|
import { htmlStatus } from "discourse/helpers/reviewable-status";
|
|
import { EDITED } from "discourse/models/reviewable-history";
|
|
|
|
export default htmlHelper(function(rh) {
|
|
switch (rh.reviewable_history_type) {
|
|
case EDITED:
|
|
return I18n.t("review.history.edited");
|
|
default:
|
|
return htmlStatus(rh.status);
|
|
}
|
|
});
|