Commit 303682d3 authored by Stefan Frei's avatar Stefan Frei

Merge branch '1300-show-interested' into 'dev'

Resolve "Course-List Frame: Show number of interested"

Closes #1300

See merge request Openki/Openki!1365
parents 8f35f26c 49adadd0
......@@ -11,9 +11,9 @@
h3 {
border-bottom: 1px solid $blue-lighter;
cursor: pointer;
font-size: 1.2em;
padding-bottom: 5px;
transition: border-color .15s;
font-size: 1.20em;
&:hover,
&.active {
......
......@@ -34,6 +34,10 @@
{{regionOf this}}
</span>
{{/if}}
<span class="frame-list-item-interested" title="{{mf 'frame.courseList.interestedPersons' 'Interested persons'}}">
<i class="fa fa-fw fa-user"></i>
{{interestedPersons}}
</span>
</h4>
{{#if expanded}}
<div class="frame-list-item-body">
......
......@@ -71,7 +71,10 @@ Template.frameCourselistCourse.helpers({
regionOf: course => Regions.findOne(course.region).name,
expanded: () => Template.instance().expanded.get(),
toggleIndicatorIcon() {
return Template.instance().expanded.get() ? 'minus' : 'plus';
return Template.instance().expanded.get() ? 'angle-up' : 'angle-down';
},
interestedPersons() {
return this.members.length;
},
});
......
......@@ -27,12 +27,17 @@
}
}
.frame-list-item-toggle-indicator {
.frame-list-item-toggle-indicator,
.frame-list-item-interested {
@include td-float(right);
font-size: small;
opacity: .6;
}
.frame-list-item-interested {
@include td-margin(right, 20px);
}
.frame-list-item-time {
@include td-margin(right, 10px);
font-weight: normal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment