forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- user ticket list popover: ticket → customer → tickets - ticket link list - user & organization profile now use: `generic/ticket_list.jst.eco` instead of copies of it. Template options: - tickets: list of tickets - (optional) object: for example ‘Ticket’ or ‘KnowledgeBase:Answer’; needed for deletion; activates the delete UI - (optional) linkType: defaults to ‘normal’; is additional info for deletion
- Loading branch information
1 parent
30d3ce2
commit 1870081
Showing
8 changed files
with
53 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
app/assets/javascripts/app/views/generic/ticket_list.jst.eco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<ol class="tasks tasks--standalone"> | ||
<% for ticket in @tickets: %> | ||
<li class="task"> | ||
<div class="icon-holder" title="<%- ticket.iconTitle() %>"> | ||
<%- @Icon('task-state', ticket.iconClass()) %> | ||
</div> | ||
<div class="task-text"> | ||
<a class="name ticket-popover" data-id="<%- ticket.id %>" href="<%- ticket.uiUrl() %>"> | ||
<% if @show_id: %> | ||
<span class="task-id">#<%= ticket.number %></span> | ||
<% end %> | ||
<%= ticket.title || '-' %> | ||
</a> | ||
<%- @humanTime(ticket.created_at, false, 'time') %> | ||
</div> | ||
<% if @object: %> | ||
<a class="list-item-delete js-delete" data-object="<%= @object %>" data-object-id="<%= ticket.id %>" data-link-type="<%= @linkType || 'normal' %>" data-type="remove"> | ||
<%- @Icon('diagonal-cross') %> | ||
</a> | ||
<% end %> | ||
<% end %> | ||
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 1 addition & 13 deletions
14
app/assets/javascripts/app/views/popover/user_ticket_list.jst.eco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
<ol class="tasks tasks--standalone"> | ||
<% for ticket in @tickets: %> | ||
<li class="task"> | ||
<div class="icon-holder" title="<%- ticket.iconTitle() %>"> | ||
<%- @Icon('task-state', ticket.iconClass()) %> | ||
</div> | ||
<div class="task-text"> | ||
<a class="name" data-id="<%- ticket.id %>" href="<%- ticket.uiUrl() %>">#<%= ticket.number %> <%= ticket.title || '-' %></a> | ||
<%- @humanTime(ticket.created_at, false, 'time') %> | ||
</div> | ||
</li> | ||
<% end %> | ||
</ol> | ||
<%- @ticketList %> |
15 changes: 1 addition & 14 deletions
15
app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters