#442: Add listing of currently subscribed users to ticket page (Open)
Sep 01 2008 * 22:37
| Reported by: | Kenny Grant | Assigned to: | |
|---|---|---|---|
| Priority: | Enhancement | Milestone: | |
| Release: | Component: | Ticketing |
I sometimes find myself wondering whether other users are subscribed to a ticket when I’m addressing them in the comments. So it’s handy to know which users are subscribed to a particular ticket. To do that, something similar to this could be added to the end of app/views/
Obviously show_all_subscriptions? would be a helper method checking a per-project preference, to turn this feature on or off, and the subscribers.collect line would also be a helper method, but I’ve put it all together for clarity.
Is there a more official way to suggest patches rather than adding a ticket?
<div class="quiet righted fine ticket-subscribers">
<% def show_all_subscriptions?; true; end -%>
<% if show_all_subscriptions? -%>
<% if @ticket.subscribers.empty? -%>
<%=_ 'No subscribed users' %>
<% else -%>
<%=_ 'Currently subscribed users - ' %>
<% user_names = @ticket.subscribers.collect {|user| h user.name} -%>
<%= user_names.join(", ") -%>
<% end -%>
<% end -%>
</div>

RSS feeds