diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-01 08:48:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-01 08:48:24 +0000 |
commit | 7eda64e46432c18bbbbb14de42b15331e4c071b9 (patch) | |
tree | 8ecbf4c9bda41eb3b08e6b37ab5650f008532cb3 | |
parent | 124cca3af0300c1071ecd0576f138a42fcd8aa4d (diff) | |
download | redmine-7eda64e46432c18bbbbb14de42b15331e4c071b9.tar.gz redmine-7eda64e46432c18bbbbb14de42b15331e4c071b9.zip |
Issue subjects column width set to 330 on gantt chart
git-svn-id: http://redmine.rubyforge.org/svn/trunk@498 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/projects/gantt.rhtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/gantt.rhtml b/app/views/projects/gantt.rhtml index 1b51b4a6e..16ccb932b 100644 --- a/app/views/projects/gantt.rhtml +++ b/app/views/projects/gantt.rhtml @@ -50,7 +50,7 @@ <% zoom = 1 @zoom.times { zoom = zoom * 2 } -subject_width = 260 +subject_width = 330 header_heigth = 18 headers_height = header_heigth @@ -73,7 +73,7 @@ t_height = g_height + headers_height <table width="100%" style="border:0; border-collapse: collapse;"> <tr> -<td style="width:260px;"> +<td style="width:<%= subject_width %>px;"> <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;"> <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_height %>px;background: #eee;" class="gantt_hdr"></div> @@ -87,7 +87,7 @@ top = headers_height + 8 <div style="position: absolute;line-height:1.2em;height:16px;top:<%= top %>px;left:4px;overflow:hidden;"><small> <% if i.is_a? Issue %> <%= link_to_issue i %><%= " (#{i.project.name})" unless @project && @project == i.project %>: - <%=h i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %> + <%=h i.subject %> <% else %> <strong><%= "#{l(:label_version)}: #{i.name}" %></strong> <% end %> |