add line links

pull/414/head
HeNine 3 years ago
parent 9f4f15232f
commit ae1ca08dbe

@ -61,13 +61,20 @@
grid-column: text; grid-column: text;
} }
.line_links {
text-align: right;
a { a {
grid-column: times;
margin-left: 0.5em;
font-size: small; font-size: small;
font-family: @sans-serif; font-family: @sans-serif;
color: lightgray; color: lightgray;
text-align: right; text-align: right;
} }
} }
}
.line.verified { .line.verified {
background: #575757; background: #575757;

@ -45,6 +45,8 @@ function fillResults(results) {
const results_element = document.getElementById("results") const results_element = document.getElementById("results")
results_element.innerHTML = "" results_element.innerHTML = ""
const channel = document.getElementById("channel_select").value;
for (const line of results) { for (const line of results) {
const line_div = document.createElement("div"); const line_div = document.createElement("div");
@ -59,7 +61,10 @@ function fillResults(results) {
<div class="line_speakers">${line.speakers == null ? "" : line.speakers.join(", ")}</div> <div class="line_speakers">${line.speakers == null ? "" : line.speakers.join(", ")}</div>
<div class="line_start_time">${line.start_time}</div> <div class="line_start_time">${line.start_time}</div>
<div class="line_text">${line.text}</div> <div class="line_text">${line.text}</div>
<div class="line_links">
<a href="/professor/professor.html?line=${line.id}">Edit</a>
<a href="javascript:showContext('${line.start_time}');">Show context</a> <a href="javascript:showContext('${line.start_time}');">Show context</a>
</div>
`; `;

Loading…
Cancel
Save