-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_subscription_template.html.erb
More file actions
38 lines (38 loc) · 1.91 KB
/
Copy path_subscription_template.html.erb
File metadata and controls
38 lines (38 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<tr>
<td class="text">
<%= link_to subscription_template.name, edit_project_subscription_template_path(subscription_template.project, subscription_template) %>
</td>
<td>
<%= subscription_template.standard %>
</td>
<td class="text">
<code><%= subscription_template.broker_url %></code>
</td>
<td>
<%= subscription_template.issue_status.name %>
</td>
<td>
<%= subscription_template.tracker.name %>
</td>
<td>
<%= subscription_template.status %>
</td>
<td>
<%= link_to sprite_icon('fiware-clipboard', l(:link_to_copy), :plugin => :redmine_gtt_fiware), copy_project_subscription_template_path(@project, subscription_template),
method: :get, remote: true, class: 'icon icon-copy copy-command-link', title: l(:link_to_copy_hint) %>
</td>
<td>
<% if subscription_template.subscription_id.present? %>
<%= link_to sprite_icon('fiware-sync', l(:link_to_sync), :plugin => :redmine_gtt_fiware), sync_project_subscription_template_path(@project, subscription_template),
method: :post, remote: true, class: 'icon icon-reload', title: l(:link_to_sync_hint) %>
<%= link_to sprite_icon('fiware-unpublish', l(:link_to_unpublish), :plugin => :redmine_gtt_fiware), unpublish_project_subscription_template_path(@project, subscription_template),
method: :post, remote: true, class: 'icon icon-shared', title: l(:link_to_unpublish_hint) %>
<% else %>
<%= link_to sprite_icon('fiware-publish', l(:link_to_publish), :plugin => :redmine_gtt_fiware), publish_project_subscription_template_path(@project, subscription_template),
method: :post, remote: true, class: 'icon icon-shared', title: l(:link_to_publish_hint) %>
<% end %>
</td>
<td>
<%= delete_link(subscription_template.project ? project_subscription_template_path(subscription_template.project, subscription_template) : subscription_template_path(subscription_template)) %>
</td>
</tr>