Skip to content

Commit ca78a51

Browse files
author
Yuri Tkachenko
committed
Страница группы #553
1 parent 5c95938 commit ca78a51

6 files changed

Lines changed: 79 additions & 34 deletions

File tree

docs/fontello.zip

1.44 KB
Binary file not shown.
Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
- var courses = [];
22
- var time = '2014-01-01T19:45'
3-
- var date = 'Начало занятий в <time datetime=' + time + '>' + moment(time).locale('ru').format('D MMMM YYYY в h:mm') + '</time>';
3+
- var date = 'Начало ' + moment(time).locale('ru').format('D MMM YYYY');
44

5-
- courses.push({ name: 'Посещение online курсов «Javascript, DOM, интерейсы»', start: date, isVerified: true });
6-
- courses.push({ name: 'Посещение online курсов «Javascript, DOM, интерейсы»', start: 'Курсы уже начались', isVerified: false });
7-
- courses.push({ name: 'Посещение online курсов «Javascript, DOM, интерейсы»', start: 'Курсы уже закончились', isVerified: true });
5+
- courses.push({ name: 'Посещение online курсов «Javascript, DOM, интерейсы»', start: date, schedule: 'Занятия каждый Пн/Чт<br>19:30 - 21:00 GMT+3 (Мск).', status: 'need-verify' });
6+
- courses.push({ name: 'Посещение online курсов «Javascript, DOM, интерейсы»', start: date, schedule: 'Занятия каждый Пн/Чт<br>19:30 - 21:00 GMT+3 (Мск).', status: 'verified' });
7+
- courses.push({ name: 'Посещение online курсов «Javascript, DOM, интерейсы»', start: date, schedule: 'Занятия каждый Пн/Чт<br>19:30 - 21:00 GMT+3 (Мск).', status: 'started' });
8+
- courses.push({ name: 'Посещение online курсов «Javascript, DOM, интерейсы»', start: date, schedule: 'Занятия каждый Пн/Чт<br>19:30 - 21:00 GMT+3 (Мск).', status: 'ended' });
89

910
+b.courses-table
1011
+e('table').table
@@ -14,17 +15,29 @@
1415

1516
+e('th').main
1617
+e('h3').title !{ course.name }
17-
+e.time !{ course.start }
18+
+e('a').info-link(href="/123") Описание курсов
19+
if course.status !== 'need-verify'
20+
+e('a').info-link(href="/123") Страница группы
21+
1822

1923
+e('td').info
20-
+e('a').info-link(href="/123") Описание курсов
21-
+e('a').info-link(href="/123") Стараница группы
24+
+e('strong').start !{ course.start }
25+
+e.schedule !{ course.schedule }
2226

2327
+e('td').verify
24-
if course.isVerified
25-
+e('span').verified Участие подтверждено
26-
else
28+
if course.status === 'verified'
29+
+e('span').status._verified Участие подтверждено
30+
31+
else if course.status === 'need-verify'
2732
+b('button').button._action
2833
+e('span').text Подтвердить участие
2934

35+
else if course.status === 'started'
36+
+e('span').status._started Занятия начались
37+
38+
else if course.status === 'ended'
39+
+e('span').status._ended Курсы завершены
40+
br
41+
+e('a').feedback(href="/123") Оставить отзыв
42+
3043

handlers/markup/templates/pages/profile-courses.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extends /layouts/main
33
block append variables
44
- var title = "Nazarkator";
55
- var layout_header_class = "main__header_center"
6-
- var layout_main_class = "main_width-limit"
6+
- var layout_main_class = "main_width-limit-wide"
77
- var sitetoolbar = true
88

99
- var profileTests = [];

styles/blocks/courses-table/courses-table.styl

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,38 @@
1717
& tr &__verify
1818
border-bottom 1px solid #e4e0d2
1919

20-
.main & tr&__line:last-child
20+
.main & tr&__line:last-child,
21+
.main & tr&__line:last-child &__info,
22+
.main & tr&__line:last-child &__verify
2123
border none
2224

2325
.main & th&__main,
2426
.main & td&__info,
2527
.main & td&__verify
2628
padding 25px 0
2729

30+
vertical-align top
31+
2832
& th&__main
2933
font-size 11px
3034
font-weight normal
3135

36+
width 40%
37+
3238
.main & th&__main
3339
padding-left 20px
3440
padding-right 10px
3541

36-
&__main time
37-
font-weight bold
42+
&__start,
43+
&__schedule
44+
font-size 14px
45+
line-height initial
3846

39-
white-space nowrap
47+
&__schedule
48+
margin-top 5px
4049

4150
& td&__info
42-
width 0.1%
43-
4451
vertical-align middle
45-
white-space nowrap
4652

4753
.main & td&__info
4854
padding-left 10px
@@ -52,48 +58,66 @@
5258
display inline-block
5359

5460
font-size 13px
55-
line-height 25px
56-
57-
text-decoration underline
61+
line-height initial
5862

59-
&__info-link:not(:last-child)
6063
padding-right 15px
64+
margin-right 15px
6165

66+
color #568DCA
6267
border-right 1px solid #e4e0d2
6368

6469
&__info-link:last-child
65-
padding-left 15px
70+
border-right none
71+
padding-right 0
72+
margin-right 0
6673

67-
& td&__verify
74+
75+
.main & td&__verify
6876
width 0.1%
77+
padding-right 60px
6978

7079
text-align left
7180
white-space nowrap
7281

73-
.main & td&__verify
74-
padding-right 20px
75-
7682
& h3&__title
7783
font 17px/17px secondary_font
78-
margin 5px 0 0 0
84+
margin 5px 0 10px 0
7985

80-
&__verified
86+
&__status
8187
font-weight bold
8288

89+
position relative
8390
display inline-block
8491

8592
line-height 25px
8693

87-
padding-left 16px
94+
padding-left 26px
8895

8996
white-space nowrap
9097

9198
color #469269
92-
border-left 1px solid #e4e0d2
9399

94-
&__verified:before
95-
@extend $font-ok
100+
&__status_ended
101+
color #999
96102

103+
&__status:before
97104
font-size 18px
98105

99-
margin-right 7px
106+
position absolute
107+
margin-left -26px
108+
109+
font-weight normal
110+
111+
&__status_verified:before
112+
@extend $font-ok
113+
114+
&__status_started:before
115+
@extend $font-back-in-time
116+
117+
&__status_ended:before
118+
@extend $font-flag
119+
120+
&__feedback
121+
margin-left 26px
122+
123+
color #568DCA

styles/blocks/font/font-icons.styl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,11 @@ $font-college-hat
265265
$font-star-label
266266
@extend $font-icon
267267
content '\E821'
268+
269+
$font-flag
270+
@extend $font-icon
271+
content '\E824'
272+
273+
$font-back-in-time
274+
@extend $font-icon
275+
content '\E825'

styles/blocks/font/icons.woff

196 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)