Esempio n. 1
0
 public static ContentResult Get(Context context)
 {
     return(new ContentResult
     {
         ContentType = "text/css",
         Content = HtmlStyles.ExtendedStyles(context: context)
     });
 }
Esempio n. 2
0
 public static ContentResult Get(Context context)
 {
     return(new ContentResult
     {
         ContentType = "text/css",
         Content = HtmlStyles.ExtendedStyles(
             deptId: context.DeptId,
             userId: context.UserId,
             siteId: context.QueryStrings.Long("site-id"),
             id: context.QueryStrings.Long("id"),
             controller: context.QueryStrings.Data("controller"),
             action: context.QueryStrings.Data("action"))
     });
 }
Esempio n. 3
0
        public static ContentResult Get(Context context)
        {
            var siteId     = context.QueryStrings.Long("site-id");
            var id         = context.QueryStrings.Long("id");
            var controller = context.QueryStrings.Data("controller");
            var action     = context.QueryStrings.Data("action");
            var siteTop    = siteId == 0 && id == 0 && controller == "items" && action == "index";

            return(new ContentResult
            {
                ContentType = "text/css",
                Content = HtmlStyles.ExtendedStyles(
                    context: context,
                    deptId: context.DeptId,
                    groups: context.Groups,
                    userId: context.UserId,
                    siteTop: siteTop,
                    siteId: siteId,
                    id: id,
                    controller: controller,
                    action: action)
            });
        }