diff --git a/index.html b/index.html index 660f360..ff3f34e 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,7 @@ + Docker Registry UI diff --git a/style.css b/style.css index d23225e..1879d08 100644 --- a/style.css +++ b/style.css @@ -14,6 +14,11 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ + +html > body { + font-family: 'Roboto','Helvetica','Arial',sans-serif !important; +} + .mdl-mini-footer { padding-top: 8px; padding-bottom: 8px; @@ -26,3 +31,15 @@ .section-centerd { margin: auto; } +.mdl-data-table th { + font-size: 20px; +} + +.mdl-data-table td { + font-size: 18px; +} + +.full-table { + width: 100%; + border: none; +} diff --git a/taglist.tag b/taglist.tag index 07341e8..8592696 100644 --- a/taglist.tag +++ b/taglist.tag @@ -24,11 +24,20 @@
- + + + + + + + + + + + + + +
RepositoryTag
{ registryUI.taglist.name }{ item }
@@ -58,7 +67,7 @@ }; oReq.addEventListener('load', function () { if (this.status == 200) { - registryUI.taglist.tags = JSON.parse(this.responseText).tags; + registryUI.taglist.tags = JSON.parse(this.responseText).tags.sort(); } else if (this.status == 404) { registryUI.taglist.createSnackbar('Server not found'); } else { @@ -77,6 +86,16 @@ oReq.send(); riot.update(); } + registryUI.taglist.reverse = function (th){ + console.log(th) + if (th.className == 'mdl-data-table__header--sorted-ascending') { + th.className = 'mdl-data-table__header--sorted-descending'; + } else { + th.className = 'mdl-data-table__header--sorted-ascending'; + } + registryUI.taglist.tags.reverse(); + registryUI.taglist.instance.update(); + };