private static HtmlBuilder EditorTabs(this HtmlBuilder hb, DeptModel deptModel) { return(hb.Ul(id: "EditorTabs", action: () => hb .Li(action: () => hb .A( href: "#FieldSetGeneral", text: Displays.Basic())) .Li( _using: deptModel.MethodType != BaseModel.MethodTypes.New, action: () => hb .A( href: "#FieldSetHistories", text: Displays.ChangeHistoryList())))); }
private static HtmlBuilder EditorTabs( this HtmlBuilder hb, SiteSettings ss, WikiModel wikiModel) { return(hb.Ul(id: "EditorTabs", action: () => hb .Li(action: () => hb .A( href: "#FieldSetGeneral", text: Displays.Basic())) .Li(_using: wikiModel.MethodType != BaseModel.MethodTypes.New, action: () => hb .A( href: "#FieldSetHistories", text: Displays.ChangeHistoryList())) .Li(_using: ss.CanManagePermission() && wikiModel.MethodType != BaseModel.MethodTypes.New, action: () => hb .A( href: "#FieldSetRecordAccessControl", text: Displays.RecordAccessControl())))); }