Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

1.0 KB
Raw Blame
NEW COMMENT ON TICKET
======================

<% if @actor %>
<%= @actor.full_name %> commented on ticket "<%= @ticket&.title || 'a ticket' %>"
<% end %>

<% if @comment&.respond_to?(:content) && @comment.content.present? %>
Comment:
--------
<%= @comment.content.to_plain_text.truncate(300) %>

<% elsif @notification.payload['post_excerpt'].present? %>
Comment:
--------
<%= @notification.payload['post_excerpt'] %>

<% end %>
<% if @ticket %>
Ticket Details:
- Number: #<%= @ticket.number if @ticket.respond_to?(:number) %>
- Title: <%= @ticket.title %>
<% if @ticket.respond_to?(:project) && @ticket.project %>
- Project: <%= @ticket.project.name %>
<% end %>

<% end %>
View Ticket: <%= @action_url %>

<% if @notification.group_count > 1 %>
This notification includes <%= pluralize(@notification.group_count, 'activity') %> on this ticket.
<% end %>

--
This notification was sent because you have notifications enabled for this activity.
Manage preferences: <%= @preferences_url %>
Unsubscribe: <%= @unsubscribe_url %>