Changeset 1571
- Timestamp:
- 05/05/08 16:42:14 (1 week ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hive/trunk/data_webapp/app/helpers/clients_helper.rb
r1501 r1571 60 60 end 61 61 62 def minimize_cell(id) 63 out = %{<td class="minimize">} 64 out += %{<INPUT type='button' value='-' onclick='if(this.value=="-"){Effect.SlideUp("#{id}",{duration:0});this.value="+";}else{Effect.SlideDown("#{id}",{duration:0});this.value="-";}'>} 65 out += %{</td>} 66 end 67 68 def details_title_row_plus(title,id) 69 outty = %{<tr class="dataTitle">} 70 outty += title_cell(title) 71 if not id.nil? 72 outty += minimize_cell(id) 73 end 74 outty += %{</tr>} 75 end 76 62 77 def details_title_row(title) 63 78 outty = %{<tr class="dataTitle">} hive/trunk/data_webapp/app/views/clients/show.html.erb
r1501 r1571 25 25 <tbody> 26 26 <%#= details("Processes",p) %> 27 <%= details_title_row("Process: " + p.name) %> 27 <%= details_title_row_plus("Process: " + p.name[/[^\/\\]*$/],"proc"+p.id.to_s) %> 28 <%= '<tr><td colspan="3"><table id="proc' + p.id.to_s + '" width="100%">'%> 28 29 <tr><td align="center"> 29 30 <%= view_details_link('OsProcess',p.id) %> … … 51 52 </div></td></tr> 52 53 <% end %> 54 </table></td></tr> 53 55 </tbody> 54 56 </table> 55 57 <% end %> 56 58 <% else %> 59 </table></td></tr> 57 60 </tbody> 58 61 </table> hive/trunk/data_webapp/public/stylesheets/scaffold.css
r1501 r1571 55 55 text-align: center; 56 56 white-space: nowrap; 57 } 58 59 td.minimize { 60 width: 12px; 61 max-width: 12px; 57 62 } 58 63
