additional_tags 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30f90dcfc93dd66550bb8087b9f3a94fa411484f4876ccb9d837548edf0b64ae
4
- data.tar.gz: df63312af11e2ce492b5b36bb3b0b1ce9f3e0b28c7d901512301226e06dcd65b
3
+ metadata.gz: d8ed778f6643bfc7ef2e38f292fa92d0dab319705968e9791bb820b0e284124b
4
+ data.tar.gz: 29db0db1b7c774c387fe46b7294d5be48dc71ab0857cd8fca9eebea610e17e6b
5
5
  SHA512:
6
- metadata.gz: 40e8517cddee11354aa8979506352abdbbb4e10774ce74f7f3d5c637b7bb2c03fd1fc75bd0e51f39ea23525aa8da2a54cb8089e3738b49d42718e5ea54031657
7
- data.tar.gz: 429ea55984a5c3225db53f9a5699bf897a54ae09f9c4bf76fb24b5358702a6bb7547c9efba57938bfeb3c6e3b877f3ce7bffafef7069f645914d6b9b38f8f4a9
6
+ metadata.gz: c76cb8da0ffab5ef74651cc450150fc1c057e4bfff58633cc4a8aa17fdd0ff91134537bf5cacb9f85783a624b628e21d0705b30b656819583ccc7d62f4fd2f5d
7
+ data.tar.gz: b12dc1e15cf91fc1514ecda011fd3e7f8186b64be0046fe7df894853b52db7045f2713aa00ae67101e1a42d7b44947256a129c21553021a3892bea0612eab34c
@@ -39,7 +39,7 @@ module AdditionalTagsHelper
39
39
 
40
40
  def manageable_tag_column_values(tag)
41
41
  columns = []
42
- manageable_tag_columns.each do |_column, column_values|
42
+ manageable_tag_columns.each_value do |column_values|
43
43
  cnt = column_values[:counts][tag.id]
44
44
  cnt = 0 if cnt.blank?
45
45
 
@@ -52,6 +52,10 @@ module AdditionalTagsHelper
52
52
  columns
53
53
  end
54
54
 
55
+ def values_for_sort_direction
56
+ [[l(:label_ascending), 'asc'], [l(:label_descending), 'desc']]
57
+ end
58
+
55
59
  def sort_tags_for_list(tags, sort_by: nil, sort_order: nil)
56
60
  return tags if tags.size < 2
57
61
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class MigrateTag < ActiveRecord::Base
3
+ class MigrateTag < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord
4
4
  self.table_name = 'tags'
5
5
  has_many :migrate_taggings, dependent: :destroy, foreign_key: :tag_id, inverse_of: :migrate_tag
6
6
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class MigrateTagging < ActiveRecord::Base
3
+ class MigrateTagging < Rails.version < '7.1' ? ActiveRecord::Base : ApplicationRecord
4
4
  self.table_name = 'taggings'
5
5
  belongs_to :migrate_tag, foreign_key: :tag_id, inverse_of: :migrate_taggings
6
6
  belongs_to :taggable, polymorphic: true
@@ -15,8 +15,7 @@ fieldset.settings
15
15
  @settings[:tags_sort_by])
16
16
  '
17
17
  = select_tag 'settings[tags_sort_order]',
18
- options_for_select([[l(:label_ascending), 'asc'], [l(:label_descending), 'desc']],
19
- @settings[:tags_sort_order])
18
+ options_for_select(values_for_sort_direction, @settings[:tags_sort_order])
20
19
 
21
20
  p
22
21
  = additionals_settings_select :tags_suggestion_order,
@@ -37,6 +36,9 @@ fieldset.settings
37
36
  p
38
37
  = additionals_settings_checkbox :active_issue_tags
39
38
 
39
+ p
40
+ = additionals_settings_checkbox :show_tags_after_queries
41
+
40
42
  p
41
43
  = additionals_settings_checkbox :open_issues_only
42
44
 
@@ -6,10 +6,10 @@
6
6
  tr
7
7
  th.checkbox.hide-when-print
8
8
  = check_box_tag 'ids[]', '', false, class: 'toggle-selection',
9
- title: "#{l :button_check_all}/#{l :button_uncheck_all}"
9
+ title: "#{l :button_check_all} / #{l :button_uncheck_all}"
10
10
 
11
11
  th = l :field_name
12
- - manageable_tag_columns.each do |_column, column_values|
12
+ - manageable_tag_columns.each_value do |column_values|
13
13
  th = column_values[:label]
14
14
  th
15
15
  tbody
@@ -0,0 +1,2 @@
1
+ - if AdditionalTags.setting? :show_tags_after_queries
2
+ = render 'issues/tags_sidebar'
@@ -0,0 +1,2 @@
1
+ - unless AdditionalTags.setting? :show_tags_after_queries
2
+ = render 'issues/tags_sidebar'
@@ -15,6 +15,7 @@ bg:
15
15
  label_manage_tags: "Управление на маркерите"
16
16
  label_merge_selected_tags: "Обединение на избраните маркери"
17
17
  label_open_issues_only: "Показване само на отворените задачи"
18
+ label_show_tags_after_queries: "Показване на етикети след заявки"
18
19
  label_show_with_count: "Показване на брой маркирани обекти"
19
20
  label_tag_color_theme: "Тема на цвета %{value}"
20
21
  label_tags_color_theme: "Цвят"
@@ -15,6 +15,7 @@ cs:
15
15
  label_manage_tags: "Spravovat štítky"
16
16
  label_merge_selected_tags: "Sloučit vybrané značky"
17
17
  label_open_issues_only: "Zobrazit pouze otevřené problémy"
18
+ label_show_tags_after_queries: "Zobrazit TAGy po dotazech"
18
19
  label_show_with_count: "Zobrazit částku na značce"
19
20
  label_tag_color_theme: "Barevné téma %{value}"
20
21
  label_tags_color_theme: "Barva"
@@ -15,6 +15,7 @@ de:
15
15
  label_manage_tags: TAGs verwalten
16
16
  label_merge_selected_tags: Ausgewählte TAGs zusammenführen
17
17
  label_open_issues_only: Zeige nur offene Tickets
18
+ label_show_tags_after_queries: "Zeige TAGs nach Abfragen"
18
19
  label_show_with_count: Zeige Anzahl zu TAG
19
20
  label_tag_color_theme: Farbschema %{value}
20
21
  label_tags_color_theme: Farbe
@@ -15,6 +15,7 @@ en:
15
15
  label_manage_tags: "Manage tags"
16
16
  label_merge_selected_tags: "Merge selected tags"
17
17
  label_open_issues_only: "Display open issues only"
18
+ label_show_tags_after_queries: "Show tags after queries"
18
19
  label_show_with_count: "Display amount on tag"
19
20
  label_tag_color_theme: Color theme %{value}
20
21
  label_tags_color_theme: Color
@@ -15,6 +15,7 @@ es:
15
15
  label_manage_tags: "Manejar tags"
16
16
  label_merge_selected_tags: "Fusionar tags seleccionadas"
17
17
  label_open_issues_only: "Mostrar sólo las peticiones abiertas"
18
+ label_show_tags_after_queries: "Mostrar TAGs tras las consultas"
18
19
  label_show_with_count: "Mostrar la cantidad en la tags"
19
20
  label_tag_color_theme: "Tema del color %{value}"
20
21
  label_tags_colors: "Color"
@@ -0,0 +1,45 @@
1
+ fa:
2
+ activerecord:
3
+ errors:
4
+ messages:
5
+ invalid_mutually_exclusive_tags: از تگ های منحصر به فرد متقابل استفاده شده است
6
+ field_issue_tags: تگ‌های مسئله
7
+ field_tag_list: تگ‌ها
8
+ field_tags: تگ‌ها
9
+ label_active_issue_tags: "تگ‌های فعال مسئله"
10
+ label_active_wiki_tags: "تگ‌های فعال ویکی"
11
+ label_add_tags: "افزودن تگ"
12
+ label_amount_entities_with_tags: "مقدار %{name} با تگ‌ها"
13
+ label_amount_tags: "تگ‌های مقدار"
14
+ label_edit_tags: "ویرایش تگ‌ها"
15
+ label_manage_tags: "مدیریت تگ‌ها"
16
+ label_merge_selected_tags: "ادغام تگ‌های انتخابی"
17
+ label_open_issues_only: "مشاهده مسائل باز"
18
+ label_show_tags_after_queries: "Show tags after queries"
19
+ label_show_with_count: "نمایش مقدار روی تگ"
20
+ label_tag_color_theme: تم رنگی %{value}
21
+ label_tags_color_theme: رنگ
22
+ label_tags_sidebar: "نمایش تگ‌ها در حاشیه به عنوان"
23
+ label_tags_sort_by: "مرتب سازی تگ‌ها بر اساس"
24
+ label_tags_suggestion_order: "سفارش پیشنهاد"
25
+ label_tags_tag: "تگ"
26
+ label_tags_without_color: بدون رنگ
27
+ label_use_colors: استفاده از رنگ‌ها
28
+ label_wiki_index_for_tag: "صفحه‌های ویکی با تگ"
29
+ label_with_chart: "با نمودار"
30
+ label_with_table_of_values: "با جدول مقادیر"
31
+ notice_failed_to_add_tags: "ناتوانی در افزودن تگ‌ها"
32
+ notice_tags_added: "تگ‌ها افزوده شدند"
33
+ permission_add_wiki_tags: "افزودن تگ‌های ویکی"
34
+ permission_create_issue_tags: "افزودن تگ‌های مسئله"
35
+ permission_edit_issue_tags: "ویرایش تگ‌های مسئله"
36
+ permission_view_issue_tags: "مشاهده تگ‌های مسئله"
37
+ tags_order_by_count: "بیشتر استفاده‌شده"
38
+ tags_order_by_last_created: "آخرین ساخته‌شده"
39
+ tags_order_by_name: "نام"
40
+ tags_sidebar_cloud: "ابر"
41
+ tags_sidebar_list: "لیست"
42
+ tags_sidebar_none: "هیچکدام"
43
+ tags_sidebar_simple_cloud: "ابر ساده"
44
+ tags_sort_by_count: "تعداد"
45
+ tags_sort_by_name: "نام"
@@ -15,6 +15,7 @@ fr:
15
15
  label_manage_tags: "Gérer les tags"
