{% assign activity_title = activity.title | split: '~' %}
{% if activity_title.size > 1 %}
  <div class="activity-time">
    {{ activity_title[1] | strip }}
  </div>
{% endif %}
<a
  href="{% route activity_viewer,
    id: activity.id,
    course_id: params.course_id,
    learning_path_id: params.learning_path_id
  %}" class="{{ class }}"
>
  {{ activity_title[0] | strip }}
</a>
