From 8c56a86280f376f7998ed3352271fa55bfec3fe3 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 25 May 2017 16:04:38 -0400 Subject: [PATCH] Add messaging if viewing a repo via the wrong path --- static/css/pages/error-view.css | 4 ++++ static/partials/app-view.html | 16 +++++++++++++++- static/partials/repo-view.html | 26 +++++++++----------------- 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/static/css/pages/error-view.css b/static/css/pages/error-view.css index d140d7206..bee7921d6 100644 --- a/static/css/pages/error-view.css +++ b/static/css/pages/error-view.css @@ -7,6 +7,10 @@ margin-bottom: 10px; } +.error-view-element h2 .repo-circle { + margin-right: 16px; +} + .error-view-element h3 { font-size: 24px; } diff --git a/static/partials/app-view.html b/static/partials/app-view.html index d8d5d0587..5829ee806 100644 --- a/static/partials/app-view.html +++ b/static/partials/app-view.html @@ -1,5 +1,19 @@
- + +
+
+

{{ viewScope.repository.namespace }}/{{ viewScope.repository.name }}

+

This name refers to a container image repository

+
+ View the {{ viewScope.repository.namespace }}/{{ viewScope.repository.name }} image repository +
+
+
+ + +
+ +
diff --git a/static/partials/repo-view.html b/static/partials/repo-view.html index 9da90ba49..af949ed0d 100644 --- a/static/partials/repo-view.html +++ b/static/partials/repo-view.html @@ -2,26 +2,18 @@ resource="repositoryResource" error-message="'Repository not found'">
- -
- -
- -
- + +
+
+

{{ viewScope.repository.namespace }}/{{ viewScope.repository.name }}

+

This name refers to an application repository

+ - -
- -
-
- -
-
- -
+ +