From 39021be48ccc51ad10872ac9c6edddd64b65f176 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 15 May 2015 19:46:21 +0300 Subject: [PATCH] Editor: add a link to the install source page --- edit.html | 11 +++++++++++ edit.js | 1 + 2 files changed, 12 insertions(+) diff --git a/edit.html b/edit.html index d5473844..3e976788 100644 --- a/edit.html +++ b/edit.html @@ -81,6 +81,16 @@ #name { width: 100%; } + #basic-info-name { + display: flex; + align-items: center; + } + #url { + margin-left: 0.25rem; + } + #url:not([href^="http"]) { + display: none; + } #enabled { margin-left: 0; vertical-align: middle; @@ -353,6 +363,7 @@
+
diff --git a/edit.js b/edit.js index d5be1c5b..69a9f62c 100644 --- a/edit.js +++ b/edit.js @@ -746,6 +746,7 @@ function init() { function initWithStyle(style) { document.getElementById("name").value = style.name; document.getElementById("enabled").checked = style.enabled == "true"; + document.getElementById("url").href = style.url; tE("heading", "editStyleHeading", null, false); // if this was done in response to an update, we need to clear existing sections document.querySelectorAll("#sections > div").forEach(function(div) {