undelete_index.mustache 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <% content_for :stylesheets do %>
  19. <style>
  20. #deleted_items_list {
  21. max-width: 600px;
  22. }
  23. #deleted_items_list li {
  24. padding: 5px;
  25. }
  26. #deleted_items_list li:hover {
  27. background-color: #eee;
  28. -moz-border-radius: 5px;
  29. }
  30. #deleted_items_list li .links {
  31. float: right;
  32. }
  33. #deleted_items_list li .name {
  34. font-weight: bold;
  35. font-side: 1.1em;
  36. }
  37. #deleted_items_list li .type {
  38. margin-left: 20px;
  39. font-style: italic;
  40. }
  41. #deleted_items_list li .details {
  42. font-size: 0.8em;
  43. margin: 5px 20px;
  44. }
  45. #deleted_items_list li .dates {
  46. font-size: 0.8em;
  47. margin: 5px 30px;
  48. font-style: italic;
  49. }
  50. #deleted_items_list li .dates td {
  51. padding-right: 5px;
  52. }
  53. </style>
  54. <% end %>
  55. <h2>{{#t}}Restore Deleted Items{{/t}}</h2>
  56. {{#t}}Keep in mind that some items may have lost some of their associated data when they were deleted. Make sure you confirm the results of any restores you perform.{{/t}}
  57. <ul id="deleted_items_list" class="unstyled_list">
  58. {{> views/deleted_item}}
  59. </ul>
  60. <% js_bundle 'legacy/context_undelete_item' %>