Add an Edit button beside Download on a finished video
A finished video was a dead end from this page: you could watch it or download it, and the only way back into the shots, cutaways and cut was to know the script URL. Edit goes to the detail screen, which is now where re-filming and the cut live.
This commit is contained in:
parent
40b47c6c7f
commit
99e2e7ce85
1 changed files with 7 additions and 0 deletions
|
|
@ -59,8 +59,15 @@ function card(p) {
|
||||||
} else if (p.status === "approved" || p.status === "script_failed") {
|
} else if (p.status === "approved" || p.status === "script_failed") {
|
||||||
cta = '<a class="btn ghost" style="display:inline-block;text-decoration:none;margin-top:10px" href="/script.html?id='
|
cta = '<a class="btn ghost" style="display:inline-block;text-decoration:none;margin-top:10px" href="/script.html?id='
|
||||||
+ encodeURIComponent(p.id) + '">See the script</a>';
|
+ encodeURIComponent(p.id) + '">See the script</a>';
|
||||||
|
} else if (p.status === "draft") {
|
||||||
|
cta = '<a class="btn" style="display:inline-block;text-decoration:none;margin-top:10px" href="/create.html?id='
|
||||||
|
+ encodeURIComponent(p.id) + '">Finish setting it up</a>';
|
||||||
}
|
}
|
||||||
if (p.video_url) {
|
if (p.video_url) {
|
||||||
|
// A finished video was a dead end here: watch or download, and no way back
|
||||||
|
// into the shots, the cutaways or the cut without knowing the URL.
|
||||||
|
cta += '<a class="btn" style="display:inline-block;text-decoration:none;margin-top:10px;margin-left:8px" href="/script.html?id='
|
||||||
|
+ encodeURIComponent(p.id) + '">Edit</a>';
|
||||||
cta += '<a class="btn ghost" style="display:inline-block;text-decoration:none;margin-top:10px;margin-left:8px" href="'
|
cta += '<a class="btn ghost" style="display:inline-block;text-decoration:none;margin-top:10px;margin-left:8px" href="'
|
||||||
+ esc(p.video_url) + '" download>Download</a>';
|
+ esc(p.video_url) + '" download>Download</a>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue