
| Key: |
CCRB-153
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Duplicate
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Jaanus Siim
|
| Votes: |
1
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
|
| Component/s: |
Dashboard
|
| Affects Version/s: |
None
|
| Fix Version/s: |
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 -%>
+ </td>
+ </tr>
</table>
<% end %>
<<<<PATCH
BTW: Is there no way to attach the diff file?
BR,
JaanusSiim
|
|
Description
|
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 -%>
+ </td>
+ </tr>
</table>
<% end %>
<<<<PATCH
BTW: Is there no way to attach the diff file?
BR,
JaanusSiim |
Show » |
|