16
16
  label_merge_selected_tags: "Fusionner les tags sélectionnées"
17
17
  label_open_issues_only: "Afficher uniquement les demandes ouverts"
18
+ label_show_tags_after_queries: "Afficher les TAG après les requêtes"
18
19
  label_show_with_count: "Afficher le montant sur l'tags"
19
20
  label_tag_color_theme: "Thème de la couleur %{value}"
20
21
  label_tags_colors: "Couleur"
@@ -15,6 +15,7 @@ it:
15
15
  label_manage_tags: "Gestire i tag"
16
16
  label_merge_selected_tags: "Unisci i tag selezionati"
17
17
  label_open_issues_only: "Mostra solo i segnalazione"
18
+ label_show_tags_after_queries: "Mostra i TAG dopo le query"
18
19
  label_show_with_count: "Visualizzare l'importo sul tag"
19
20
  label_tag_color_theme: "Tema colore %{value}"
20
21
  label_tags_colors: Colore
@@ -15,6 +15,7 @@ ja:
15
15
  label_manage_tags: "タグの管理"
16
16
  label_merge_selected_tags: "選択したタグをマージ"
17
17
  label_open_issues_only: "開いている問題のみを表示"
18
+ label_show_tags_after_queries: "クエリーの後にTAGを表示する"
18
19
  label_show_with_count: "タグに金額を表示"
19
20
  label_tag_color_theme: "カラーテーマ%{value}"
20
21
  label_tags_colors: "カラー"
@@ -15,6 +15,7 @@ ko:
15
15
  label_manage_tags: "태그 관리"
16
16
  label_merge_selected_tags: "선택한 태그 병합"
17
17
  label_open_issues_only: "미해결 문제 만 표시"
18
+ label_show_tags_after_queries: "쿼리 뒤에 태그 표시"
18
19
  label_show_with_count: "태그에 금액 표시"
19
20
  label_tag_color_theme: "색상 테마 %{value}"
20
21
  label_tags_colors: "색깔"
@@ -15,6 +15,7 @@ pl:
15
15
  label_manage_tags: "Zarządzaj tagami"
16
16
  label_merge_selected_tags: "Łączenie wybranych tagów"
17
17
  label_open_issues_only: "Wyświetlaj tylko sprawy otwarte"
18
+ label_show_tags_after_queries: "Pokaż TAGi po zapytaniach"
18
19
  label_show_with_count: "Wyświetlanie ilości na etykiecie"
19
20
  label_tag_color_theme: "Kolorowy motyw %{value}"
20
21
  label_tags_colors: Kolor
@@ -15,6 +15,7 @@ pt-BR:
15
15
  label_manage_tags: "Gerenciar etiquetas"
16
16
  label_merge_selected_tags: "Fundir tags selecionadas"
17
17
  label_open_issues_only: "Exibir apenas questões em aberto"
18
+ label_show_tags_after_queries: "Mostrar TAGs após consultas"
18
19
  label_show_with_count: "Mostrar quantidade na etiqueta"
19
20
  label_tag_color_theme: "Tema da cor %{value}"
20
21
  label_tags_colors: "Cor"
@@ -15,6 +15,7 @@ ru:
15
15
  label_manage_tags: "Управление метками"
