diff --git a/public/css/addon.css b/public/css/addon.css index 237081e..7847dac 100644 --- a/public/css/addon.css +++ b/public/css/addon.css @@ -2,6 +2,24 @@ body { background: #fff; } +section + section { + margin-top: 9px; +} + +.section-manage { + margin-left: 17px; +} + +.container { + display: inline-block; +} + +.container + .container::before { + content: ','; + display: inline-block; + padding-right: 4px; +} + .icon-status { margin-left: 2px; margin-right: 6px; @@ -13,5 +31,4 @@ body { .link { display: inline-block; - margin-top: 9px; } diff --git a/views/web-panel.hbs b/views/web-panel.hbs index 9721dd6..afdc922 100644 --- a/views/web-panel.hbs +++ b/views/web-panel.hbs @@ -1,28 +1,29 @@ {{!< layout}} {{#if instance}} - {{#if isTestingOnly}} -
Tests {{{testResults}}} {{{repoName}}}/{{{instanceName}}}.
-
View on Runnable
- {{else}} - {{#if status}} - {{!-- - possible status colors: - "green" - "orange" - "red" - "gray" - --}} -
{{{ state }}} {{{repoName}}}/{{{instanceName}}}.
-
View output
-
Manage on Runnable
- {{else}} - {{!-- if no status (between building and running) --}} -
{{{ state }}} {{{repoName}}}/{{{instanceName}}}
-
View output
-
Manage on Runnable
- {{/if}} + {{!-- staging containers --}} +
+ {{#each container}} +
+ + {{{instanceName}}} +
+ {{/each}} +
+ + {{!-- conditionally show test results --}} + {{#if testResults}} +
+ + {{{testResults}}} +
{{/if}} + + {{!-- manage on runnable url --}} +
+ Manage on Runnable +
{{/if}} + {{#unless instance}}
🔭 {{{text}}}
Go to Runnable