Defect #10495

Wrong links in plugin "Simple CI"

Added by Joerg Jans almost 10 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Core Plugins
Target version:-
Resolution: Affected version:1.2.2

Description

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 %>
<h2>Continuous integration</h2>

<% if @builds.empty? %>
    <p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
    <div id="builds">
    <% @builds.each do |build| %>
      <% content_tag('div', :class => 'build ' + (build[:success] == true ? 'success' : 'failure')) do -%>
      <b><%= format_time(build[:time]) %>: <%= link_to build[:title],build[:link] %><br /></b><br / >
      <%= build[:description] if (@show_descriptions == 2 || (@show_descriptions == 1 && !build[:success])) %><br /><br />
      <% end -%>
    <% end %>
    </div>
<% end %>

<% content_for :header_tags do %>
    <%= stylesheet_link_tag '/plugin_assets/simple_ci/stylesheets/simple_ci' %>
<% end %>

<% end %>

Also available in: Atom PDF