Example #1
0
        protected string DisplayStatus(ContentChannelItemStatus contentItemStatus)
        {
            string labelType = "default";

            if (contentItemStatus == ContentChannelItemStatus.Approved)
            {
                labelType = "success";
            }
            else if (contentItemStatus == ContentChannelItemStatus.Denied)
            {
                labelType = "danger";
            }

            return(string.Format("<span class='label label-{0}'>{1}</span>", labelType, contentItemStatus.ConvertToString()));
        }
        protected string DisplayStatus(ContentChannelItemStatus contentItemStatus)
        {
            string labelType = "default";
            if ( contentItemStatus == ContentChannelItemStatus.Approved )
            {
                labelType = "success";
            }
            else if ( contentItemStatus == ContentChannelItemStatus.Denied )
            {
                labelType = "danger";
            }

            return string.Format( "<span class='label label-{0}'>{1}</span>", labelType, contentItemStatus.ConvertToString() );
        }