Project

General

Profile

RE: Redmine Arch Decisions plugin (for tracking technical... ยป add-factor-bugfix.diff

Allow using relative url to redmine, when adding an existing factor. - Boris Brodski, 2010-11-11 16:44

View differences:

app/views/factors/index.html.erb
<% if !@popup %>
<td><%= link_to(h(factor.summary), :project_id => @project, :action => 'show', :id => factor) %></td>
<% else %>
<td><%= link_to h(factor.summary), "/projects/#{@project.id}/arch_decisions/add_factor/#{@arch_decision.id}/#{factor.id}" %></td>
<td><%= link_to h(factor.summary), "#{Redmine::Utils::relative_url_root}/projects/#{@project.id}/arch_decisions/add_factor/#{@arch_decision.id}/#{factor.id}" %></td>
<% end %>
<!-- td><%= textilizable factor.details, :factor => factor %></td -->
<td align="center" style="white-space:nowrap;"><%= factor.scope_name %></td>
    (1-1/1)