recent_activity_item.mustache 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. <% recent_activity_item ||= nil %>
  19. <% item = recent_activity_item %>
  20. <tr>
  21. <td>
  22. <% if item.unread %>
  23. <div class="unread"><span class="accessibly-hidden">{{#t}}Unread{{/t}}</span></div>
  24. <% end %>
  25. </td>
  26. <td>
  27. <a href="<%= item.path %>" class="content_summary">
  28. <span class="fake-link"><%= item.context.name %></span>
  29. <strong><%= item.state %></strong>
  30. <%= item.summary %>
  31. </a>
  32. </td>
  33. <td class="date" tabindex=0 >
  34. <%= friendly_datetime(item.updated_at, context: item.context, tag_type: :span) %>
  35. </td>
  36. <td class="remove">
  37. <% translated_close = t 'Ignore' %>
  38. <a class="close ignore-item" href="#" data-url="<%= dashboard_ignore_stream_item_url(item.stream_item_id) %>" data-remove='tr' title="<%= translated_close %>" aria-label="<%= translated_close %>" role="button">×</a>
  39. </td>
  40. </tr>