summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Laughlin <clark.laughlin@linaro.org>2015-11-02 16:14:45 -0500
committerClark Laughlin <clark.laughlin@linaro.org>2015-11-02 16:14:45 -0500
commit85648c4e6ce707d3b8fe5d15ba5a916ea8450c92 (patch)
treefafa045b423279eaf009d078de8ddea6cc13f83e
parent6b45d5bd2ecfb653941886d50de9e9bff9e569bd (diff)
updated display of tiles to include link
-rw-r--r--registry-browser/server.go2
-rw-r--r--registry-browser/static/index.html13
2 files changed, 13 insertions, 2 deletions
diff --git a/registry-browser/server.go b/registry-browser/server.go
index d4e5490..8f0d68f 100644
--- a/registry-browser/server.go
+++ b/registry-browser/server.go
@@ -87,7 +87,7 @@ func Handle_Quay_AllRepos(w http.ResponseWriter, r *http.Request) {
ns := each["namespace"].(string)
name := each["name"].(string)
desc := each["description"].(string)
- link := fmt.Sprintf("%s/repository/%s/%s", *registryServer, namespace, name)
+ link := fmt.Sprintf("%s/repository/%s/%s", *registryServer, ns, name)
url2 := fmt.Sprintf("%s/api/v1/repository/%s/%s/tag/", *registryServer, ns, name)
content, err := MakeHttpRequest(url2)
diff --git a/registry-browser/static/index.html b/registry-browser/static/index.html
index dc09623..762e6a6 100644
--- a/registry-browser/static/index.html
+++ b/registry-browser/static/index.html
@@ -17,6 +17,16 @@
font-weight: 700;
}
+ a, a:visited {
+ color: black;
+ text-decoration: none;
+ }
+
+ a:hover {
+ color: #99c747;
+ text-decoration: none;
+ }
+
body {
font-family: "Merriweather Sans", Arial, serif;
font-weight: 200;
@@ -109,6 +119,7 @@ $(function() {
sorted_tags.unshift('latest');
}
+ e['formatted-name'] = '<a href="' + e['link'] + '">' + e['name'] + '</a>';
e['formatted-tags'] = '<li>' + sorted_tags.join('</li><li>') + '</li>';
});
@@ -138,7 +149,7 @@ Aarch64 Docker Registry</h1>
<div style="display:none;">
<!-- A template element is needed when list is empty, TODO: needs a better solution -->
<li id="repo-item">
- <h4 class="name"></h4>
+ <h4 class="formatted-name"></h4>
<span class="tags-header">Tags:</span><span class="formatted-tags"></span>
</li>
</div>