Project

General

Profile

Actions

Defect #10495

open

Wrong links in plugin "Simple CI"

Added by Joerg Jans almost 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Core Plugins
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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 %>

No data to display

Actions

Also available in: Atom PDF