/** * 跳转至redis管理频道的页面 * * @return */ @AdminAuthenticated() public Result channelContentManageRedis() { List<Channel> channelList = channelService.findAll(); String selector = ""; if (channelList != null && channelList.size() > 0) { selector = ChannelService.channelList2Html(channelList, channelList.get(0).getId()); } return ok(views.html.redis.channelContentManageRedis.render(Html.apply(selector), channelList)); }
public Html getDescriptionAsHtml() { return Html.apply(getDescription().replace("\n", "<br>")); }
public play.twirl.api.Html getTitleAsHtml() { return play.twirl.api.Html.apply(getTitle().replace("\n", "<br>")); }