summaryrefslogtreecommitdiffstats
path: root/install/static/entity.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-11-09 20:04:49 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-11-14 01:53:41 -0500
commit821987fe674d2685809d6150316b3a99bda37b6a (patch)
tree105cf5c77a3752533b1a730447b5561c34cb92b6 /install/static/entity.js
parentd658b0de5c52d5b9e2679f05f8c0b15237c63c15 (diff)
downloadfreeipa-821987fe674d2685809d6150316b3a99bda37b6a.tar.gz
freeipa-821987fe674d2685809d6150316b3a99bda37b6a.tar.xz
freeipa-821987fe674d2685809d6150316b3a99bda37b6a.zip
layout
Closer to the layout from the spec The facets have been moved to the action panel, to the left of the page the facets are now rendered in an area of the screen with a client class
Diffstat (limited to 'install/static/entity.js')
-rw-r--r--install/static/entity.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/install/static/entity.js b/install/static/entity.js
index 1eadea6d..4ae979e7 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -311,7 +311,9 @@ function ipa_entity_setup(container, unspecified) {
container.empty();
+ facet.setup_views(container);
facet.create(container);
+ container.children().last().addClass('client');
facet.setup(container, unspecified);
facet.load(container, unspecified);
}
@@ -320,7 +322,12 @@ function ipa_facet_setup_views(container) {
var facet = this;
- var ul = $('<ul/>', {'class': 'entity-views'}).appendTo(container);
+ var div = $('<div/>',
+ {
+ "class":"action-panel",
+ html: $('<h3>Actions</h3>'),
+ }).appendTo(container);
+ var ul = $('<ul/>', {'class': 'action'}).appendTo(div);
var entity = IPA.get_entity(facet.entity_name);
@@ -331,7 +338,6 @@ function ipa_facet_setup_views(container) {
if (other_facet.label) {
var label = other_facet.label;
- if (i > 0) label = '| '+label;
ul.append($('<li/>', {
title: other_facet.name,
@@ -352,8 +358,6 @@ function ipa_facet_setup_views(container) {
var other_entity = other_entities[j];
var label = IPA.metadata[other_entity].label;
- if (i > 0 || j > 0) label = '| ' + label;
-
ul.append($('<li/>', {
title: other_entity,
text: label,