public static string GetViewPagePath(string mainPath, string pageName) { if (pageName == null) { return(mainPath); } return(string.Format("{0}?page={1}", mainPath, PageNameUtil.Encode(pageName))); }
private void NotifyCommentCreated(Page page, Comment comment) { WikiNotifyClient.SendNoticeAsync( SecurityContext.CurrentAccount.ID.ToString(), Constants.EditPage, PageNameUtil.Encode(page.PageName), null, GetNotifyTags(page.PageName, "new wiki page comment", comment)); WikiActivityPublisher.AddPageComment(page, comment); }
private void NotifyPageEdited(Page page) { WikiNotifyClient.SendNoticeAsync( SecurityContext.CurrentAccount.ID.ToString(), Constants.EditPage, PageNameUtil.Encode(page.PageName), null, GetNotifyTags(page.PageName, "edit wiki page", null)); WikiActivityPublisher.EditPage(page); }
public static string GetEditFilePath(string mainPath, string pageName) { return(string.Format("{0}?file={1}&action=Edit", mainPath, PageNameUtil.Encode(pageName))); }
public static string GetViewPagePathWithVersion(string mainPath, string pageName, int version) { return(string.Format("{0}?page={1}&ver={2}", mainPath, PageNameUtil.Encode(pageName), version)); }
public static string GetViewPagePath(string mainPath, string pageName, string spetial) { return(string.Format("{0}?page={1}", mainPath, string.IsNullOrEmpty(spetial) ? PageNameUtil.Encode(pageName) : string.Format(@"{0}:{1}", spetial, PageNameUtil.Encode(pageName)))); }