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);
        }
        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);
        }
Esempio n. 3
0
 public TitleSummarySlugEditorContext(StatusControlContext statusContext, ITitleSummarySlugFolder dbEntry)
 {
     StatusContext = statusContext ?? new StatusControlContext();
     StatusContext.RunFireAndForgetTaskWithUiToastErrorReturn(() => LoadData(dbEntry));
 }