Vote #71534
未完了Wrong links in plugin "Simple CI"
ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Core Plugins_35
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
35
version_id:
0
issue_org_id:
10495
author_id:
4950
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
38
説明
The links in the plugin "Simple CI" are wrong. They link to the project page in Redmine instead of the external page. The problem is caused from a wrong field in the file redmin_simple_ci/app/views/simple_ci/show.rhtml. Instead of build[:url] the expression build[:link] must be used. The following code works fine in my environment.
<% if @builds %>Continuous integration¶
<% if @builds.empty? %><%= l(:label_no_data) %>
<% else %><% @builds.each do |build| %> <% content_tag('div', :class => 'build ' + (build[:success] == true ? 'success' : 'failure')) do -%> <%= format_time(build[:time]) %>: <%= link_to build[:title],build[:link] %><% end %> <% content_for :header_tags do %> <%= stylesheet_link_tag '/plugin_assets/simple_ci/stylesheets/simple_ci' %> <% end %> <% end %>
<%= build[:description] if (@show_descriptions == 2 || (@show_descriptions == 1 && !build[:success])) %>
<% end -%> <% end %>
いいね!0