remove fetch link, make the file name a link

pull/34/head
Zlatin Balevsky 2019-12-16 14:43:38 +00:00
parent 6bcc44e01e
commit 31cac25a23
2 changed files with 5 additions and 5 deletions

View File

@ -30,9 +30,9 @@ class Node {
if (this.certified == "true")
certified = _t("Certified")
var fetchLink = "<a href='/MuWire/DownloadedContent/" + this.infoHash + "'>" + _t("Fetch") + "</a>"
var html = "<li>" + this.path
html += "<div>" + unshareLink + " " + fetchLink + " " + commentLink + " " + certifyLink + " " + certified + "</div>"
var nameLink = "<a href='/MuWire/DownloadedContent/" + this.infoHash + "'>" + this.path + "</a>"
var html = "<li>" + nameLink
html += "<div>" + unshareLink + " " + commentLink + " " + certifyLink + " " + certified + "</div>"
html += "<div id='comment-" + this.nodeId + "'></div>"
html += "</li>"

View File

@ -20,9 +20,9 @@ class SharedFile {
var showCommentLink = new Link(_t("Comment"), "showCommentForm", [this.path])
showCommentHtml = "<span id='comment-link-" + this.path + "'>" + showCommentLink.render() + "</span>"
var commentDiv = "<div class='right' id='comment-" + this.path + "'></div>"
var fetchLink = "<a href='/MuWire/DownloadedContent/" + this.infoHash + "'>" + _t("Fetch") + "</a>"
var nameLink = "<a href='/MuWire/DownloadedContent/" + this.infoHash + "'>" + this.name + "</a>"
var html = this.name + "<div class=\"right\">" + unshareLink.render() + " " + fetchLink + " " + showCommentHtml + " " + certifyHtml + "</div>"
var html = nameLink + "<div class=\"right\">" + unshareLink.render() + " " + showCommentHtml + " " + certifyHtml + "</div>"
html += commentDiv
mapping.set("File", html)