forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_panda_pub_settings.html.erb
57 lines (55 loc) · 1.68 KB
/
_panda_pub_settings.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<%
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
%>
<%= fields_for :settings, OpenObject.new(settings) do |f| %>
<table style="width: 500px;" class="formtable">
<tr>
<td colspan="2">
<p><%= t(:description, <<-TEXT)
PandaPub is a pub/sub service which, when configured, allows
some parts of Canvas to receive notifications of events within
the browser, rather than polling for changes.
TEXT
%></p>
</td>
</tr>
<tr>
<td><%= f.blabel :base_url, :en => "Base URL" %></td>
<td>
<%= f.text_field :base_url %>
</td>
</tr>
<tr>
<td><%= f.blabel :application_id, :en => "Application Id" %></td>
<td>
<%= f.text_field :application_id %>
</td>
</tr>
<tr>
<td><%= f.blabel :key_id, :en => "Key ID" %></td>
<td>
<%= f.text_field :key_id %>
</td>
</tr>
<tr>
<td><%= f.blabel :key_secret, :en => "Key Secret" %></td>
<td>
<%= f.password_field :key_secret %>
</td>
</tr>
</table>
<% end %>