kgogolek / latest-issues-redmine-plugin

Redmine plugin that displays latest redmine issues
12 stars 12 forks source link

Label Tag #9

Closed sercoin closed 10 years ago

sercoin commented 10 years ago

Hi

Where can I edit the host of "link_to_user" function? I'm waiting your answer.

sercoin commented 10 years ago

I solved that.

Like this

#{link_to h(truncate(issue.subject, :length => 60)), :host => 'localhost/redmine', :controller => 'issues', :action => 'show', :id => issue } (#{ format_time(issue.created_on)}) #{ issue.assigned_to ? "assigned to " + h(link_to issue.assigned_to.name, :controller => 'users', :host => 'localhost/redmine', :action => 'show', :id => issue.assigned_to) : " not assigned" }

I change link_to_user(issue.assigned_to) part with h(link_to issue.assigned_to.name, :controller => 'users', :host => 'localhost/redmine', :action => 'show', :id => issue.assigned_to) that solves the problem.

But you have to fix host problem for future releases.

Thanks anyway.