From e6648d1830152b17c52796ec090cab14a1063bb2 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 23 May 2024 15:09:59 +0800 Subject: [PATCH] new --- config/locales/zh-CN.yml | 9 ++++ .../infowindow-icons/infowindow-url.tpl | 11 +++++ .../infowindow-icons/infowindow-video.tpl | 11 +++++ .../infowindow_header_with_url.jst.mustache | 36 +++++++++++++++ .../infowindow_header_with_video.jst.mustache | 40 ++++++++++++++++ .../ infowindow_header_with_url.jst.mustache | 38 +++++++++++++++ .../infowindow_header_with_video.jst.mustache | 38 +++++++++++++++ .../infowindow_header_with_url.jst.mustache | 46 +++++++++++++++++++ .../infowindow_header_with_video.jst.mustache | 46 +++++++++++++++++++ 9 files changed, 275 insertions(+) create mode 100644 config/locales/zh-CN.yml create mode 100644 lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-url.tpl create mode 100644 lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-video.tpl create mode 100644 lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_url.jst.mustache create mode 100644 lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_video.jst.mustache create mode 100644 lib/assets/javascripts/builder/mustache-templates/infowindows_custom/ infowindow_header_with_url.jst.mustache create mode 100644 lib/assets/javascripts/builder/mustache-templates/infowindows_custom/infowindow_header_with_video.jst.mustache create mode 100644 lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_url.jst.mustache create mode 100644 lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_video.jst.mustache diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml new file mode 100644 index 0000000..591c3d9 --- /dev/null +++ b/config/locales/zh-CN.yml @@ -0,0 +1,9 @@ +# Sample localization file for English. Add more files in this directory for other locales. +# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. + +zh-CN: + user_mailer: + ask_for_invitation: + subject: 'Thanks for signing up for cartodb beta' + invitation_sent: + subject: 'Thanks for signing up for cartodb beta' diff --git a/lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-url.tpl b/lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-url.tpl new file mode 100644 index 0000000..9dc53fe --- /dev/null +++ b/lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-url.tpl @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-video.tpl b/lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-video.tpl new file mode 100644 index 0000000..9dc53fe --- /dev/null +++ b/lib/assets/javascripts/builder/editor/layers/layer-content-views/infowindow/infowindow-icons/infowindow-video.tpl @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_url.jst.mustache b/lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_url.jst.mustache new file mode 100644 index 0000000..84d5843 --- /dev/null +++ b/lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_url.jst.mustache @@ -0,0 +1,36 @@ +
+
+
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields.1}} + {{#value}} +

+ {{{ value }}} +

+ {{/value}} + {{/content.fields.1}} +
+ + +
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields}} + {{#index}} +
+ {{#title}}
{{title}}
{{/title}} + {{#value}}

{{{ value }}}

{{/value}} + {{^value}}

null

{{/value}} +
+ {{/index}} + {{/content.fields}} +
+
+
+
+
+
+
diff --git a/lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_video.jst.mustache b/lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_video.jst.mustache new file mode 100644 index 0000000..50b130b --- /dev/null +++ b/lib/assets/javascripts/builder/mustache-templates/infowindows/infowindow_header_with_video.jst.mustache @@ -0,0 +1,40 @@ +
+
+
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields.1}} + {{#value}} +

+ {{{ value }}} +

+ {{/value}} + {{/content.fields.1}} +
+
+ +
+
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields}} + {{#index}} +
+ {{#title}}
{{title}}
{{/title}} + {{#value}}

{{{ value }}}

{{/value}} + {{^value}}

null

{{/value}} +
+ {{/index}} + {{/content.fields}} +
+
+
+
+
+
+
diff --git a/lib/assets/javascripts/builder/mustache-templates/infowindows_custom/ infowindow_header_with_url.jst.mustache b/lib/assets/javascripts/builder/mustache-templates/infowindows_custom/ infowindow_header_with_url.jst.mustache new file mode 100644 index 0000000..38dd10f --- /dev/null +++ b/lib/assets/javascripts/builder/mustache-templates/infowindows_custom/ infowindow_header_with_url.jst.mustache @@ -0,0 +1,38 @@ +
+
+
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields.1}} +

+ {{=<% %>=}}{{<%={{ }}=%>{{{ name }}}{{=<% %>=}}}}<%={{ }}=%> +

+ {{/content.fields.1}} +
+
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields}} + {{#position}} +
+ {{#title}} + {{#alternative_name}} +
{{{alternative_name}}}
+ {{/alternative_name}} + {{^alternative_name}} +
{{{name}}}
+ {{/alternative_name}} + {{/title}} +

{{=<% %>=}}{{<%={{ }}=%>{{{ name }}}{{=<% %>=}}}}<%={{ }}=%>

+
+ {{/position}} + {{/content.fields}} +
+
+
+
+
+
+
diff --git a/lib/assets/javascripts/builder/mustache-templates/infowindows_custom/infowindow_header_with_video.jst.mustache b/lib/assets/javascripts/builder/mustache-templates/infowindows_custom/infowindow_header_with_video.jst.mustache new file mode 100644 index 0000000..38dd10f --- /dev/null +++ b/lib/assets/javascripts/builder/mustache-templates/infowindows_custom/infowindow_header_with_video.jst.mustache @@ -0,0 +1,38 @@ +
+
+
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields.1}} +

+ {{=<% %>=}}{{<%={{ }}=%>{{{ name }}}{{=<% %>=}}}}<%={{ }}=%> +

+ {{/content.fields.1}} +
+
+
+ {{#loading}}
{{/loading}} +
+ {{#content.fields}} + {{#position}} +
+ {{#title}} + {{#alternative_name}} +
{{{alternative_name}}}
+ {{/alternative_name}} + {{^alternative_name}} +
{{{name}}}
+ {{/alternative_name}} + {{/title}} +

{{=<% %>=}}{{<%={{ }}=%>{{{ name }}}{{=<% %>=}}}}<%={{ }}=%>

+
+ {{/position}} + {{/content.fields}} +
+
+
+
+
+
+
diff --git a/lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_url.jst.mustache b/lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_url.jst.mustache new file mode 100644 index 0000000..ee443fd --- /dev/null +++ b/lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_url.jst.mustache @@ -0,0 +1,46 @@ +
+ x +
+
+
+ + {{#content.fields}} + {{#index}} + {{#value}} +

{{{ value }}}

+ {{/value}} + {{^value}} +

null

+ {{/value}} + {{/index}} + {{^index}} + {{^value}} +

null

+ {{/value}} + + {{/index}} + {{/content.fields}} + +
+
+
+ +
+
+ {{#content.fields}} +
+ {{#index}} + {{#title}}

{{title}}

{{/title}} + {{#value}} +

{{{ value }}}

+ {{/value}} + {{^value}} +

null

+ {{/value}} + {{/index}} +
+ {{/content.fields}} +
+
+
+
diff --git a/lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_video.jst.mustache b/lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_video.jst.mustache new file mode 100644 index 0000000..ee443fd --- /dev/null +++ b/lib/assets/javascripts/cartodb/table/views/infowindow/templates/infowindow_header_with_video.jst.mustache @@ -0,0 +1,46 @@ +
+ x +
+
+
+ + {{#content.fields}} + {{#index}} + {{#value}} +

{{{ value }}}

+ {{/value}} + {{^value}} +

null

+ {{/value}} + {{/index}} + {{^index}} + {{^value}} +

null

+ {{/value}} + + {{/index}} + {{/content.fields}} + +
+
+
+ +
+
+ {{#content.fields}} +
+ {{#index}} + {{#title}}

{{title}}

{{/title}} + {{#value}} +

{{{ value }}}

+ {{/value}} + {{^value}} +

null

+ {{/value}} + {{/index}} +
+ {{/content.fields}} +
+
+
+