isSingleItem: false,
markListItemAsActive: false,
renderAsButton: true,
+ summaryPrepend: true,
+ summaryUseIcon: true,
// permissions
canDislike: false,
buttonAppendToSelector: '',
buttonBeforeSelector: '.messageFooterButtons > .toTopLink',
containerSelector: '',
- summarySelector: '.messageFooterNotes'
+ summarySelector: '.messageFooterGroup'
}, options);
this.initContainers(options, objectType);
_buildWidget: function(element, elementData) {
// build summary
if (this._options.canViewSummary) {
- var summary, summaryContainer = elBySel(this._options.summarySelector, element), summaryContent;
+ var summary, summaryContainer = elBySel(this._options.summarySelector, element), summaryContent, summaryIcon;
if (summaryContainer !== null) {
- summary = elCreate('p');
+ summary = elCreate('div');
summary.className = 'likesSummary';
+ if (this._options.summaryUseIcon) {
+ summaryIcon = elCreate('span');
+ summaryIcon.className = 'icon icon16 fa-thumbs-o-up';
+ summary.appendChild(summaryIcon);
+ }
+
summaryContent = elCreate('span');
+ summaryContent.className = 'likesSummaryContent';
summaryContent.addEventListener('click', this._showSummary.bind(this, element));
summary.appendChild(summaryContent);
- summaryContainer.appendChild(summary);
+ if (this._options.summaryPrepend) {
+ DomUtil.prepend(summary, summaryContainer);
+ }
+ else {
+ summaryContainer.appendChild(summary);
+ }
+
elementData.summary = summaryContent;
this._updateSummary(element);
/* content */
.messageContent {
display: flex;
- flex: 1 auto;
+ flex: auto;
flex-direction: column;
margin-left: 30px;
/* content - body */
.messageBody {
- flex: 1 1 auto;
+ flex: auto;
&.editor {
align-items: center;
}
> .editorContainer {
- flex: 1 auto;
+ flex: auto;
}
}
}
margin-top: 20px;
}
-.messageFooterNote,
-.messageFooterNotes > .likesSummary {
+.messageFooterNote {
border-left: 5px solid $wcfContentBorderInner;
color: $wcfContentDimmedText;
+ margin-top: 10px;
padding: 5px 10px;
@extend .wcfFontSmall;
- &:not(:first-child) {
- margin-top: 10px;
- }
-
a {
color: $wcfContentDimmedLink;
}
}
+.messageFooterGroup {
+ align-items: center;
+ display: flex;
+ flex-wrap: wrap;
+ margin-top: 10px;
+
+ > .likesSummary {
+ color: $wcfContentDimmedText;
+ cursor: pointer;
+ flex: 0 0 auto;
+
+ @extend .wcfFontSmall;
+
+ > .icon {
+ color: $wcfContentDimmedText;
+ margin-right: 5px;
+ }
+ }
+
+ > .messageFooterButtons {
+ flex: auto;
+ }
+}
+
.messageSignature {
border-top: 1px solid rgb(238, 238, 238);
opacity: .6;