index.mustache 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <%
  2. # Copyright (C) 2012 - 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. <% content_for :page_title do %><%= t :title, "Developer Keys" %><% end %>
  19. <% js_bundle :developer_keys %>
  20. <% css_bundle :developer_keys %>
  21. <div class="ic-Action-header">
  22. <div class="ic-Action-header__Primary">
  23. <h2 class="ic-Action-header__Heading"><%= t :developer_keys, "Developer Keys" %></h2>
  24. </div>
  25. <div class="ic-Action-header__Secondary">
  26. <button
  27. type="button"
  28. class="Button Button--primary add_key"
  29. title="<%= t :add_developer_key, "Add Developer Key" %>"
  30. aria-label="<%= t :add_developer_key, "Add Developer Key" %>"
  31. >
  32. <i class="icon-plus" aria-hidden="true"></i>&nbsp;
  33. {{#t}}Developer Key{{/t}}
  34. </button>
  35. </div>
  36. </div>
  37. <table id="keys" class="ic-Table">
  38. <thead>
  39. <tr>
  40. <th><%= t :name, "Name" %></th>
  41. <th><%= t :user, "User" %></th>
  42. <th><%= t :details, "Details" %></th>
  43. <th><%= t :stats, "Stats" %></th>
  44. <th><%= t :notes, "Notes" %></th>
  45. <th>&nbsp;</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. </tbody>
  50. </table>
  51. <div id="loading">
  52. <button class='btn show_all' type="button"><%= t :show_all, "Show All %{count} Keys", :count => @keys.total_entries %></button>
  53. <img src="/images/ajax-loader-medium-444.gif" class="loader">
  54. </div>
  55. <div id='edit_dialog' title='<%= t :key_settings, "Key Settings" %>'>
  56. </div>