From: <bel...@us...> - 2003-03-28 21:09:40
|
Update of /cvsroot/btplusplus/BT++/src/WebTemplates In directory sc8-pr-cvs1:/tmp/cvs-serv17312/src/WebTemplates Modified Files: config.tmpl torrent.tmpl Log Message: Implemented InfoManager for tracker info (namely seeds/downloaders). It manages updates so only one request is sent per tracker if multiple torrents use the same one. Some minor fixes. Index: config.tmpl =================================================================== RCS file: /cvsroot/btplusplus/BT++/src/WebTemplates/config.tmpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** config.tmpl 16 Mar 2003 01:17:58 -0000 1.3 --- config.tmpl 28 Mar 2003 21:09:35 -0000 1.4 *************** *** 133,136 **** --- 133,141 ---- </tr> <tr> + <td>Refresh info from tracker (UL/DL) every (minutes)<br> + (Please don't make this too low. Each Refresh takes an http request to the tracker)</td> + <td width=5%><input type=text style="width:100%" name=Display_RefreshInfo value="<TMPL_VAR display_refreshinfo>"></td> + </tr> + <tr> <td> Log Level (default = 1)<br> Index: torrent.tmpl =================================================================== RCS file: /cvsroot/btplusplus/BT++/src/WebTemplates/torrent.tmpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** torrent.tmpl 16 Mar 2003 01:45:19 -0000 1.4 --- torrent.tmpl 28 Mar 2003 21:09:35 -0000 1.5 *************** *** 16,19 **** --- 16,20 ---- <th>Size</th> <th>Speed</th> + <th nowrap>UL/DL</th> <th>ETA</th> </tr> *************** *** 27,31 **** <tr bgcolor=#BFD8BC> </TMPL_IF> ! <td><button type=submit name=command <TMPL_IF Hashing>disabled</TMPL_IF><TMPL_IF Allocating>disabled</TMPL_IF> value=<TMPL_VAR Command>><TMPL_VAR Command></button></td> <td> <table> --- 28,32 ---- <tr bgcolor=#BFD8BC> </TMPL_IF> ! <td><button type=submit name=command value=<TMPL_VAR Command>><TMPL_VAR Command></button></td> <td> <table> *************** *** 41,45 **** <table width=100%> <tr> ! <td><TMPL_VAR FileName></td> </tr> <tr> --- 42,51 ---- <table width=100%> <tr> ! <TMPL_IF Seedless> ! <td style="font-color:red"> ! <TMPL_ELSE> ! <td> ! </TMPL_IF> ! <TMPL_VAR FileName></td> </tr> <tr> *************** *** 53,60 **** <TMPL_IF Hashing> <td bgcolor=#CC6666 width=<TMPL_VAR PercentDone>% style="font-size:2px"> </td> ! <td bgcolor=#6666CC width=<TMPL_VAR PercentLeft>% style="font-size:2px"> </td> <TMPL_ELSE> ! <td bgcolor=#66CC66 width=<TMPL_VAR PercentDone>% style="font-size:2px"> </td> ! <td bgcolor=#CC6666 width=<TMPL_VAR PercentLeft>% style="font-size:2px"> </td> </TMPL_IF> </TMPL_IF> --- 59,71 ---- <TMPL_IF Hashing> <td bgcolor=#CC6666 width=<TMPL_VAR PercentDone>% style="font-size:2px"> </td> ! <td bgcolor=#6666CC width=<TMPL_VAR PercentLeft>% style="font-size:2px"> </td> <TMPL_ELSE> ! <TMPL_IF Allocating> ! <td bgcolor=#CC6666 width=<TMPL_VAR PercentDone>% style="font-size:2px"> </td> ! <td bgcolor=#CCCC66 width=<TMPL_VAR PercentLeft>% style="font-size:2px"> </td> ! <TMPL_ELSE> ! <td bgcolor=#66CC66 width=<TMPL_VAR PercentDone>% style="font-size:2px"> </td> ! <td bgcolor=#CC6666 width=<TMPL_VAR PercentLeft>% style="font-size:2px"> </td> ! </TMPL_IF> </TMPL_IF> </TMPL_IF> *************** *** 70,73 **** --- 81,85 ---- <td align=center nowrap><TMPL_VAR FileSize></td> <td align=center nowrap><TMPL_VAR SpeedDown> <b>down</b><br> <TMPL_VAR SpeedUp> <b>up</b></td> + <td align=center nowrap><TMPL_VAR Uploaders> / <TMPL_VAR Downloaders></td> <td align=center nowrap><TMPL_VAR ETA></td> </tr> *************** *** 84,87 **** --- 96,100 ---- <th>Size</th> <th>Speed</th> + <th nowrap>UL/DL</th> <th>Status</th> </tr> *************** *** 95,98 **** --- 108,112 ---- <td align=center nowrap><TMPL_VAR FileSize></td> <td align=center nowrap><TMPL_VAR SpeedUp></td> + <td align=center nowrap><TMPL_VAR Uploaders> / <TMPL_VAR Downloaders></td> <td align=center><TMPL_VAR Status></td> </tr> |