16
16
  label_merge_selected_tags: "Объединить выбранные метки"
17
17
  label_open_issues_only: "Отображать только открытые задачи"
18
+ label_show_tags_after_queries: "Показывать теги после запросов"
18
19
  label_show_with_count: "Отображать количество на метке"
19
20
  label_tag_color_theme: "Цветовая тема %{value}"
20
21
  label_tags_colors: "Цвет"
data/config/settings.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  active_issue_tags: '0'
2
2
  active_wiki_tags: '0'
3
3
  open_issues_only: '0'
4
+ show_tags_after_queries: '0'
4
5
  show_with_count: '0'
5
6
  tags_color_theme: '1'
6
7
  tags_sidebar: 'none'
data/init.rb CHANGED
@@ -5,13 +5,13 @@ require 'additional_tags/plugin_version'
5
5
  loader = RedminePluginKit::Loader.new plugin_id: 'additional_tags'
6
6
 
7
7
  Redmine::Plugin.register :additional_tags do
8
- name 'Additional Tags'
9
- author 'AlphaNodes GmbH'
8
+ name 'Additional Tags'
9
+ author 'AlphaNodes GmbH'
10
10
  description 'Redmine tagging support'
11
- version AdditionalTags::PluginVersion::VERSION
12
- url 'https://github.com/alphanodes/additional_tags/'
13
- author_url 'https://alphanodes.com/'
14
- directory __dir__
11
+ version AdditionalTags::PluginVersion::VERSION
12
+ url 'https://github.com/alphanodes/additional_tags/'
13
+ author_url 'https://alphanodes.com/'
14
+ directory File.dirname(__FILE__)
15
15
 
16
16
  requires_redmine version_or_higher: '5.0'
17
17
 
@@ -11,7 +11,8 @@ module AdditionalTags
11
11
  partial: 'issues/tags_form_details',
12
12
  locals: { tags_form: 'issues/tags_form' }
13
13
  render_on :view_issues_show_details_bottom, partial: 'issues/tags'
14
- render_on :view_issues_sidebar_planning_bottom, partial: 'issues/tags_sidebar'
14
+ render_on :view_issues_sidebar_planning_bottom, partial: 'issues/tags_sidebar_before'
15
+ render_on :view_issues_sidebar_queries_bottom, partial: 'issues/tags_sidebar_after'
15
16
  render_on :view_layouts_base_html_head, partial: 'additional_tags/html_head'
16
17
  render_on :view_layouts_base_body_bottom, partial: 'additional_tags/body_bottom'
17
18
  render_on :view_wiki_form_bottom, partial: 'tags_form_bottom'
@@ -42,7 +42,8 @@ module AdditionalTags
42
42
  end
43
43
 
44
44
  module InstanceMethods
45
- def issues_with_tags(**options)
45
+ def issues_with_tags(options = nil)
46
+ options ||= {}
46
47
  issues = issues_without_tags(**options)
47
48
  return issues unless has_column? :tags
48
49
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AdditionalTags
4
4
  module PluginVersion
5
- VERSION = '3.1.0' unless defined? AdditionalTags::PluginVersion::VERSION
5
+ VERSION = '3.2.0' unless defined? AdditionalTags::PluginVersion::VERSION
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: additional_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlphaNodes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-01 00:00:00.000000000 Z
11
+ date: 2024-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts-as-taggable-on
@@ -79,6 +79,8 @@ files:
79
79
  - app/views/issues/_tags_form.html.slim
80
80
  - app/views/issues/_tags_form_details.html.slim
81
81
  - app/views/issues/_tags_sidebar.html.slim
82
+ - app/views/issues/_tags_sidebar_after.html.slim
83
+ - app/views/issues/_tags_sidebar_before.html.slim
82
84
  - app/views/wiki/_tags_form.html.slim
83
85
  - app/views/wiki/_tags_form_bottom.html.slim
84
86
  - app/views/wiki/_tags_show.html.slim
@@ -92,6 +94,7 @@ files:
92
94
  - config/locales/de.yml
93
95
  - config/locales/en.yml
94
96
  - config/locales/es.yml
97
+ - config/locales/fa.yml
95
98
  - config/locales/fr.yml
96
99
  - config/locales/it.yml
97
100
  - config/locales/ja.yml
@@ -155,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
158
  - !ruby/object:Gem::Version
156
159
  version: '0'
157
160
  requirements: []
158
- rubygems_version: 3.4.10
161
+ rubygems_version: 3.4.19
159
162
  signing_key:
160
163
  specification_version: 4
161
164
  summary: Redmine plugin for adding tag functionality