Skip to content

Commit 00f8e66

Browse files
authored
Merge pull request #55 from gtt-project/next
Prepares for next release
2 parents 36ae624 + 20827b1 commit 00f8e66

File tree

6 files changed

+38
-10
lines changed

6 files changed

+38
-10
lines changed

app/models/subscription_template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class SubscriptionTemplate < ActiveRecord::Base
1+
class SubscriptionTemplate < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
22
self.table_name = "fiware_subscription_templates"
33

44
after_initialize :set_default_alteration_types, if: :new_record?
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>
2-
<%= link_to l(:label_subscription_template_new), new_project_subscription_template_path(@project), class: 'icon icon-add' %>
2+
<%= link_to sprite_icon('add', l(:label_subscription_template_new)), new_project_subscription_template_path(@project), class: 'icon icon-add' %>
33
</p>
44

55
<%= render partial: 'subscription_templates/list', locals: { subscription_templates: SubscriptionTemplate.where(project_id: @project.id) } %>

app/views/subscription_templates/_subscription_template.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
<%= textilizable subscription_template.status %>
1919
</td>
2020
<td>
21-
<%= link_to l(:link_to_copy), copy_project_subscription_template_path(@project, subscription_template),
22-
method: :get, remote: true,class: 'copy-command-link icon icon-copy', title: l(:link_to_copy_hint) %>
21+
<%= link_to sprite_icon('fiware-clipboard', l(:link_to_copy), :plugin => :redmine_gtt_fiware), copy_project_subscription_template_path(@project, subscription_template),
22+
method: :get, remote: true, class: 'icon icon-copy copy-command-link', title: l(:link_to_copy_hint) %>
2323
</td>
2424
<td>
2525
<% if subscription_template.subscription_id.present? %>
26-
<%= link_to l(:link_to_unpublish), unpublish_project_subscription_template_path(@project, subscription_template),
26+
<%= link_to sprite_icon('fiware-unpublish', l(:link_to_unpublish), :plugin => :redmine_gtt_fiware), unpublish_project_subscription_template_path(@project, subscription_template),
2727
method: :get, remote: true, class: 'icon icon-shared' %>
2828
<% else %>
29-
<%= link_to l(:link_to_publish), publish_project_subscription_template_path(@project, subscription_template),
29+
<%= link_to sprite_icon('fiware-publish', l(:link_to_publish), :plugin => :redmine_gtt_fiware), publish_project_subscription_template_path(@project, subscription_template),
3030
method: :get, remote: true, class: 'icon icon-shared' %>
3131
<% end %>
3232
</td>

assets/images/icons.svg

Lines changed: 23 additions & 0 deletions
Loading

config/icon_source.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: fiware-clipboard
2+
svg: clipboard-copy
3+
- name: fiware-publish
4+
svg: link-plus
5+
- name: fiware-unpublish
6+
svg: link-minus

init.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Require the issues overrides file
2-
require File.expand_path('../lib/redmine_gtt_fiware/view_hooks', __FILE__)
1+
require_relative 'lib/redmine_gtt_fiware/view_hooks'
32

43
# Register MIME Types for JSON-LD format
54
Mime::Type.register 'application/ld+json', :jsonld
@@ -12,10 +11,10 @@
1211
author_url 'https://github.com/georepublic'
1312
url 'https://github.com/gtt-project/redmine_gtt_fiware'
1413
description 'Adds FIWARE integration capabilities for GTT projects'
15-
version '1.0.6'
14+
version '2.0.0'
1615

1716
# Specify the minimum required Redmine version
18-
requires_redmine :version_or_higher => '5.0.0'
17+
requires_redmine :version_or_higher => '6.0.0'
1918

2019
# Plugin settings with default values and partial view for settings
2120
settings(

0 commit comments

Comments
 (0)