Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/publicshareauth.scss4
-rw-r--r--js/views/templates.js18
-rw-r--r--js/views/templates/chatview_add_comment.handlebars2
3 files changed, 16 insertions, 8 deletions
diff --git a/css/publicshareauth.scss b/css/publicshareauth.scss
index 84e3294c3..a79bdeffb 100644
--- a/css/publicshareauth.scss
+++ b/css/publicshareauth.scss
@@ -216,6 +216,10 @@ input#request-password-button:disabled ~ .icon {
margin-top: 0;
}
+#talk-sidebar #chatView .newCommentForm.with-add-button {
+ /* Make room to show the "Add" button if needed. */
+ margin-right: 44px;
+}
/* Unset conflicting rules from guest.css for the sidebar */
#talk-sidebar {
diff --git a/js/views/templates.js b/js/views/templates.js
index 3d34da7ee..930e96c31 100644
--- a/js/views/templates.js
+++ b/js/views/templates.js
@@ -55,12 +55,14 @@ templates['chatview_add_comment'] = template({"1":function(container,depth0,help
},"3":function(container,depth0,helpers,partials,data) {
return " <div class=\"guest-name\"></div>\n";
},"5":function(container,depth0,helpers,partials,data) {
- return "false";
+ return " with-add-button";
},"7":function(container,depth0,helpers,partials,data) {
- return "true";
+ return "false";
},"9":function(container,depth0,helpers,partials,data) {
- return "disabled=\"\"";
+ return "true";
},"11":function(container,depth0,helpers,partials,data) {
+ return "disabled=\"\"";
+},"13":function(container,depth0,helpers,partials,data) {
var helper;
return " <button class=\"share icon-add has-tooltip\" title=\""
@@ -73,18 +75,20 @@ templates['chatview_add_comment'] = template({"1":function(container,depth0,help
+ alias4(((helper = (helper = helpers.actorId || (depth0 != null ? depth0.actorId : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"actorId","hash":{},"data":data}) : helper)))
+ "\"></div>\n"
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.actorId : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
- + " </div>\n <form class=\"newCommentForm\">\n <div contentEditable=\""
- + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isReadOnly : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.program(7, data, 0),"data":data})) != null ? stack1 : "")
+ + " </div>\n <form class=\"newCommentForm"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.canShare : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "\">\n <div contentEditable=\""
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isReadOnly : depth0),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.program(9, data, 0),"data":data})) != null ? stack1 : "")
+ "\" class=\"message\" data-placeholder=\""
+ alias4(((helper = (helper = helpers.newMessagePlaceholder || (depth0 != null ? depth0.newMessagePlaceholder : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"newMessagePlaceholder","hash":{},"data":data}) : helper)))
+ "\">"
+ alias4(((helper = (helper = helpers.message || (depth0 != null ? depth0.message : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"message","hash":{},"data":data}) : helper)))
+ "</div>\n <input class=\"submit icon-confirm has-tooltip\" type=\"submit\" "
- + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isReadOnly : depth0),{"name":"if","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isReadOnly : depth0),{"name":"if","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " value=\"\" title=\""
+ alias4(((helper = (helper = helpers.submitText || (depth0 != null ? depth0.submitText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"submitText","hash":{},"data":data}) : helper)))
+ "\"/>\n <div class=\"submitLoading icon-loading-small hidden\"></div>\n"
- + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.canShare : depth0),{"name":"if","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.canShare : depth0),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " </form>\n</div>\n";
},"useData":true});
templates['chatview_comment'] = template({"1":function(container,depth0,helpers,partials,data) {
diff --git a/js/views/templates/chatview_add_comment.handlebars b/js/views/templates/chatview_add_comment.handlebars
index f45eb204f..62f6d3d42 100644
--- a/js/views/templates/chatview_add_comment.handlebars
+++ b/js/views/templates/chatview_add_comment.handlebars
@@ -7,7 +7,7 @@
<div class="guest-name"></div>
{{/if}}
</div>
- <form class="newCommentForm">
+ <form class="newCommentForm{{#if canShare}} with-add-button{{/if}}">
<div contentEditable="{{#if isReadOnly}}false{{else}}true{{/if}}" class="message" data-placeholder="{{newMessagePlaceholder}}">{{message}}</div>
<input class="submit icon-confirm has-tooltip" type="submit" {{#if isReadOnly}}disabled=""{{/if}} value="" title="{{submitText}}"/>
<div class="submitLoading icon-loading-small hidden"></div>