예제 #1
0
        public ActionResult About()
        {
            var view = MHtmls.LongList(MHtmls.Title("О Центре:"),
                                       MHtmls.MainList(Url.Center().Info("Информация о Центре"), Url.Complexes()));

            return(BaseView(
                       new PagePart(view.ToString()),
                       new PagePart(Views.Shared.Education.NearestGroupMobile, null)));
        }
예제 #2
0
        public ActionResult NewsAndActions()
        {
            var view = MHtmls.LongList(MHtmls.Title("Новости и акции"),
                                       MHtmls.MainList(Url.NewsListLink(),
                                                       Url.ActionsLink()));

            return(BaseView(
                       new PagePart(view.ToString()),
                       new PagePart(Views.Shared.Education.NearestGroupMobile, null)));
        }
예제 #3
0
파일: SiteHtmls.cs 프로젝트: dKluev/Site
 public string MobileCourses(IEnumerable <ICourseLink> courses)
 {
     return(MHtmls.MainList(courses
                            .Select(x => Html.CourseLinkAnchor(x.UrlName, x.GetName()))));
 }
예제 #4
0
파일: SiteHtmls.cs 프로젝트: dKluev/Site
 public string MobileSections(IEnumerable <Section> sections)
 {
     return(MHtmls.MainList(sections.Select(x => Url.SectionLink(x))));
 }
예제 #5
0
파일: SiteHtmls.cs 프로젝트: dKluev/Site
 public string MobileNews(IEnumerable <News> news)
 {
     return(MHtmls.MainList(news.Select(x => Url.SiteNews().Details(x.NewsID, null,
                                                                    H.l(span.Class("h2_inline")[x.Name],
                                                                        H.span.Class("p_inline")[x.ShortDescription])))));
 }
예제 #6
0
파일: SiteHtmls.cs 프로젝트: dKluev/Site
 public string MobileActions(IEnumerable <MarketingAction> actions)
 {
     return(MHtmls.MainList(actions.Select(x => Url.Center().MarketingAction(x.UrlName,
                                                                             H.l(span.Class("h2_inline")[x.Name],
                                                                                 H.span.Class("p_inline")[H.Raw(StringUtils.GetFirstParagraph(x.Description))])))));
 }
예제 #7
0
파일: SiteHtmls.cs 프로젝트: dKluev/Site
 public string MobileComplexes(IEnumerable <Complex> complexes)
 {
     return(MHtmls.MainList(complexes.Select(x => Url.Locations().Complex(x.UrlName,
                                                                          H.l(x.Name, H.span.Class("addrfilials")[x.Address])))));
 }