Advertisement
Guest User

Untitled

a guest
Mar 7th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.13 KB | None | 0 0
  1. <ActionBarLogo (myEvent)="onDrawerButtonTap($event)"></ActionBarLogo>
  2. <RadSideDrawer #drawer showOverNavigation="false" gesturesEnabled="{{android}}" [drawerTransition]="sideDrawerTransition">
  3. <StackLayout tkDrawerContent class="drawer">
  4. <MyDrawer [selectedPage]="'Home'"></MyDrawer>
  5. </StackLayout>
  6.  
  7.  
  8. <GridLayout rows="*, auto" class="page page-content" tkMainContent>
  9.  
  10. <StackLayout class="fade-in" row="0" orientation="vertical" *ngIf="loading==false && network_error==false">
  11. <StackLayout>
  12. <PullToRefresh (refresh)="refreshList($event)">
  13. <ScrollView orientation="vertical">
  14. <StackLayout>
  15. <StackLayout>
  16. <ScrollView orientation="horizontal" scrollBarIndicatorVisible="false">
  17. <StackLayout orientation="horizontal" class="games">
  18. <StackLayout class="game" width="{{screen_width}}" *ngFor="let game of games">
  19. <StackLayout class="game-inner">
  20. <StackLayout class="game-date">
  21. <Label text="{{game.league}}, {{game.round}}. kolo" class="game-round"></Label>
  22. <Label text="{{ game.date | format_date }}" class="game-date-text"></Label>
  23. </StackLayout>
  24. <StackLayout class="game-data">
  25. <FlexboxLayout flexDirection="row">
  26. <StackLayout flexGrow="1" class="game-team">
  27. <WebImage src="{{game.team_home.logo}}" height="40" class="game-team-logo"></WebImage>
  28. <Label text="{{game.team_home.name}}" textWrap="true" class="game-team-name"></Label>
  29. </StackLayout>
  30. <StackLayout flexGrow="1" class="game-score">
  31. <Label class="game-score-inner" text="-:-" textWrap="true" *ngIf="game.score==null"></Label>
  32. <Label class="game-score-inner" text="{{game.score}}" textWrap="true" *ngIf="game.score!=null"></Label>
  33. </StackLayout>
  34. <StackLayout flexGrow="1" class="game-team">
  35. <WebImage src="{{game.team_away.logo}}" height="40" class="game-team-logo"></WebImage>
  36. <Label text="{{game.team_away.name}}" textWrap="true" class="game-team-name"></Label>
  37. </StackLayout>
  38. </FlexboxLayout>
  39. </StackLayout>
  40. <StackLayout class="game-button" orientation="horizontal" horizontalAlignment="center" [nsRouterLink]="['/game', game.id]"
  41. pageTransition="flip">
  42. <WebImage src="~/assets/menu_icons/matches.png" width="15"></WebImage>
  43. <Label text="informácie o zápase" class="game-button-btn"></Label>
  44. </StackLayout>
  45. </StackLayout>
  46. </StackLayout>
  47. </StackLayout>
  48. </ScrollView>
  49. </StackLayout>
  50. <StackLayout>
  51. <StackLayout class="hp-partners">
  52. <StackLayout class="hp-partners-heading">
  53. <Label text="Partneri klubu"></Label>
  54. </StackLayout>
  55. <FlexboxLayout flexDirection="row">
  56. <StackLayout class="partner" *ngFor="let partner of partners">
  57. <WebImage src="{{partner.img_url}}" stretch="aspectFit" width="100%" class="partner-image" (tap)="open_url(partner.url)"></WebImage>
  58. </StackLayout>
  59. </FlexboxLayout>
  60. </StackLayout>
  61. <StackLayout class="articles-list">
  62. <StackLayout class="article" [nsRouterLink]="['/article', article.id]" pageTransition="slideLeft" *ngFor="let article of articles, let i=index">
  63. <StackLayout class="article-photo">
  64. <WebImage src="{{article.photo}}" stretch="aspectFill" placeholder="~/assets/placeholder.png" class="article-photo-image"></WebImage>
  65. </StackLayout>
  66. <StackLayout class="article-body">
  67. <StackLayout class="article-data">
  68. <FlexboxLayout flexDirection="row">
  69. <StackLayout class="article-date" orientation="horizontal">
  70. <WebImage src="~/assets/menu_icons/date.png" class="article-date-ico"></WebImage>
  71. <Label text="{{ article.date | format_date }}" class="article-date-text"></Label>
  72. </StackLayout>
  73. <StackLayout class="article-sticker" orientation="horizontal">
  74. <WebImage src="~/assets/menu_icons/tag.png" class="article-sticker-ico"></WebImage>
  75. <Label text="{{article.category}}" class="article-sticker-text"></Label>
  76. </StackLayout>
  77. <StackLayout class="article-stickers" flexGrow="1" orientation="horizontal">
  78. <WebImage src="~/assets/article_stickers/text.png" class="article-stickers-image" *ngIf="article.sticker_text==true"></WebImage>
  79. <WebImage src="~/assets/article_stickers/video.png" class="article-stickers-image" *ngIf="article.sticker_video==true"></WebImage>
  80. <WebImage src="~/assets/article_stickers/photo.png" class="article-stickers-image" *ngIf="article.sticker_photogallery==true"></WebImage>
  81. </StackLayout>
  82. </FlexboxLayout>
  83. </StackLayout>
  84. <StackLayout class="article-heading">
  85. <Label text="{{article.heading}}" class="article-heading-text" textWrap="true"></Label>
  86. </StackLayout>
  87. </StackLayout>
  88. <StackLayout *ngIf="i==330">
  89. <StackLayout class="banner" *ngFor="let banner of banners">
  90. <WebImage src="{{banner.image}}" stretch="aspectFit" width="100%" class="banner-image" (tap)="open_url(banner.url)"></WebImage>
  91. </StackLayout>
  92. </StackLayout>
  93. </StackLayout>
  94. </StackLayout>
  95.  
  96.  
  97. <StackLayout class="load-more-button">
  98. <Button class="btn btn-primary" text="Načítať ďalšie" (tap)="load_more_articles()" *ngIf="loading_more_articles==false"></Button>
  99. <LoadingSmall *ngIf="loading_more_articles==true"></LoadingSmall>
  100. </StackLayout>
  101.  
  102. </StackLayout>
  103. </StackLayout>
  104. </ScrollView>
  105. </PullToRefresh>
  106. </StackLayout>
  107. </StackLayout>
  108.  
  109. <Loading *ngIf="loading==true && network_error==false"></Loading>
  110. <StackLayout height="100%" (tap)="check_connection()" *ngIf="network_error==true">
  111. <NetworkError></NetworkError>
  112. </StackLayout>
  113. <Tabs></Tabs>
  114.  
  115. </GridLayout>
  116.  
  117. </RadSideDrawer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement