diff --git a/endpoints/api.py b/endpoints/api.py
index 495981145..1e4e0bf20 100644
--- a/endpoints/api.py
+++ b/endpoints/api.py
@@ -672,7 +672,8 @@ def get_organization_members(orgname):
members = model.get_organization_members_with_teams(org)
for member in members:
if not member.user.username in members_dict:
- members_dict[member.user.username] = {'username': member.user.username,
+ members_dict[member.user.username] = {'name': member.user.username,
+ 'kind': 'user',
'is_robot': member.user.robot,
'teams': []}
@@ -697,7 +698,8 @@ def get_organization_member(orgname, membername):
member_teams = model.get_organization_members_with_teams(org, membername=membername)
for member in member_teams:
if not member_dict:
- member_dict = {'username': member.user.username,
+ member_dict = {'name': member.user.username,
+ 'kind': 'user',
'is_robot': member.user.robot,
'teams': []}
@@ -741,7 +743,8 @@ def get_organization_private_allowed(orgname):
def member_view(member):
return {
- 'username': member.username,
+ 'name': member.username,
+ 'kind': 'user',
'is_robot': member.robot,
}
@@ -2064,7 +2067,8 @@ def log_view(log):
if log.performer:
view['performer'] = {
- 'username': log.performer.username,
+ 'kind': 'user',
+ 'name': log.performer.username,
'is_robot': log.performer.robot,
}
diff --git a/static/css/quay.css b/static/css/quay.css
index af18ca590..96b01e354 100644
--- a/static/css/quay.css
+++ b/static/css/quay.css
@@ -77,10 +77,17 @@
position: relative;
}
-.entity-search-element .entity-icon {
- position: absolute;
+.entity-search-element .entity-reference {
+ position: absolute !important;
top: 0px;
- left: 8px;
+ left: 8px;
+ right: 36px;
+ z-index: 0;
+ pointer-events: none;
+}
+
+.entity-search-element .entity-reference .entity-name {
+ display: none;
}
.entity-search-element input {
@@ -89,6 +96,7 @@
.entity-search-element.persistent input {
padding-left: 28px;
+ padding-right: 28px;
}
.entity-search-element .twitter-typeahead {
@@ -155,6 +163,26 @@ i.toggle-icon:hover {
color: #aaa;
}
+.entity-reference.block-reference {
+ position: relative;
+ display: block;
+}
+
+.entity-reference.block-reference .entity-reference-element {
+ display: block;
+}
+
+.entity-reference.block-reference i.fa-exclamation-triangle {
+ position: absolute;
+ right: 10px;
+ top: 4px;
+}
+
+.entity-reference-element i.fa-exclamation-triangle {
+ color: #c09853;
+ margin-left: 10px;
+}
+
.entity-reference-element i.fa-user {
margin-left: 2px;
margin-right: 7px;
@@ -1127,7 +1155,7 @@ form input.ng-valid.ng-dirty,
.entity-mini-listing i.fa-exclamation-triangle {
position: absolute;
- right: -16px;
+ right: -14px;
top: 4px;
color: #c09853;
}
diff --git a/static/directives/entity-reference.html b/static/directives/entity-reference.html
index 509f4b03c..adde12400 100644
--- a/static/directives/entity-reference.html
+++ b/static/directives/entity-reference.html
@@ -1,8 +1,19 @@
-
-
-
- {{team}}
- {{team}}
- {{getPrefix(name)}}{{getShortenedName(name)}}
+
+
+
+ {{entity.name}}
+ {{entity.name}}
+
+
+
+
+
+
+ {{getPrefix(entity.name)}}{{getShortenedName(entity.name)}}
+
+
+
+
diff --git a/static/directives/entity-search.html b/static/directives/entity-search.html
index 63b64070c..e87f3e2c3 100644
--- a/static/directives/entity-search.html
+++ b/static/directives/entity-search.html
@@ -1,12 +1,5 @@
-
-
-
-
-
+