예제 #1
0
 /**
  * 跳转至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));
 }
예제 #2
0
 public Html getDescriptionAsHtml() {
   return Html.apply(getDescription().replace("\n", "<br>"));
 }
예제 #3
0
  public play.twirl.api.Html getTitleAsHtml() {

    return play.twirl.api.Html.apply(getTitle().replace("\n", "<br>"));
  }