File tree Expand file tree Collapse file tree 6 files changed +80
-6
lines changed
web/profiles/custom/os2loop Expand file tree Collapse file tree 6 files changed +80
-6
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,16 @@ function os2loop_messages_preprocess_field(&$variables) {
6464 $derivative_id = $views_block->getDerivativeId();
6565 $derivative_id_exploded = explode('-', $derivative_id);
6666
67- if ($derivative_id_exploded[0] === 'os2loop_messages') {
68- $view = Views::getView($derivative_id_exploded[0]);
69- $view->execute($derivative_id_exploded[1]);
67+ $base_view_id = $derivative_id_exploded[0];
7068
71- $variables['total_rows'] = (string) count($view->result);
69+ switch ($base_view_id) {
70+ case 'os2loop_messages':
71+ case 'os2loop_section_page_user_favourites':
72+ $view = Views::getView($base_view_id);
73+ $view->execute($derivative_id_exploded[1]);
74+
75+ $variables['total_rows'] = (string) count($view->result);
76+ break;
7277 }
7378 }
7479}
Original file line number Diff line number Diff line change 5252@import " pages/user-replies.scss" ;
5353@import " pages/user-messages.scss" ;
5454@import " pages/user-edit.scss" ;
55+ @import " pages/user-favourites.scss" ;
Original file line number Diff line number Diff line change @@ -31,4 +31,49 @@ $taxonomy-colors: (
3131 .os2loop-highlighted-container {
3232 @extend .block-primary-light-green ;
3333 }
34+
35+ table .paragraph--type--os2loop-documents-table ,
36+ table .loop-documents-table {
37+ @extend .w-100 ;
38+
39+ border-collapse : separate ;
40+ border-spacing : 0 ;
41+
42+ tr th ,
43+ tr td {
44+ border-right : 1px solid $gray-500 ;
45+ border-bottom : 1px solid $gray-500 ;
46+ padding : 12px 20px ;
47+ }
48+
49+ tr th :first-child ,
50+ tr td :first-child {
51+ border-left : 1px solid $gray-500 ;
52+ }
53+
54+ tr th {
55+ background : $gray-200 ;
56+ border-top : 1px solid $gray-500 ;
57+ }
58+
59+ // top-left border-radius
60+ tr :first-child th :first-child {
61+ border-top-left-radius : $border-radius-sm ;
62+ }
63+
64+ // top-right border-radius
65+ tr :first-child th :last-child {
66+ border-top-right-radius : $border-radius-sm ;
67+ }
68+
69+ // bottom-left border-radius
70+ tr :last-child td :first-child {
71+ border-bottom-left-radius : $border-radius-sm ;
72+ }
73+
74+ // bottom-right border-radius
75+ tr :last-child td :last-child {
76+ border-bottom-right-radius : $border-radius-sm ;
77+ }
78+ }
3479}
Original file line number Diff line number Diff line change 44 .image-widget {
55 @extend .d-none ;
66 }
7+
8+ div #edit-actions {
9+ input + input {
10+ @extend .mt-20 ;
11+ }
12+ }
713}
Original file line number Diff line number Diff line change 1+ .paragraph.paragraph--type--os2loop-section-page-views-refer--views-blockos2loop-section-page-user-favourites-block-1 {
2+ .os2loop-section-page-view-header {
3+ @extend .d-inline-flex , .align-items-center ;
4+
5+ .total-row-count {
6+ @extend .rounded-circle , .ml-20 ;
7+
8+ width : 25px ;
9+ height : 25px ;
10+
11+ background-color : $gray-500 ;
12+ color : $loop-white ;
13+
14+ text-align : center ;
15+ }
16+ }
17+ }
Original file line number Diff line number Diff line change 4242<div class =" {{ field_name | clean_class }} mb-20" >
4343 {% for item in items %}
4444 <h3 {{ attributes.addClass (' mb-0' ) }}>
45- {{ item .content }}
45+ {{- item .content - }}
4646 </h3 >
4747 {% endfor %}
4848 {% if total_rows %}
4949 <div class =" total-row-count" >
50- {{ total_rows }}
50+ {{- total_rows - }}
5151 </div >
5252 {% endif %}
5353</div >
You can’t perform that action at this time.
0 commit comments