]> source.dussan.org Git - redmine.git/commitdiff
Issue subjects column width set to 330 on gantt chart
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 1 May 2007 08:48:24 +0000 (08:48 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 1 May 2007 08:48:24 +0000 (08:48 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@498 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/gantt.rhtml

index 1b51b4a6e21900456ae950f8c79c3e2b853da5b2..16ccb932b182b2d01de1e2d33f565b12d01b2866 100644 (file)
@@ -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 %>