From 31cac25a23075f06216384ee1250ffb318aa2eea Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Mon, 16 Dec 2019 14:43:38 +0000 Subject: [PATCH] remove fetch link, make the file name a link --- webui/src/main/js/files.js | 6 +++--- webui/src/main/js/filesTable.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/webui/src/main/js/files.js b/webui/src/main/js/files.js index bbc19838..072c9d2e 100644 --- a/webui/src/main/js/files.js +++ b/webui/src/main/js/files.js @@ -30,9 +30,9 @@ class Node { if (this.certified == "true") certified = _t("Certified") - var fetchLink = "" + _t("Fetch") + "" - var html = "
  • " + this.path - html += "
    " + unshareLink + " " + fetchLink + " " + commentLink + " " + certifyLink + " " + certified + "
    " + var nameLink = "" + this.path + "" + var html = "
  • " + nameLink + html += "
    " + unshareLink + " " + commentLink + " " + certifyLink + " " + certified + "
    " html += "
    " html += "
  • " diff --git a/webui/src/main/js/filesTable.js b/webui/src/main/js/filesTable.js index 4b4e2224..b63ac94b 100644 --- a/webui/src/main/js/filesTable.js +++ b/webui/src/main/js/filesTable.js @@ -20,9 +20,9 @@ class SharedFile { var showCommentLink = new Link(_t("Comment"), "showCommentForm", [this.path]) showCommentHtml = "" + showCommentLink.render() + "" var commentDiv = "
    " - var fetchLink = "" + _t("Fetch") + "" + var nameLink = "" + this.name + "" - var html = this.name + "
    " + unshareLink.render() + " " + fetchLink + " " + showCommentHtml + " " + certifyHtml + "
    " + var html = nameLink + "
    " + unshareLink.render() + " " + showCommentHtml + " " + certifyHtml + "
    " html += commentDiv mapping.set("File", html)