|
27 | 27 |
|
28 | 28 | <!-- Ongoing challenges tab content --> |
29 | 29 | <div class="challenges-container" ng-if="hostedChallenges.currentTab === 'ongoing'"> |
30 | | - <div ng-if="!hostedChallenges.ongoingChallenges.length" class="card-content"> |
| 30 | + <div ng-if="!hostedChallenges.ongoingChallenges.length" class="hosted-challenge-card-content"> |
31 | 31 | <p>You haven't hosted any ongoing challenge. Please <a ui-sref="web.challenge-host-teams" class="highlight-link">click here</a> to host one!</p> |
32 | 32 | </div> |
33 | 33 | <div class="row" ng-if="hostedChallenges.ongoingChallenges.length"> |
34 | 34 | <div class="col s12 m3" ng-repeat="challenge in hostedChallenges.ongoingChallenges"> |
35 | 35 | <a class="ev-card-hover" ui-sref="web.challenge-main.challenge-page({challengeId:challenge.id})"> |
36 | | - <div class="card ev-card-panel ev-challenge-card ev-card-hover"> |
| 36 | + <div class="card ev-card-panel ev-challenge-card1 ev-card-hover"> |
37 | 37 | <div class="card-image ev-card-image"> |
38 | 38 | <img class="bg-img" ng-src="{{challenge.image}}"> |
39 | 39 | <span class=" ev-card-title fs-14"><span><img ng-src="{{challenge.image}}" ></span>{{challenge.title}}</span> |
40 | 40 | </div> |
41 | | - <div class="card-content"> |
42 | | - <li ng-repeat="tags in challenge.list_tags" class="list-inline-item chip orange white-text tag-size">{{tags}}</li> |
| 41 | + <div class="hosted-challenge-card-content"> |
| 42 | + <li ng-repeat="tags in challenge.list_tags | limitTo: 1" class="list-inline-item chip orange white-text tag-size"> |
| 43 | + {{tags | limitTo: 12}}{{tags.length > 12 ? '...' : ''}} |
| 44 | + </li> |
43 | 45 | <li ng-if="challenge.domain" class="list-inline-item chip light-blue white-text">{{challenge.domain}}</li> |
44 | 46 | <p><strong class="text-light-black fs-12">Organized by</strong> |
45 | 47 | <strong>{{challenge.creator.team_name}}</strong></p> |
46 | 48 | <p><strong class="text-light-black fs-12">Starts on</strong> |
47 | | - <br> <strong>{{challenge.start_date | date:'medium'}} {{challenge.time_zone}} ({{challenge.gmt_zone}})</strong></p> |
| 49 | + <br> <strong>{{challenge.start_date | date:'medium'}} {{challenge.time_zone}}</strong></p> |
48 | 50 | <p><strong class="text-light-black fs-12">Ends on</strong> |
49 | | - <br> <strong>{{challenge.end_date | date:'medium'}} {{challenge.time_zone}} ({{challenge.gmt_zone}})</strong></p> |
| 51 | + <br> <strong>{{challenge.end_date | date:'medium'}} {{challenge.time_zone}}</strong></p> |
50 | 52 | <div class="margin-top-btm"> |
51 | 53 | <span ng-if="challenge.approved_by_admin"> |
52 | 54 | <div class="chip green white-text">Approved</div> |
|
71 | 73 |
|
72 | 74 | <!-- Upcoming challenges tab content --> |
73 | 75 | <div class="challenges-container" ng-if="hostedChallenges.currentTab === 'upcoming'"> |
74 | | - <div ng-if="!hostedChallenges.upcomingChallenges.length" class="card-content"> |
| 76 | + <div ng-if="!hostedChallenges.upcomingChallenges.length" class="hosted-challenge-card-content"> |
75 | 77 | <p>You haven't hosted any upcoming challenge. Please <a ui-sref="web.challenge-host-teams" class="highlight-link">click here</a> to host one!</p> |
76 | 78 | </div> |
77 | 79 | <div class="row" ng-if="hostedChallenges.upcomingChallenges.length"> |
78 | 80 | <div class="col s12 m3" ng-repeat="challenge in hostedChallenges.upcomingChallenges"> |
79 | 81 | <a class="ev-card-hover" ui-sref="web.challenge-main.challenge-page({challengeId:challenge.id})"> |
80 | | - <div class="card ev-card-panel ev-challenge-card ev-card-hover"> |
| 82 | + <div class="card ev-card-panel ev-challenge-card1 ev-card-hover"> |
81 | 83 | <div class="card-image ev-card-image"> |
82 | 84 | <img class="bg-img" ng-src="{{challenge.image}}"> |
83 | 85 | <span class=" ev-card-title fs-14"><span><img ng-src="{{challenge.image}}" ></span>{{challenge.title}}</span> |
84 | 86 | </div> |
85 | | - <div class="card-content"> |
86 | | - <li ng-repeat="tags in challenge.list_tags" class="list-inline-item chip orange white-text tag-size">{{tags}}</li> |
| 87 | + <div class="hosted-challenge-card-content"> |
| 88 | + <li ng-repeat="tags in challenge.list_tags | limitTo: 1" class="list-inline-item chip orange white-text tag-size"> |
| 89 | + {{tags | limitTo: 12}}{{tags.length > 12 ? '...' : ''}} |
| 90 | + </li> |
87 | 91 | <li ng-if="challenge.domain" class="list-inline-item chip light-blue white-text">{{challenge.domain}}</li> |
88 | 92 | <p><strong class="text-light-black fs-12">Organized by</strong> |
89 | 93 | <strong>{{challenge.creator.team_name}}</strong></p> |
90 | 94 | <p><strong class="text-light-black fs-12">Starts on</strong> |
91 | | - <br> <strong>{{challenge.start_date | date:'medium'}} {{challenge.time_zone}} ({{challenge.gmt_zone}})</strong></p> |
| 95 | + <br> <strong>{{challenge.start_date | date:'medium'}} {{challenge.time_zone}}</strong></p> |
92 | 96 | <p><strong class="text-light-black fs-12">Ends on</strong> |
93 | | - <br> <strong>{{challenge.end_date | date:'medium'}} {{challenge.time_zone}} ({{challenge.gmt_zone}})</strong></p> |
| 97 | + <br> <strong>{{challenge.end_date | date:'medium'}} {{challenge.time_zone}}</strong></p> |
94 | 98 | <div class="margin-top-btm"> |
95 | 99 | <span ng-if="challenge.approved_by_admin"> |
96 | 100 | <div class="chip green white-text">Approved</div> |
|
115 | 119 |
|
116 | 120 | <!-- Past challenges tab content --> |
117 | 121 | <div class="challenges-container" ng-if="hostedChallenges.currentTab === 'past'"> |
118 | | - <div ng-if="!hostedChallenges.pastChallenges.length" class="card-content"> |
| 122 | + <div ng-if="!hostedChallenges.pastChallenges.length" class="hosted-challenge-card-content"> |
119 | 123 | <p>You haven't hosted any past challenge.</p> |
120 | 124 | </div> |
121 | 125 | <div class="row" ng-if="hostedChallenges.pastChallenges.length"> |
122 | 126 | <div class="col s12 m3" ng-repeat="challenge in hostedChallenges.pastChallenges"> |
123 | 127 | <a class="ev-card-hover" ui-sref="web.challenge-main.challenge-page({challengeId:challenge.id})"> |
124 | | - <div class="card ev-card-panel ev-challenge-card ev-card-hover"> |
| 128 | + <div class="card ev-card-panel ev-challenge-card1 ev-card-hover"> |
125 | 129 | <div class="card-image ev-card-image"> |
126 | 130 | <img class="bg-img" ng-src="{{challenge.image}}"> |
127 | 131 | <span class=" ev-card-title fs-14"><span><img ng-src="{{challenge.image}}" ></span>{{challenge.title}}</span> |
128 | 132 | </div> |
129 | | - <div class="card-content"> |
130 | | - <li ng-repeat="tags in challenge.list_tags" class="list-inline-item chip orange white-text tag-size">{{tags}}</li> |
| 133 | + <div class="hosted-challenge-card-content"> |
| 134 | + <li ng-repeat="tags in challenge.list_tags | limitTo: 1" class="list-inline-item chip orange white-text tag-size"> |
| 135 | + {{tags | limitTo: 12}}{{tags.length > 12 ? '...' : ''}} |
| 136 | + </li> |
131 | 137 | <li ng-if="challenge.domain" class="list-inline-item chip light-blue white-text">{{challenge.domain}}</li> |
132 | 138 | <p><strong class="text-light-black fs-12">Organized by</strong> |
133 | 139 | <strong>{{challenge.creator.team_name}}</strong></p> |
134 | 140 | <p><strong class="text-light-black fs-12">Starts on</strong> |
135 | | - <br> <strong>{{challenge.start_date | date:'medium'}} {{challenge.time_zone}} ({{challenge.gmt_zone}})</strong></p> |
| 141 | + <br> <strong>{{challenge.start_date | date:'medium'}} {{challenge.time_zone}}</strong></p> |
136 | 142 | <p><strong class="text-light-black fs-12">Ends on</strong> |
137 | | - <br> <strong>{{challenge.end_date | date:'medium'}} {{challenge.time_zone}} ({{challenge.gmt_zone}})</strong></p> |
| 143 | + <br> <strong>{{challenge.end_date | date:'medium'}} {{challenge.time_zone}}</strong></p> |
138 | 144 | <div class="margin-top-btm"> |
139 | 145 | <span ng-if="challenge.approved_by_admin"> |
140 | 146 | <div class="chip green white-text">Approved</div> |
|
0 commit comments