瀏覽代碼

Can not see or modify files if the task is open and the user is not the owner

https
jakobsn 6 年之前
父節點
當前提交
367dfe5105
共有 1 個文件被更改,包括 13 次插入10 次删除
  1. +13
    -10
      src/app/templates/project.html

+ 13
- 10
src/app/templates/project.html 查看文件

@@ -21,16 +21,19 @@ $def with (nav, project, tasks)
<ul>
$for task in tasks:
<li id="$task[0]">$task
<br>
$for filename in get_task_files(task[0]):
<a href="$filename[0]" download>$filename[0].split("/")[-1]</a>
<br>
<form method="POST" enctype="multipart/form-data" action="">
<input type="file" name="myfile" />
<br/>
<input type="hidden" name="taskid" value="$task[0]"/>
<input type="submit" name="submit"/>
</form>
<br>
$if project[5] == "in progress":
$for filename in get_task_files(task[0]):
<a href="$filename[0]" download>$filename[0].split("/")[-1]</a>
<br>
<form method="POST" enctype="multipart/form-data" action="">
<input type="file" name="myfile" />
<br/>
<input type="hidden" name="taskid" value="$task[0]"/>
<input type="submit" name="submit"/>
</form>
</li>
</ul>



Loading…
取消
儲存