dashboard_sidebar.mustache 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <%
  2. # Copyright (C) 2013 - 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. <%# Customer-brandable dashboard right-sidebar logo %>
  19. <% if brand_variable("ic-brand-right-sidebar-logo") != "" %>
  20. <div class="ic-sidebar-logo">
  21. <%= image_tag(brand_variable("ic-brand-right-sidebar-logo"), :class => "ic-sidebar-logo__image", :alt => "Canvas by Instructure") %>
  22. </div>
  23. <% end %>
  24. <% if planner_enabled? %>
  25. <div class="Sidebar__TodoListContainer"></div>
  26. <% else %>
  27. {{> views/courses/to_do_list}}
  28. <% end %>
  29. <% locals = {
  30. :title => t('coming_up', "Coming Up"),
  31. :period => :one_week,
  32. :show_context => true,
  33. :upcoming => true
  34. }
  35. %>
  36. {{> views/shared/event_list}}
  37. <% if @show_recent_feedback %>
  38. {{> views/shared/event_list", :object => @recent_feedback, :locals => {:title => t('recent_feedback', "Recent Feedback}}
  39. <% end %>
  40. <div>
  41. <% if show_user_create_course_button(@current_user) %>
  42. <button type="button"
  43. id="start_new_course"
  44. class="element_toggler btn button-sidebar-wide"
  45. aria-controls="new_course_form">{{#t}}Start a New Course{{/t}}</button>
  46. {{> views/shared/new_course_form}}
  47. <% end %>
  48. <a href="<%= grades_path %>" class="Button button-sidebar-wide">
  49. {{#t}}View Grades{{/t}}
  50. </a>
  51. </div>