etherpad_settings.mustache 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%
  2. # Copyright (C) 2011 - present Instructure, Inc.
  3. #
  4. # This file is part of Canvas.
  5. #
  6. # Canvas is free software: you can redistribute it and/or modify it under
  7. # the terms of the GNU Affero General Public License as published by the Free
  8. # Software Foundation, version 3 of the License.
  9. #
  10. # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
  11. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License along
  16. # with this program. If not, see <http://www.gnu.org/licenses/>.
  17. %>
  18. <%= fields_for :settings, OpenObject.new(settings) do |f| %>
  19. <table style="width: 500px;" class="formtable">
  20. <tr>
  21. <td colspan="2">
  22. <p><%= t(:description, <<-TEXT)
  23. EtherPad is now an open source project. There are a number of public
  24. hosted instances of EtherPad that you can use if you'd like. These
  25. include:
  26. TEXT
  27. %></p>
  28. <ul>
  29. <li><a href="http://piratepad.net/">{{#t}}Pirate Pad{{/t}}</a></li>
  30. <li><a href="http://primarypad.com/">{{#t}}Primary Pad{{/t}}</a></li>
  31. <li><a href="http://sketchpad.cc/">{{#t}}SketchPad{{/t}}</a></li>
  32. <li><a href="http://www.edupad.ch/">{{#t}}eduPad{{/t}}</a></li>
  33. <li><a href="http://typewith.me/">{{#t}}TypeWith.me{{/t}}</a></li>
  34. </ul>
  35. <p><%= mt(:host_your_own, "Or you can always [set up your own EtherPad site](%{etherpad_url}).", :etherpad_url => 'http://etherpad.org/') %></p>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td><%= f.blabel :domain, :en => "Domain" %></td>
  40. <td>
  41. <%= f.text_field :domain %>
  42. <div class="hint">{{#t}}Don't include the \"http://\" part or any slashes{{/t}}
  43. </td>
  44. </tr>
  45. <tr>
  46. <td><%= f.blabel :name, :en => "Name" %></td>
  47. <td>
  48. <%= f.text_field :name %>
  49. </td>
  50. </tr>
  51. </table>
  52. <% end %>