static_notices.mustache 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <%
  2. # Copyright (C) 2015 - 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. <noscript>
  19. <div role="alert" class="ic-flash-static ic-flash-error">
  20. <div class="ic-flash__icon" aria-hidden="true">
  21. <i class="icon-warning"></i>
  22. </div>
  23. <h1><%= t :javascript_required, "You need to have JavaScript enabled in order to access this site." %></h1>
  24. </div>
  25. </noscript>
  26. <% unless params[:previewing_from_themeeditor] || !session.has_key?(:brand_config_md5) %>
  27. <div role="alert" class="ic-flash-static ic-flash-info ic-flash--Theme-Editor">
  28. <% if params[:editing_brand_config] %>
  29. {{#t}}You're editing your Canvas Theme! The changes have not been applied yet.{{/t}}
  30. <% else %>
  31. <% current_account = ::Context.get_account(@context) || @domain_root_account %>
  32. <%= t do %>
  33. You're editing your Canvas Theme! Apply or cancel changes from within the
  34. <%= link_to "Theme Editor", account_theme_editor_path(current_account), target: "_top" %>.
  35. <% end %>
  36. <% if current_account.settings[:sub_account_includes] %>
  37. <br />
  38. <%= t "Note: sub-account themes are not active during this preview. " %>
  39. <% end %>
  40. <% end %>
  41. </div>
  42. <% end %>
  43. <% if @current_user.try(:show_bouncing_channel_message?) %>
  44. <div role="alert" class="ic-flash-static ic-flash-warning">
  45. <div class="ic-flash__icon" aria-hidden="true">
  46. <i class="icon-warning"></i>
  47. </div>
  48. <%= t(:bouncing_communication_channels, "There appears to be a problem with one of your contact methods. Please check your *Settings Page*.", wrapper: link_to('\1', settings_profile_path)) %>
  49. </div>
  50. <% end %>