Esempio n. 1
0
        public static MvcHtmlString PreviewLink(this HtmlHelper htmlHelper, ActiveRecord listItem, string label = null)
        {
            string html = "<a href=\"" + listItem.GetUrl("?preview=adminonly") + "\" target=\"_blank\" title=\"View this page\"><i class=\"icon-search\"></i>" + label + "</a>";

            return(MvcHtmlString.Create(html));
        }