[PATCH] Index page layout for more then 5 projects
Reported by Jeremy Lightsmith | April 21st, 2008 @ 01:47 PM | in 1.3
If we have more then 5 projects, incorrect index page is generated. The first project on page is with incorrect style. After first reload all projects are inserted again into html (this is how I understand it). After the first project. So we have all projects doubled on page (in my case it is 12 elements). If I added table with width=100% around the code, generated in else clause of 'if @projects.length <= 5', everything is OK! PATCH>>> Index: app/views/projects/index.rhtml =================================================================== --- app/views/projects/index.rhtml (revision 524) +++ app/views/projects/index.rhtml (working copy) @@ -8,10 +8,14 @@ <% end -%> <% else %> - <table> - <% @projects.each do |project| -%> - <%= render :partial => 'project', :locals => {:project => project }%> - <% end -%> + <table width="100%"> + <tr> + <td> + <% @projects.each do |project| -%> + <%= render :partial => 'project', :locals => {:project => project }%> + <% end -%> + + <% end %> <<<
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป