зеркало из https://github.com/nextcloud/spreed.git
Use the new Namespace
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
6cd02c8ede
Коммит
0106bd1e02
|
@ -5,4 +5,4 @@ export PATH=./node_modules/.bin/:$PATH
|
|||
|
||||
handlebars -n OCA.VideoCalls.Admin.Templates js/admin/templates/ -f js/admin/templates.js
|
||||
|
||||
handlebars -n OCA.SpreedMe.Views.Templates js/views/templates/ -f js/views/templates.js
|
||||
handlebars -n OCA.Talk.Views.Templates js/views/templates/ -f js/views/templates.js
|
||||
|
|
|
@ -162,10 +162,10 @@
|
|||
},
|
||||
|
||||
template: function(context) {
|
||||
// OCA.SpreedMe.Views.Templates may not have been initialized when
|
||||
// OCA.Talk.Views.Templates may not have been initialized when
|
||||
// this view is initialized, so the template can not be directly
|
||||
// assigned.
|
||||
return OCA.SpreedMe.Views.Templates['chatview'](context);
|
||||
return OCA.Talk.Views.Templates['chatview'](context);
|
||||
},
|
||||
templateContext: {
|
||||
emptyResultLabel: t('spreed', 'No messages yet, start the conversation!')
|
||||
|
@ -173,7 +173,7 @@
|
|||
|
||||
addCommentTemplate: function(params) {
|
||||
if (!this._addCommentTemplate) {
|
||||
this._addCommentTemplate = OCA.SpreedMe.Views.Templates['chatview_add_comment'];
|
||||
this._addCommentTemplate = OCA.Talk.Views.Templates['chatview_add_comment'];
|
||||
}
|
||||
|
||||
return this._addCommentTemplate(_.extend({
|
||||
|
@ -187,7 +187,7 @@
|
|||
|
||||
commentTemplate: function(params) {
|
||||
if (!this._commentTemplate) {
|
||||
this._commentTemplate = OCA.SpreedMe.Views.Templates['chatview_comment'];
|
||||
this._commentTemplate = OCA.Talk.Views.Templates['chatview_comment'];
|
||||
}
|
||||
|
||||
params = _.extend({
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
switch (parameter.type) {
|
||||
case 'user':
|
||||
if (!this.userLocalTemplate) {
|
||||
this.userLocalTemplate = OCA.SpreedMe.Views.Templates['richobjectstringparser_userlocal'];
|
||||
this.userLocalTemplate = OCA.Talk.Views.Templates['richobjectstringparser_userlocal'];
|
||||
}
|
||||
if (!parameter.name) {
|
||||
parameter.name = parameter.id;
|
||||
|
@ -61,20 +61,20 @@
|
|||
|
||||
case 'file':
|
||||
if (!this.filePreviewTemplate) {
|
||||
this.filePreviewTemplate = OCA.SpreedMe.Views.Templates['richobjectstringparser_filepreview'];
|
||||
this.filePreviewTemplate = OCA.Talk.Views.Templates['richobjectstringparser_filepreview'];
|
||||
}
|
||||
return this.filePreviewTemplate(parameter);
|
||||
|
||||
default:
|
||||
if (!_.isUndefined(parameter.link)) {
|
||||
if (!this.unknownLinkTemplate) {
|
||||
this.unknownLinkTemplate = OCA.SpreedMe.Views.Templates['richobjectstringparser_unknownlink'];
|
||||
this.unknownLinkTemplate = OCA.Talk.Views.Templates['richobjectstringparser_unknownlink'];
|
||||
}
|
||||
return this.unknownLinkTemplate(parameter);
|
||||
}
|
||||
|
||||
if (!this.unknownTemplate) {
|
||||
this.unknownTemplate = OCA.SpreedMe.Views.Templates['richobjectstringparser_unknown'];
|
||||
this.unknownTemplate = OCA.Talk.Views.Templates['richobjectstringparser_unknown'];
|
||||
}
|
||||
return this.unknownTemplate(parameter);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(function() {
|
||||
var template = Handlebars.template, templates = OCA.SpreedMe.Views.Templates = OCA.SpreedMe.Views.Templates || {};
|
||||
var template = Handlebars.template, templates = OCA.Talk.Views.Templates = OCA.Talk.Views.Templates || {};
|
||||
templates['chatview'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||
var helper;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче