Permalink
Browse files

Changement de chemin

  • Loading branch information...
1 parent a3faf3d commit 25c04ef1a6bcaa003a22687374aa1eea3dbc3a09 @chris2fr committed Sep 3, 2009
@@ -46,7 +46,7 @@ if @IssuesByVersionByCat[version_name] and @IssuesByVersionByCat[version_name][c
end
end
%><%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/tjstatus/task" + tests['scheduled'] + tests['status'] + ".html.erb", :locals => { :issue => issue, :config_vals => config_vals } %>
+ render :file => File.join(File.dirname(__FILE__), 'task' + tests['scheduled'] + tests['status'] + ".html.erb"), :locals => { :issue => issue, :config_vals => config_vals } %>
<%
end
if not cat_name == "no_category"%>
@@ -51,7 +51,7 @@ version_names.push("no_version")
cat_names.push("no_category")
cat_names.each do |cat_name|
%><%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/inc_cat.html.erb", :locals => { :cat_name => cat_name, :version_name => version_name } %><%
+ render :file => File.join(File.dirname(__FILE__), "inc_cat.html.erb"), :locals => { :cat_name => cat_name, :version_name => version_name } %><%
end %>
}
<%
@@ -3,6 +3,6 @@
priority <%= (issue.priority_id + 1) * 100 %>
start <%= issue.start_date %>
<%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/tjstatus/inc_task_inc_allocate.html.erb", :locals => { :issue => issue, :config_vals => config_vals }
+ render :file => File.join(File.dirname(__FILE__), "inc_task_inc_allocate.html.erb"), :locals => { :issue => issue, :config_vals => config_vals }
%>
}
@@ -1,5 +1,5 @@
task t<%= issue.id %> "#<%= issue.id %> : <%= issue.subject.sub("\"","'") %>" {
milestone
<%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/tjstatus/inc_task_inc_depends.html.erb", :locals => { :issue => issue } %>
+ render :file => File.join(File.dirname(__FILE__), 'tjstatus',"inc_task_inc_depends.html.erb"), :locals => { :issue => issue } %>
}
@@ -2,8 +2,8 @@
complete 0
priority <%= (issue.priority_id + 1) * 100 %>
<%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/tjstatus/inc_task_inc_allocate.html.erb", :locals => { :issue => issue, :config_vals => config_vals }
+ render :file => File.join(File.dirname(__FILE__),"inc_task_inc_allocate.html.erb"), :locals => { :issue => issue, :config_vals => config_vals }
%>
<%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/tjstatus/inc_task_inc_depends.html.erb", :locals => { :issue => issue, :config_vals => config_vals } %>
+ render :file => File.join(File.dirname(__FILE__),"inc_task_inc_depends.html.erb"), :locals => { :issue => issue, :config_vals => config_vals } %>
}
@@ -47,7 +47,7 @@ version_names.push("no_version")
cat_names.push("no_category")
cat_names.each do |cat_name|
%><%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/inc_cat.html.erb", :locals => { :cat_name => cat_name, :version_name => version_name } %><%
+ render :file => File.join(File.dirname(__FILE__), "inc_cat.html.erb"), :locals => { :cat_name => cat_name, :version_name => version_name } %><%
end %>
}
<%
@@ -62,7 +62,7 @@ version_name = "no_version"%>
cat_names.push("no_category")
cat_names.each do |cat_name|
%><%=
- render :file => "/opt/redmine-0.8.4/vendor/plugins/redmine_tj_status/app/views/inc_cat.html.erb", :locals => { :cat_name => cat_name, :version_name => version_name } %><%
+ render :file => File.join(File.dirname(__FILE__), "inc_cat.html.erb"), :locals => { :cat_name => cat_name, :version_name => version_name } %><%
end %>
}
}
View
@@ -1,10 +1,10 @@
require 'redmine'
-Redmine::Plugin.register :redmine_tj_status do
- name 'Redmine Tj Status plugin'
+Redmine::Plugin.register :redmine_taskjuggler do
+ name 'Redmine Taskjuggler plugin'
author 'Chris Mann'
description 'This plug exports project status into TaskJuggler and will import the dates too !'
- version '0.0.1'
+ version '0.0.2'
#menu :application_menu, :tjstatus, { :controller => 'tjstatus', :action => 'index' }, :caption => 'Task Juggler'
permission :tjstatus, {:tjstatus => [:index, :export, :initial_export]}, :public => true
menu :project_menu, :tjstatus, { :controller => 'tjstatus', :action => 'test' }, :caption => 'Task Juggler File', :after => :activity, :param => :project_identifier

0 comments on commit 25c04ef

Please sign in to comment.