Skip to content

Commit

Permalink
(js) Show calendar names in events blocks
Browse files Browse the repository at this point in the history
Fixes #4713
  • Loading branch information
cgx committed Mar 27, 2019
1 parent f972684 commit 42dd956
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/Templates/SchedulerUI/UIxCalDayTable.wox
Expand Up @@ -14,7 +14,7 @@
</md-button>
</div>

<div layout="column" class="md-flex">
<div layout="column" class="md-flex allDaysView--container">
<!-- Display today abreviation and date -->
<div class="days dayLabels">
<var:foreach list="daysToDisplay" item="currentTableDay">
Expand Down
Expand Up @@ -50,7 +50,7 @@
' <span ng-show="'+p+'block.component.c_priority" class="sg-priority">{{'+p+'block.component.c_priority}}</span>',
// Summary
' {{ '+p+'block.component.summary }}',
' <div class="secondary md-truncate" ng-show="'+p+'showCalendarName" ng-bind="'+p+'block.component.calendarName"></div>',
// Icons
' <span class="icons">',
// Component is reccurent
' <md-icon ng-if="'+p+'block.component.occurrenceId" class="material-icons icon-repeat"></md-icon>',
Expand All @@ -65,6 +65,9 @@
' <div class="secondary" ng-if="'+p+'block.component.c_location">',
' <md-icon>place</md-icon> <span ng-bind="'+p+'block.component.c_location"></span>',
' </div>',
// Calendar name
' <div class="secondary md-truncate" ng-if="'+p+'showCalendarName"',
' ng-bind="'+p+'block.component.calendarName"></div>',
' </div>',
' </div>',
' <div class="ghostStartHour" ng-if="block.startHour">{{ block.startHour }}</div>',
Expand Down
3 changes: 3 additions & 0 deletions UI/WebServerResources/scss/views/SchedulerUI.scss
Expand Up @@ -122,6 +122,9 @@ $quarter_height: 10px;
}

// The all-day events appear in the shrinkable toolbar, bellow the days labels
.allDaysView--container {
overflow: hidden;
}
.allDaysView {
border-bottom: 1px solid sg-color($sogoPaper, 300);
max-height: $sg-font-size-4 * 6;
Expand Down

0 comments on commit 42dd956

Please sign in to comment.