mirror of
https://github.com/9001/copyparty.git
synced 2025-12-08 06:03:29 -07:00
fix double pathsep in ongoing-xfer links
This commit is contained in:
parent
889bd3242a
commit
f4d67ff031
|
|
@ -5269,10 +5269,11 @@ class HttpCli(object):
|
|||
fdone = max(0.001, 1 - rem)
|
||||
td = max(0.1, now - t0)
|
||||
rd, fn = vsplit(vp.replace(os.sep, "/"))
|
||||
if not rd:
|
||||
rd = "/"
|
||||
erd = quotep(rd)
|
||||
rds = rd.replace("/", " / ")
|
||||
if rd:
|
||||
rds = rd.replace("/", " / ")
|
||||
erd = "/%s/" % (quotep(rd),)
|
||||
else:
|
||||
erd = rds = "/"
|
||||
spd = humansize(sz * fdone / td, True) + "/s"
|
||||
eta = s2hms((td / fdone) - td, True) if rem < 1 else "--"
|
||||
idle = s2hms(now - poke, True)
|
||||
|
|
@ -5299,10 +5300,11 @@ class HttpCli(object):
|
|||
for t0, t1, sent, sz, vp, dl_id, uname in dl_list:
|
||||
td = max(0.1, now - t0)
|
||||
rd, fn = vsplit(vp)
|
||||
if not rd:
|
||||
rd = "/"
|
||||
erd = quotep(rd)
|
||||
rds = rd.replace("/", " / ")
|
||||
if rd:
|
||||
rds = rd.replace("/", " / ")
|
||||
erd = "/%s/" % (quotep(rd),)
|
||||
else:
|
||||
erd = rds = "/"
|
||||
spd = humansize(sent / td, True) + "/s"
|
||||
hsent = humansize(sent, True)
|
||||
idle = s2hms(now - t1, True)
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
<thead><tr><th>%</th><th>speed</th><th>eta</th><th>idle</th><th>dir</th><th>file</th></tr></thead>
|
||||
<tbody>
|
||||
{%- for u in ups %}
|
||||
<tr><td>{{ u[0] }}</td><td>{{ u[1] }}</td><td>{{ u[2] }}</td><td>{{ u[3] }}</td><td><a href="{{ r }}/{{ u[4] }}">{{ u[5]|e }}</a></td><td>{{ u[6]|e }}</td></tr>
|
||||
<tr><td>{{ u[0] }}</td><td>{{ u[1] }}</td><td>{{ u[2] }}</td><td>{{ u[3] }}</td><td><a href="{{ r }}{{ u[4] }}">{{ u[5]|e }}</a></td><td>{{ u[6]|e }}</td></tr>
|
||||
{%- endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
<thead><tr><th>%</th><th>sent</th><th>speed</th><th>eta</th><th>idle</th><th></th><th>dir</th><th>file</th></tr></thead>
|
||||
<tbody>
|
||||
{%- for u in dls %}
|
||||
<tr><td>{{ u[0] }}</td><td>{{ u[1] }}</td><td>{{ u[2] }}</td><td>{{ u[3] }}</td><td>{{ u[4] }}</td><td>{{ u[5] }}</td><td><a href="{{ r }}/{{ u[6] }}">{{ u[7]|e }}</a></td><td>{{ u[8] }}</td></tr>
|
||||
<tr><td>{{ u[0] }}</td><td>{{ u[1] }}</td><td>{{ u[2] }}</td><td>{{ u[3] }}</td><td>{{ u[4] }}</td><td>{{ u[5] }}</td><td><a href="{{ r }}{{ u[6] }}">{{ u[7]|e }}</a></td><td>{{ u[8] }}</td></tr>
|
||||
{%- endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Reference in a new issue