From 02eea18ca7350cf1980d585a6e82ebc8db337571 Mon Sep 17 00:00:00 2001 From: licsber Date: Sat, 23 Aug 2025 11:35:09 +0800 Subject: [PATCH] 0.0.4: update css. --- README.md | 2 +- .../_view_issues_show_details_bottom.html.erb | 53 +++++++++++++------ init.rb | 2 +- 3 files changed, 40 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 14b7f8c..1357acf 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,6 @@ git clone https://git.licsber.site/ruby/open_explorer ## ChangeLog ``` -250823周六:(0.0.3)修改按钮出现位置 +250823周六:(0.0.4)修改按钮出现位置;优化样式 250823周六:(0.0.1)基础功能 ``` diff --git a/app/views/hooks/_view_issues_show_details_bottom.html.erb b/app/views/hooks/_view_issues_show_details_bottom.html.erb index f17ef80..1252633 100644 --- a/app/views/hooks/_view_issues_show_details_bottom.html.erb +++ b/app/views/hooks/_view_issues_show_details_bottom.html.erb @@ -1,35 +1,58 @@ <% issue = @issue %> -<% - archive_custom_field = issue.custom_field_values.find do |cfv| - cfv.custom_field.name == "归档地址" - end +<% + archive_custom_field = issue.custom_field_values.find do |cfv| + cfv.custom_field.name == "归档地址" + end %> <% if archive_custom_field && archive_custom_field.value.present? %> <% archive_url = archive_custom_field.value.strip %> - - 📂 一键打开归档地址 + + 📂 一键打开归档地址 <% end %> diff --git a/init.rb b/init.rb index b335e0c..78622fc 100644 --- a/init.rb +++ b/init.rb @@ -2,7 +2,7 @@ Redmine::Plugin.register :open_explorer do name 'Open Explorer plugin' author 'licsber' description 'Open archive path using explorer.' - version '0.0.3' + version '0.0.4' url 'https://git.licsber.site/ruby/open_explorer' author_url 'https://licsber.site' end