Пример #1
0
        public static HtmlTag TitleDiv(ITitleSummarySlugFolder content)
        {
            var titleContainer = new HtmlTag("div").AddClass("title-container");

            titleContainer.Children.Add(new HtmlTag("h1").AddClass("title-content").Text(content.Title));
            return(titleContainer);
        }
Пример #2
0
        public static HtmlTag TitleLinkDiv(ITitleSummarySlugFolder content, IContentId id)
        {
            var titleContainer = new HtmlTag("div").AddClass("title-link-container");

            var header         = new HtmlTag("h1").AddClass("title-link-content");
            var linkToFullPost = new LinkTag(content.Title,
                                             UserSettingsSingleton.CurrentSettings().ContentUrl(id.ContentId).Result);

            header.Children.Add(linkToFullPost);

            titleContainer.Children.Add(header);

            return(titleContainer);
        }
Пример #3
0
 public TitleSummarySlugEditorContext(StatusControlContext statusContext, ITitleSummarySlugFolder dbEntry)
 {
     StatusContext = statusContext ?? new StatusControlContext();
     StatusContext.RunFireAndForgetTaskWithUiToastErrorReturn(() => LoadData(dbEntry));
 }