vdd_tooltip.mustache 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <a title class="vdd_tooltip_link"
  19. data-tooltip-selector="#vdd_tooltip_content_<%=presenter.selector%>"
  20. <% if presenter.link_href.present? %>href="<%= presenter.link_href %>"<% end %>
  21. ><%= presenter.link_text %></a>
  22. <div id="vdd_tooltip_content_<%=presenter.selector%>" style="display:none">
  23. <dl class="vdd_tooltip_content dl-horizontal">
  24. <% presenter.due_date_summary.each do |due_date| %>
  25. <div class="clearfix">
  26. <dt><%= due_date[:due_for] %></dt>
  27. <dd><%= due_date[:due_at] %></dd>
  28. </div>
  29. <% end %>
  30. <% if presenter.more_message.present? %>
  31. <div class="clearfix">
  32. <dd><%= presenter.more_message %></dd>
  33. </div>
  34. <% end %>
  35. </dl>
  36. </div>