Update of /cvsroot/btplusplus/BT++/src/WebTemplates
In directory sc8-pr-cvs1:/tmp/cvs-serv23728/WebTemplates
Modified Files:
config.tmpl torrent.tmpl
Log Message:
Abstraction of seed management, seed managament for WT++, a few bug
fixes
Index: config.tmpl
===================================================================
RCS file: /cvsroot/btplusplus/BT++/src/WebTemplates/config.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** config.tmpl 2 Mar 2003 02:55:41 -0000 1.1
--- config.tmpl 11 Mar 2003 01:07:21 -0000 1.2
***************
*** 42,45 ****
--- 42,49 ----
</tr>
<tr>
+ <td>Automatically seed completed downloads</td>
+ <td width=5% align=center><input type=checkbox name=Download_KeepUpload <TMPL_IF download_keepupload>CHECKED</TMPL_IF> value="1"></td>
+ </tr>
+ <tr>
<td>Maximal simultanous downloads (1-10)</td>
<td width=5%><input type=text style="width:100%" name=Download_MaxSimDown value="<TMPL_VAR download_maxsimdown>"></td>
Index: torrent.tmpl
===================================================================
RCS file: /cvsroot/btplusplus/BT++/src/WebTemplates/torrent.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** torrent.tmpl 27 Feb 2003 00:44:40 -0000 1.1
--- torrent.tmpl 11 Mar 2003 01:07:21 -0000 1.2
***************
*** 21,24 ****
--- 21,25 ----
<form method=POST action="torrents">
<input type=hidden name=nr value=<TMPL_VAR __PASS__>>
+ <input type=hidden name=seed value=0>
<TMPL_IF Auto>
<tr bgcolor=#CCFFCC>
***************
*** 75,78 ****
--- 76,104 ----
</table>
</TMPL_UNLESS>
+ <TMPL_IF Seeds>
+ <p>
+ <table border=1 width=100% cellpadding=3>
+ <tr bgcolor=#DDDDDD>
+ <th>Seeds</th>
+ <th align=left>File</th>
+ <th>Size</th>
+ <th>Speed</th>
+ <th>Status</th>
+ </tr>
+ <TMPL_LOOP Seeds>
+ <form method=POST action="torrents">
+ <input type=hidden name=nr value=<TMPL_VAR __PASS__>>
+ <input type=hidden name=seed value=1>
+ <tr bgcolor=#FFCCCC>
+ <td><button type=submit name=command value=<TMPL_VAR Command>><TMPL_VAR Command></button></td>
+ <td align=left nowrap width=100%><TMPL_VAR FileName></td>
+ <td align=center nowrap><TMPL_VAR FileSize></td>
+ <td align=center nowrap><TMPL_VAR SpeedUp></td>
+ <td align=center><TMPL_VAR Status></td>
+ </tr>
+ </form>
+ </TMPL_LOOP>
+ </table>
+ </TMPL_IF>
</body>
</html>
|