mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
ruby: Naming/AccessorMethodName correct
This commit is contained in:
@ -102,7 +102,7 @@
|
||||
var onRequestInsertImage = function(event) {
|
||||
docEditor.insertImage({ // insert an image into the file
|
||||
"c": event.data.c,
|
||||
<%= raw @file.get_insert_image %>
|
||||
<%= raw @file.insert_image %>
|
||||
})
|
||||
};
|
||||
|
||||
@ -216,7 +216,7 @@
|
||||
|
||||
var сonnectEditor = function () {
|
||||
|
||||
config = <%= raw @file.get_config.to_json %>;
|
||||
config = <%= raw @file.config.to_json %>;
|
||||
|
||||
config.width = "100%";
|
||||
config.height = "100%";
|
||||
@ -234,8 +234,8 @@
|
||||
};
|
||||
|
||||
<%
|
||||
history = @file.get_history
|
||||
usersMentions = @file.get_users_mentions %>
|
||||
history = @file.history
|
||||
usersMentions = @file.users_mentions %>
|
||||
|
||||
if (config.editorConfig.user.id) {
|
||||
<% if history %>
|
||||
@ -262,7 +262,7 @@
|
||||
switch (c) {
|
||||
case "info":
|
||||
users = [];
|
||||
var allUsers = <%= raw @file.get_users_info.to_json %>;
|
||||
var allUsers = <%= raw @file.users_info.to_json %>;
|
||||
for (var i = 0; i < event.data.id.length; i++) {
|
||||
for (var j = 0; j < allUsers.length; j++) {
|
||||
if (allUsers[j].id == event.data.id[i]) {
|
||||
@ -276,7 +276,7 @@
|
||||
var users = <%= raw @file.get_users_protect.to_json %>;
|
||||
break;
|
||||
default:
|
||||
users = <%= raw @file.get_users_mentions.to_json %>;
|
||||
users = <%= raw @file.users_mentions.to_json %>;
|
||||
}
|
||||
docEditor.setUsers({
|
||||
"c": c,
|
||||
|
||||
@ -62,7 +62,7 @@
|
||||
<span class="select-user">Username</span>
|
||||
<img id="info" class="info" data-id="user" src="assets/info.svg" />
|
||||
<select class="select-user" id="user">
|
||||
<% for user in Users.get_all_users() do %>
|
||||
<% for user in Users.all_users() do %>
|
||||
<option value="<%= user.id %>"><%= user.name ? user.name : "Anonymous" %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
@ -110,7 +110,7 @@
|
||||
</span>
|
||||
<span class="portal-descr">Please do NOT use this integration example on your own server without proper code modifications, it is intended for testing purposes only. In case you enabled this test example, disable it before going for production.</span>
|
||||
<span class="portal-descr">You can open the same document using different users in different Web browser sessions, so you can check out multi-user editing functions.</span>
|
||||
<% for user in Users.get_all_users() do %>
|
||||
<% for user in Users.all_users() do %>
|
||||
<div class="user-descr">
|
||||
<b><%= user.name ? user.name : "Anonymous" %></b>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user