diff --git a/dist/base.html b/dist/base.html index 56d2383..ab7739b 100644 --- a/dist/base.html +++ b/dist/base.html @@ -17,6 +17,10 @@ body { padding: 6px; } +#app { + margin-bottom: 22px; +} + .md-table { height: 80%; } @@ -47,6 +51,10 @@ body { text-decoration: underline; } +.md-card { + margin-top: 6px; +} + {% block style %}{% end %} diff --git a/dist/index.html b/dist/index.html index f8f8e8f..d89970b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -20,24 +20,42 @@ - ${ item.id } + + ${ item.id } + check_box check_box_outline_blank - ${ item.title } - ${ item.url } - ${ triggerString(item) } - ${ item.last_history && item.last_history.message } - - - history - + + ${ item.title } +
+ + link + ${ prettifyLink(item) } + ${ item.url } +
- - - play_circle_outline - + + ${ triggerString(item) } +
+ last check: ${ prettifyLastCheck(item) } +
+ +
+
+ + history + show history + +
+
+ + play_circle_outline + run now + +
+
@@ -72,6 +90,20 @@ var app = new Vue({ self.schedules = schedules; }); }, + prettifyLink: function(item) { + var link = item.url; + if (!link) { + return ''; + } + if (link.length > 40) { + link = link.substring(0, 40) + "\u2026"; + } + return link; + }, + prettifyLastCheck: function(item) { + var last = item.last_history && item.last_history.message; + return last.substring(0, last.indexOf('.')); + }, triggerString: function(item) { if (item.trigger == 'cron') { return 'cron: ' + item.cron_crontab; @@ -105,3 +137,10 @@ var app = new Vue({ {% end %} +{% block style %} + +.table-cell-left > .md-table-cell-container { + padding-left: 12px; +} + +{% end %} diff --git a/dist/schedule.html b/dist/schedule.html index c2bdeac..bcd2f06 100644 --- a/dist/schedule.html +++ b/dist/schedule.html @@ -2,7 +2,7 @@ {% block body %}
-
+
@@ -14,7 +14,7 @@
-
+
@@ -63,7 +63,7 @@
-
+