├── html
├── 1line_issue_list
│ ├── after.png
│ ├── before.png
│ ├── after_open.png
│ └── 1line_issue_list.md
├── 2-pane_issue_list
│ ├── after.png
│ ├── after2.png
│ └── 2-pane_issue_list.md
├── insert_image_dialog
│ ├── result.png
│ ├── markdown.png
│ ├── textile.png
│ ├── decode_filename.png
│ ├── thumbnail_macro.png
│ └── insert_image_dialog.md
├── hide_header
│ ├── hide_header_demo.gif
│ └── hide_header.md
├── simple_menu_bar
│ ├── simple_menu.png
│ ├── simple_menu_title.png
│ ├── simple_search_form.png
│ ├── simple_side_menu.png
│ ├── simple_projects_menu.png
│ └── simple_menu_bar.md
├── display_only_comment_field
│ ├── result.png
│ └── display_only_comment_field.md
├── popup_anywhere
│ ├── popup_anywhere_sample.png
│ └── popup_anywhere.md
├── adding_a_copy_button_to_the_pre_block
│ ├── image.png
│ └── adding_a_copy_button_to_the_pre_block.md
└── fixed_header_and_fixed_chart-height_on_gannt
│ ├── after.png
│ ├── before.png
│ ├── before_1.png
│ ├── before_2.png
│ └── fixed_header_and_fixed_chart-height_on_gannt.md
├── javascripts
├── fixed_header_on_gannt
│ ├── after.png
│ ├── before.png
│ └── fixed_header_on_gannt.md
├── copy_link_to_the_new_form
│ ├── image.png
│ └── copy_link_to_the_new_form.md
├── expand_highlight_on_gannt
│ ├── after.png
│ ├── before.png
│ └── expand_highlight_on_gannt.md
├── nortification_close_button
│ ├── after.png
│ ├── before.png
│ └── nortification_close_button.md
├── preview_pdf_and_html
│ ├── after_pdf.png
│ ├── before_html.png
│ ├── before_pdf.png
│ ├── after_html_code.png
│ ├── after_html_preview.png
│ └── preview_pdf_and_html.md
├── change_column_width_of_gantt
│ ├── after.png
│ ├── before.png
│ └── change_column_width_of_gantt.md
├── field_edit_menu_on_issue_list
│ ├── status.png
│ ├── subject.png
│ ├── done_ratio.png
│ ├── start_date.png
│ └── field_edit_menu_on_issue_list.md
├── scroll_to_top_or_bottom
│ ├── scroll_to_top_or_bottom.png
│ └── scroll_to_top_or_bottom.md
├── restricting_the_display_of_issue_attributes
│ ├── close.png
│ ├── open.png
│ └── restricting_the_display_of_issue_attributes.md
└── fixed_gantt_chart_when_using_shared_version
│ ├── normal.png
│ ├── collapsed_fixed.png
│ ├── collapsed_before_fixed.png
│ └── fixed_gantt_chart_when_using_shared_version.md
├── stylesheets
└── define_tracker_name_and_issue_id-name_on_gantt
│ ├── after.png
│ ├── before.png
│ └── define_tracker_name_and_issue_id-name_on_gantt.md
├── LICENSE
└── README.md
/html/1line_issue_list/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/1line_issue_list/after.png
--------------------------------------------------------------------------------
/html/1line_issue_list/before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/1line_issue_list/before.png
--------------------------------------------------------------------------------
/html/2-pane_issue_list/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/2-pane_issue_list/after.png
--------------------------------------------------------------------------------
/html/2-pane_issue_list/after2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/2-pane_issue_list/after2.png
--------------------------------------------------------------------------------
/html/insert_image_dialog/result.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/insert_image_dialog/result.png
--------------------------------------------------------------------------------
/html/1line_issue_list/after_open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/1line_issue_list/after_open.png
--------------------------------------------------------------------------------
/html/hide_header/hide_header_demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/hide_header/hide_header_demo.gif
--------------------------------------------------------------------------------
/html/insert_image_dialog/markdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/insert_image_dialog/markdown.png
--------------------------------------------------------------------------------
/html/insert_image_dialog/textile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/insert_image_dialog/textile.png
--------------------------------------------------------------------------------
/html/simple_menu_bar/simple_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/simple_menu_bar/simple_menu.png
--------------------------------------------------------------------------------
/html/display_only_comment_field/result.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/display_only_comment_field/result.png
--------------------------------------------------------------------------------
/html/simple_menu_bar/simple_menu_title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/simple_menu_bar/simple_menu_title.png
--------------------------------------------------------------------------------
/html/simple_menu_bar/simple_search_form.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/simple_menu_bar/simple_search_form.png
--------------------------------------------------------------------------------
/html/simple_menu_bar/simple_side_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/simple_menu_bar/simple_side_menu.png
--------------------------------------------------------------------------------
/javascripts/fixed_header_on_gannt/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/fixed_header_on_gannt/after.png
--------------------------------------------------------------------------------
/html/insert_image_dialog/decode_filename.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/insert_image_dialog/decode_filename.png
--------------------------------------------------------------------------------
/html/insert_image_dialog/thumbnail_macro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/insert_image_dialog/thumbnail_macro.png
--------------------------------------------------------------------------------
/html/popup_anywhere/popup_anywhere_sample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/popup_anywhere/popup_anywhere_sample.png
--------------------------------------------------------------------------------
/html/simple_menu_bar/simple_projects_menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/simple_menu_bar/simple_projects_menu.png
--------------------------------------------------------------------------------
/javascripts/fixed_header_on_gannt/before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/fixed_header_on_gannt/before.png
--------------------------------------------------------------------------------
/javascripts/copy_link_to_the_new_form/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/copy_link_to_the_new_form/image.png
--------------------------------------------------------------------------------
/javascripts/expand_highlight_on_gannt/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/expand_highlight_on_gannt/after.png
--------------------------------------------------------------------------------
/javascripts/expand_highlight_on_gannt/before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/expand_highlight_on_gannt/before.png
--------------------------------------------------------------------------------
/javascripts/nortification_close_button/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/nortification_close_button/after.png
--------------------------------------------------------------------------------
/javascripts/preview_pdf_and_html/after_pdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/preview_pdf_and_html/after_pdf.png
--------------------------------------------------------------------------------
/javascripts/preview_pdf_and_html/before_html.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/preview_pdf_and_html/before_html.png
--------------------------------------------------------------------------------
/javascripts/preview_pdf_and_html/before_pdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/preview_pdf_and_html/before_pdf.png
--------------------------------------------------------------------------------
/javascripts/change_column_width_of_gantt/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/change_column_width_of_gantt/after.png
--------------------------------------------------------------------------------
/javascripts/nortification_close_button/before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/nortification_close_button/before.png
--------------------------------------------------------------------------------
/html/adding_a_copy_button_to_the_pre_block/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/adding_a_copy_button_to_the_pre_block/image.png
--------------------------------------------------------------------------------
/javascripts/change_column_width_of_gantt/before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/change_column_width_of_gantt/before.png
--------------------------------------------------------------------------------
/javascripts/field_edit_menu_on_issue_list/status.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/field_edit_menu_on_issue_list/status.png
--------------------------------------------------------------------------------
/javascripts/field_edit_menu_on_issue_list/subject.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/field_edit_menu_on_issue_list/subject.png
--------------------------------------------------------------------------------
/javascripts/preview_pdf_and_html/after_html_code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/preview_pdf_and_html/after_html_code.png
--------------------------------------------------------------------------------
/javascripts/preview_pdf_and_html/after_html_preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/preview_pdf_and_html/after_html_preview.png
--------------------------------------------------------------------------------
/javascripts/field_edit_menu_on_issue_list/done_ratio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/field_edit_menu_on_issue_list/done_ratio.png
--------------------------------------------------------------------------------
/javascripts/field_edit_menu_on_issue_list/start_date.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/field_edit_menu_on_issue_list/start_date.png
--------------------------------------------------------------------------------
/html/fixed_header_and_fixed_chart-height_on_gannt/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/fixed_header_and_fixed_chart-height_on_gannt/after.png
--------------------------------------------------------------------------------
/html/fixed_header_and_fixed_chart-height_on_gannt/before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/fixed_header_and_fixed_chart-height_on_gannt/before.png
--------------------------------------------------------------------------------
/html/fixed_header_and_fixed_chart-height_on_gannt/before_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/fixed_header_and_fixed_chart-height_on_gannt/before_1.png
--------------------------------------------------------------------------------
/html/fixed_header_and_fixed_chart-height_on_gannt/before_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/html/fixed_header_and_fixed_chart-height_on_gannt/before_2.png
--------------------------------------------------------------------------------
/javascripts/scroll_to_top_or_bottom/scroll_to_top_or_bottom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/scroll_to_top_or_bottom/scroll_to_top_or_bottom.png
--------------------------------------------------------------------------------
/javascripts/restricting_the_display_of_issue_attributes/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/restricting_the_display_of_issue_attributes/close.png
--------------------------------------------------------------------------------
/javascripts/restricting_the_display_of_issue_attributes/open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/restricting_the_display_of_issue_attributes/open.png
--------------------------------------------------------------------------------
/javascripts/fixed_gantt_chart_when_using_shared_version/normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/fixed_gantt_chart_when_using_shared_version/normal.png
--------------------------------------------------------------------------------
/stylesheets/define_tracker_name_and_issue_id-name_on_gantt/after.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/stylesheets/define_tracker_name_and_issue_id-name_on_gantt/after.png
--------------------------------------------------------------------------------
/stylesheets/define_tracker_name_and_issue_id-name_on_gantt/before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/stylesheets/define_tracker_name_and_issue_id-name_on_gantt/before.png
--------------------------------------------------------------------------------
/javascripts/fixed_gantt_chart_when_using_shared_version/collapsed_fixed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/fixed_gantt_chart_when_using_shared_version/collapsed_fixed.png
--------------------------------------------------------------------------------
/javascripts/fixed_gantt_chart_when_using_shared_version/collapsed_before_fixed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sk-ys/redmine-view-customize-scripts/HEAD/javascripts/fixed_gantt_chart_when_using_shared_version/collapsed_before_fixed.png
--------------------------------------------------------------------------------
/stylesheets/define_tracker_name_and_issue_id-name_on_gantt/define_tracker_name_and_issue_id-name_on_gantt.md:
--------------------------------------------------------------------------------
1 | # ガントチャートのトラッカー名とチケットID,チケット名の区別を明確にする
2 | ## 説明
3 | ガントチャートのトラッカー名とチケットID,チケット名のデザインを変更し,区別を明確にします.
4 |
5 | ## イメージ
6 | ### Before
7 | 
8 |
9 | ### After
10 | 
11 |
12 |
13 | ## 設定
14 | - パスのパターン: /gantt
15 | - 種別: CSS
16 |
17 | ## コード
18 | ```CSS
19 | .gantt_subjects{
20 | font-size: 0.9em;
21 | }
22 | .gantt_subjects a.issue{
23 | font-size: 0.85em;
24 | padding: 0 0.2em;
25 | border: 1px solid;
26 | display: inline-block;
27 | line-height: 1.1em;
28 | }
29 | ```
30 |
--------------------------------------------------------------------------------
/javascripts/nortification_close_button/nortification_close_button.md:
--------------------------------------------------------------------------------
1 | # 通知バーに閉じるボタンを追加する
2 | ## 説明
3 | 通知バーに閉じるボタンを追加します.
4 |
5 | ## イメージ
6 | ### Before
7 | 
8 |
9 | ### After
10 | 
11 |
12 | ## 動作確認済環境
13 | - Redmine
14 | - 4.1.1
15 | - ブラウザ
16 | - IE11
17 | - Chrome
18 |
19 | ## 設定
20 | - パスのパターン: /*
21 | - 種別: JavaScript
22 |
23 | ## コード
24 | ```JavaScript
25 | $(function () {
26 | var $button = $('');
27 | $button.css({
28 | width: $('#flash_notice').height(),
29 | height: $('#flash_notice').height(),
30 | padding: 0,
31 | display: 'inline-block',
32 | float: 'right'
33 | });
34 | $button.addClass('icon icon-close');
35 | $button.on('click', function () {
36 | $('#flash_notice').hide();
37 | });
38 | $button.hover(function () {
39 | $(this).css('cursor', 'pointer');
40 | });
41 | $('#flash_notice').append($button);
42 | });
43 | ```
44 |
--------------------------------------------------------------------------------
/javascripts/change_column_width_of_gantt/change_column_width_of_gantt.md:
--------------------------------------------------------------------------------
1 | # ガントチャートの題名列の幅を変更する
2 | ## 説明
3 | ガントチャートの題名列の幅を変更します.
4 |
5 | ## イメージ
6 | ### Before
7 | 
8 |
9 | ### After
10 | 
11 |
12 | ## 動作確認済み環境
13 | - Redmine
14 | - 4.2.2
15 | - ブラウザ
16 | - IE11
17 | - Chrome
18 | - Edge
19 |
20 | ## 設定
21 | - パスのパターン: /issues/gantt
22 | - 種別: JavaScript
23 |
24 | ## コード
25 | ```JavaScript
26 | window.addEventListener('DOMContentLoaded', function () {
27 | // 幅を指定
28 | const subjectWidth = 500;
29 |
30 | // 題名列の幅を設定
31 | $('td.gantt_subjects_column').css({
32 | 'width': subjectWidth + 'px'
33 | });
34 |
35 | $(
36 | 'td.gantt_subjects_column .gantt_hdr, ' +
37 | 'td.gantt_subjects_column .gantt_subjects_container'
38 | ).css({
39 | 'width': (subjectWidth - 1) + 'px'
40 | });
41 |
42 | // 各チケット名の幅を設定
43 | $('.gantt_subjects>form>div').each(function (index) {
44 | var left = parseFloat($(this).css('left'));
45 | $(this).css('width', subjectWidth - left);
46 | });
47 | });
48 | ```
49 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 sk-ys
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/javascripts/fixed_gantt_chart_when_using_shared_version/fixed_gantt_chart_when_using_shared_version.md:
--------------------------------------------------------------------------------
1 | # 共有バージョン使用時のガントチャートの動作を修正
2 | ## 説明
3 | ガントチャートで複数のプロジェクト間で共有されたバージョンが複数列に表示されていた場合に,折りたたみ機能が正常に動作しなくなる問題に対処します.
4 |
5 | ## イメージ
6 | ### 折りたたみ前
7 | 
8 | ### 折りたたみ後(修正前)
9 | 
10 | ### 折りたたみ後(修正後)
11 | 
12 |
13 | ## 動作確認環境
14 | - Redmine
15 | - 4.1.1
16 | - ブラウザ
17 | - IE11
18 | - Chrome
19 | - Edge
20 |
21 | ## 設定
22 | - パスのパターン: /issues/gantt$
23 | - 種別: JavaScript
24 |
25 | ## コード
26 | ```JavaScript
27 | $(function(){
28 | var add_project_name = function(version_name, project_id){
29 | return 'project-' + project_id + ';' + version_name;
30 | }
31 |
32 | // add project name for version name in column
33 | var project_id = 0;
34 | $("div.gantt_subjects>form>div.project-name, div.gantt_subjects>form>div.version-name").each(function (_, element) {
35 | var json = $(element).data('collapse-expand');
36 | if ($(element).hasClass('project-name')) {
37 | project_id = parseInt(json.obj_id.split('-')[1]);
38 | } else if (project_id > 0) {
39 | json.obj_id = add_project_name(json.obj_id, project_id);
40 | $(element).attr('daata-collapse-expand', json);
41 | }
42 | });
43 |
44 | // add project name for version name in gantarea
45 | var project_id = 0;
46 | $('#gantt_area form > div.project, #gantt_area form > div.version').each(function (_, element) {
47 | var collapse_expand = $(element).data('collapse-expand');
48 | if ($(element).hasClass('project')) {
49 | project_id = parseInt(collapse_expand.split('-')[1]);
50 | } else if (project_id > 0) {
51 | collapse_expand = add_project_name(collapse_expand, project_id);
52 | $(element).attr('data-collapse-expand', collapse_expand);
53 | }
54 | });
55 | });
56 | ```
57 |
--------------------------------------------------------------------------------
/javascripts/scroll_to_top_or_bottom/scroll_to_top_or_bottom.md:
--------------------------------------------------------------------------------
1 | # ページ最上部または最下部にスクロールするボタンを追加する
2 | ## 説明
3 | ページ最上部または最下部にスクロールするボタンをウィンドウの右下に追加します.
4 |
5 | ## イメージ
6 | 
7 |
8 |
9 | ## 動作確認環境
10 | - Redmine
11 | - 4.1.1
12 | - ブラウザ
13 | - IE11
14 | - Chrome
15 | - Edge
16 |
17 | ## 設定
18 | - パスのパターン:
19 | - 種別: JavaScript
20 |
21 | ## コード
22 | ```JavaScript
23 | $(function () {
24 | const BUTTON_SIZE = '30px';
25 | const BUTTON_TITLE_UP = '上へ';
26 | const BUTTON_TITLE_BOTTOM = '下へ';
27 | const DURATION = 500;
28 |
29 | var btn_basestyle = {
30 | 'position': 'fixed',
31 | 'width': BUTTON_SIZE,
32 | 'height': BUTTON_SIZE,
33 | 'left': 'calc(100vw - ' + BUTTON_SIZE + ' - 20px)',
34 | 'top': 'calc(100vh - ' + BUTTON_SIZE + ' - 10px)',
35 | 'border-radius': '50%',
36 | 'cursor': 'pointer',
37 | 'background-color': '#CCC',
38 | 'opacity': '0.3',
39 | 'z-index': 500,
40 | 'display': 'flex',
41 | 'justify-content': 'center',
42 | 'align-items': 'center',
43 | }
44 |
45 | function scroll_up() {
46 | $('html,body').animate({
47 | scrollTop: 0
48 | }, DURATION);
49 | };
50 |
51 | function scroll_bottom() {
52 | $('html,body').animate({
53 | scrollTop: $(document).height() - $(window).height()
54 | }, DURATION);
55 | };
56 |
57 | var btn_up = $('
↑
')
58 | .css(btn_basestyle)
59 | .css({
60 | 'left': 'calc(100vw - (' + BUTTON_SIZE + ')*2.1 - 20px)'
61 | })
62 | .click(scroll_up)
63 | .attr('title', BUTTON_TITLE_UP);
64 |
65 | var btn_bottom = $('↓
')
66 | .css(btn_basestyle)
67 | .click(scroll_bottom)
68 | .attr('title', BUTTON_TITLE_BOTTOM);
69 |
70 | $('html body').append(btn_up);
71 | $('html body').append(btn_bottom);
72 | });
73 | ```
74 |
--------------------------------------------------------------------------------
/html/display_only_comment_field/display_only_comment_field.md:
--------------------------------------------------------------------------------
1 | # チケット編集時にコメント入力欄のみを表示する
2 | ## 説明
3 | チケット編集時にコメント入力欄のみを表示するボタンを追加します.
4 | 標準の編集ボタンをクリックすると標準の編集画面に戻ります.
5 |
6 | ## イメージ
7 | 
8 |
9 | ## 動作確認環境
10 | - Redmine
11 | - 4.2.2
12 | - ブラウザ
13 | - IE11
14 | - Chrome
15 | - Edge
16 |
17 | ## 設定
18 | - パスのパターン: /issues/[0-9]+
19 | - 種別: HTML
20 |
21 | ## コード
22 | ```HTML
23 |
63 |
64 |
72 | ```
73 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Script list for "Redmine View Customize Plugin"
2 |
3 | onozaty氏の https://github.com/onozaty/redmine-view-customize プラグイン向けのスクリプト集です.
4 |
5 |
6 | ## JavaScript
7 | * [ガントチャートの日付ヘッダーを固定する](./javascripts/fixed_header_on_gannt/fixed_header_on_gannt.md)
8 | * [ガントチャートのハイライトを拡張する](./javascripts/expand_highlight_on_gannt/expand_highlight_on_gannt.md)
9 | * [通知バーに閉じるボタンを追加する](./javascripts/nortification_close_button/nortification_close_button.md)
10 | * [共有バージョン使用時のガントチャートの動作を修正(→ Redmine 4.1.4 / 4.2.2で修正済み)](./javascripts/fixed_gantt_chart_when_using_shared_version/fixed_gantt_chart_when_using_shared_version.md)
11 | * [チケット編集時に表示される項目を限定する](./javascripts/restricting_the_display_of_issue_attributes/restricting_the_display_of_issue_attributes.md)
12 | * [PDFとHTMLのプレビューを有効にする](./javascripts/preview_pdf_and_html/preview_pdf_and_html.md)
13 | * [ページ最上部または最下部にスクロールするボタンを追加する](./javascripts/scroll_to_top_or_bottom/scroll_to_top_or_bottom.md)
14 | * [ガントチャートの題名列の幅を変更する](./javascripts/change_column_width_of_gantt/change_column_width_of_gantt.md)
15 | * [チケット一覧のフィールド毎に編集メニューを表示する](./javascripts/field_edit_menu_on_issue_list/field_edit_menu_on_issue_list.md)
16 | * [チケット登録フォームへのリンクをクリップボードにコピーするボタンを追加する](javascripts/copy_link_to_the_new_form/copy_link_to_the_new_form.md)
17 |
18 | ## CSS
19 | * [ガントチャートのトラッカー名とチケットID,チケット名の区別を明確にする](./stylesheets/define_tracker_name_and_issue_id-name_on_gantt/define_tracker_name_and_issue_id-name_on_gantt.md)
20 |
21 | ## HTML
22 | * [ガントチャートの日付ヘッダーとチャート高さを固定する](./html/fixed_header_and_fixed_chart-height_on_gannt/fixed_header_and_fixed_chart-height_on_gannt.md)
23 | * [チケット一覧画面でワイド表示項目を1行内に表示する](./html/1line_issue_list/1line_issue_list.md)
24 | * [チケット一覧画面&ガントチャート画面を2ペイン化](./html/2-pane_issue_list/2-pane_issue_list.md)
25 | * [ヘッダーの表示・非表示を切り替え可能にする](./html/hide_header/hide_header.md)
26 | * [チケット編集時にコメント入力欄のみを表示する](./html/display_only_comment_field/display_only_comment_field.md)
27 | * [どこでもポップアップ](./html/popup_anywhere/popup_anywhere.md)
28 | * [画像挿入ダイアログ](./html/insert_image_dialog/insert_image_dialog.md)
29 | * [シンプルメニューバー](./html/simple_menu_bar/simple_menu_bar.md)
30 | * [Preブロックの内容をクリップボードにコピーするボタンを追加する](html/adding_a_copy_button_to_the_pre_block/adding_a_copy_button_to_the_pre_block.md)
31 |
--------------------------------------------------------------------------------
/html/adding_a_copy_button_to_the_pre_block/adding_a_copy_button_to_the_pre_block.md:
--------------------------------------------------------------------------------
1 | # Preブロックの内容をクリップボードにコピーするボタンを追加する
2 | ## 説明
3 | Preブロックの内容をクリップボードにコピーするボタンをPreブロックに追加します.
4 |
5 | ## イメージ
6 | 
7 |
8 | ## 設定
9 | - パスのパターン:
10 | - 挿入位置: 全ページのヘッダ
11 | - 種別: HTML
12 |
13 | ## コード
14 | ```HTML
15 |
21 |
61 |
89 | ```
--------------------------------------------------------------------------------
/javascripts/copy_link_to_the_new_form/copy_link_to_the_new_form.md:
--------------------------------------------------------------------------------
1 | # チケット登録フォームへのリンクをクリップボードにコピーするボタンを追加する
2 | ## 説明
3 | 編集中の内容が埋め込まれた状態のチケット登録フォームへのリンクをクリップボードにコピーするボタンを追加します.
4 | 以下の参考サイトの内容を1クリックで行います.
5 |
6 | 参考: [Redmineワンポイントチェック(2): URLに入力値を埋め込んでチケット作成のテンプレートを実現する | Redmine.JP Blog](https://blog.redmine.jp/articles/opc/new-issue-template/)
7 |
8 | ## イメージ
9 | 
10 |
11 | ## 設定
12 | - パスのパターン: `/issues(|/new|/[0-9]+/copy)$`
13 | - 挿入位置: 全ページのヘッダ
14 | - 種別: JavaScript
15 |
16 | ## コード
17 | ```JavaScript
18 | // Path pattern: /issues(|/new|/[0-9]+/copy)$
19 | // Insertion position: Head of all pages
20 | // Type: JavaScript
21 | // Comment: Copy link to the new form
22 | $(() => {
23 | let urlBase = location.origin + location.pathname;
24 | if (!/\/issues(|\/new|\/[0-9]+\/copy)$/.test(urlBase)) return;
25 | if (/\/issues$/.test(urlBase)) urlBase += "/new";
26 |
27 | const $form = $("form.new_issue#issue-form");
28 | if ($form.length === 0) return;
29 |
30 | const urlDefault = new URL(urlBase + "?" + $form.serialize());
31 | const isCopyIssueForm = urlDefault.searchParams.has("copy_from");
32 | const copyFromId = urlDefault.searchParams.get("copy_from");
33 |
34 | const resourcesAll = {
35 | en: {
36 | label: "Copy link to the form",
37 | description: "Copy link to the form to the clipboard.",
38 | messageCopiedForNewIssue: "Link to the new ticket form has been copied.",
39 | messageCopiedForCopiedIssue: `Link to the copy form for the ticket #${copyFromId} has been copied.`,
40 | },
41 | ja: {
42 | label: "フォームへのリンクをコピー",
43 | description: "フォームへのリンクをクリップボードにコピーします。",
44 | messageCopiedForNewIssue:
45 | "新規チケットフォームへのリンクがコピーされました。",
46 | messageCopiedForCopiedIssue: `チケット#${copyFromId}のコピーフォームへのリンクがコピーされました。`,
47 | },
48 | };
49 |
50 | const resources =
51 | resourcesAll[document.documentElement.lang] || resourcesAll["en"];
52 |
53 | const $copyButton = $("