summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-11-12 15:23:58 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-11-14 01:53:47 -0500
commit828f87e4a6996c0509e7ea65fd6d090bc6ee90b8 (patch)
tree4a9fdd65d0ab9c6832b5eaac0294ff428a72f7d1 /install
parent821987fe674d2685809d6150316b3a99bda37b6a (diff)
downloadfreeipa-828f87e4a6996c0509e7ea65fd6d090bc6ee90b8.tar.gz
freeipa-828f87e4a6996c0509e7ea65fd6d090bc6ee90b8.tar.xz
freeipa-828f87e4a6996c0509e7ea65fd6d090bc6ee90b8.zip
more css cleanup remove quick links css very close to specs
Diffstat (limited to 'install')
-rw-r--r--install/static/entity.js73
-rw-r--r--install/static/group.js3
-rw-r--r--install/static/host.js3
-rw-r--r--install/static/hostgroup.js3
-rw-r--r--install/static/ipa.css53
-rw-r--r--install/static/netgroup.js3
-rw-r--r--install/static/policy.js10
-rw-r--r--install/static/serverconfig.js9
-rw-r--r--install/static/service.js7
-rw-r--r--install/static/user.js1
10 files changed, 63 insertions, 102 deletions
diff --git a/install/static/entity.js b/install/static/entity.js
index 4ae979e7..94eab45b 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -318,18 +318,15 @@ function ipa_entity_setup(container, unspecified) {
facet.load(container, unspecified);
}
-function ipa_facet_setup_views(container) {
-
- var facet = this;
- var div = $('<div/>',
- {
- "class":"action-panel",
- html: $('<h3>Actions</h3>'),
- }).appendTo(container);
+function action_panel(entity_name){
+ var div = $('<div/>', {
+ "class":"action-panel",
+ html: $('<h3>Actions</h3>'),
+ });
var ul = $('<ul/>', {'class': 'action'}).appendTo(div);
- var entity = IPA.get_entity(facet.entity_name);
+ var entity = IPA.get_entity(entity_name);
for (var i=0; i<entity.facets.length; i++) {
var other_facet = entity.facets[i];
@@ -346,12 +343,12 @@ function ipa_facet_setup_views(container) {
return function() {
IPA.show_page(entity_name, facet_name);
};
- }(facet.entity_name, facet_name)
+ }(entity_name, facet_name)
}));
} else { // For now empty label indicates an association facet
- var attribute_members = IPA.metadata[facet.entity_name].attribute_members;
+ var attribute_members = IPA.metadata[entity_name].attribute_members;
for (var attribute_member in attribute_members) {
var other_entities = attribute_members[attribute_member];
for (var j = 0; j < other_entities.length; j++) {
@@ -365,60 +362,20 @@ function ipa_facet_setup_views(container) {
return function() {
IPA.show_page(entity_name, facet_name, other_entity);
};
- }(facet.entity_name, facet_name, other_entity)
+ }(entity_name, facet_name, other_entity)
}));
}
}
}
}
+ return div;
}
-function ipa_entity_quick_links(container, name, value, entry_attrs) {
-
- var obj_name = container.closest('.entity-container').attr('title');
- var pkey = IPA.metadata[obj_name].primary_key;
- var pkey_value = entry_attrs[pkey];
-
- var span = $('span[name="'+name+'"]', container);
- span.empty();
-
- $("<a/>", {
- href: '#details',
- title: 'Details',
- text: 'Details',
- click: function() {
- var state = {};
- state[obj_name+'-facet'] = 'details';
- state[obj_name+'-pkey'] = pkey_value;
- nav_push_state(state);
- return false;
- }
- }).appendTo(span);
-
- var attribute_members = IPA.metadata[obj_name].attribute_members;
- for (attr_name in attribute_members) {
- var objs = attribute_members[attr_name];
- for (var i = 0; i < objs.length; ++i) {
- var m = objs[i];
- var label = IPA.metadata[m].label;
- span.append(' | ');
+function ipa_facet_setup_views(container) {
- $("<a/>", {
- href: '#'+m,
- title: label,
- text: label,
- click: function(m) {
- return function() {
- var state = {};
- state[obj_name+'-facet'] = 'associate';
- state[obj_name+'-enroll'] = m;
- state[obj_name+'-pkey'] = pkey_value;
- nav_push_state(state);
- return false;
- }
- }(m)
- }).appendTo(span);
- }
- }
+ var facet = this;
+ var entity_name = facet.entity_name;
+ action_panel(entity_name).appendTo(container);
}
+
diff --git a/install/static/group.js b/install/static/group.js
index 97f498ae..45aa83a5 100644
--- a/install/static/group.js
+++ b/install/static/group.js
@@ -69,8 +69,7 @@ function ipa_group_add_dialog(spec) {
ipa_entity_set_search_definition('group', [
['cn', 'Name', null],
['gidnumber', 'GID', null],
- ['description', 'Description', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['description', 'Description', null]
]);
ipa_entity_set_details_definition('group',[
diff --git a/install/static/host.js b/install/static/host.js
index 65c2b571..bd9deda3 100644
--- a/install/static/host.js
+++ b/install/static/host.js
@@ -24,8 +24,7 @@ ipa_entity_set_search_definition('host', [
['fqdn', 'Name', null],
['description', 'Description', null],
['enrolled', 'Enrolled?', null],
- ['manages', 'Manages?', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['manages', 'Manages?', null]
]);
ipa_entity_set_add_definition('host', [
diff --git a/install/static/hostgroup.js b/install/static/hostgroup.js
index 02418bf0..eb7f8b5c 100644
--- a/install/static/hostgroup.js
+++ b/install/static/hostgroup.js
@@ -22,8 +22,7 @@
ipa_entity_set_search_definition('hostgroup', [
['cn', 'Name', null],
- ['description', 'Description', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['description', 'Description', null]
]);
ipa_entity_set_add_definition('hostgroup', [
diff --git a/install/static/ipa.css b/install/static/ipa.css
index ee4c85a7..6fac7ae7 100644
--- a/install/static/ipa.css
+++ b/install/static/ipa.css
@@ -6,7 +6,10 @@
*/
-body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
+body{
+ font: 62.5% "Trebuchet MS", sans-serif; margin: 5px;
+}
+
.demoHeaders { margin-top: 2em; }
@@ -20,7 +23,8 @@ div.header {
background-image: url(header_background.png);
background: -moz-linear-gradient(top, #65646e, #1f1f1f);
background-color: #1f1f1f;
- height: 70px;
+ height: 25px;
+ width: 100%;
}
div.header a {
@@ -37,13 +41,14 @@ div.header a:visited {
color: white;
}
-div.header div.header-logo {
- float: left;
- padding: 10px 10px 0 10px;
+div.header span.header-logo {
+# float: left;
+ padding-left: 100px;
}
-div.header div.header-logo img {
+div.header span.header-logo a img {
border: 0;
+ height: 25px;
}
div.header span.header-loggedinas {
@@ -56,6 +61,8 @@ div.header span.header-loggedinas {
/* ---- Navigation ---- */
div.tabs {
overflow: auto;
+ width: 100%;
+ height: 100%;
}
@@ -178,15 +185,23 @@ span.attrhint {
position: absolute;
}
+.ui-tabs-nav{
+}
+
/*Navigation */
.tabs1 .ui-tabs-nav{
- margin: 0; padding: 2.9em .2em 0;
+ padding-left: 50px;
+ margin: 0;
background-image: url(Mainnav-background.png);
-
}
-.ui-tabs .ui-tabs-nav li { height: 30px; margin: 0 0 1px 0;}
+.ui-tabs .ui-tabs-nav li {
+ height: 30px;
+ margin: 0 0 0 0;
+ padding: 0 0 0 0;
+ border-width: 0;
+ }
.tabs1 .ui-tabs-nav li a{
@@ -205,13 +220,17 @@ span.attrhint {
color: lightgreen;
}
-.tabs1 .ui-tabs-panel { display: block; border-width: 0; padding: 0.1em 0.4em; background: none; }
+.tabs1 .ui-tabs-panel {
+ display: block; border-width: 0;
+ padding: 0 0;
+ background: none;
+}
+
.tabs2 .ui-tabs-nav {
background-image: url(Subnav-background.png);
- margin: 0; padding: .1em .2em 0;
-
+ margin: 0;
}
@@ -259,7 +278,8 @@ span.main-separator{
.entity-container{
position: relative;
width: 80%;
- height: 1000px;
+ height: 100%;
+ min-height: 200 px;
margin: 10px;
padding: 10px;
background: #e8e8e8;
@@ -267,15 +287,18 @@ span.main-separator{
.action-panel {
position:relative;
- top:50px;
+ top:30px;
+ left: -20px;
border-width: thin;
border-style: solid;
border-color: black;
float: left;
+ margin: 10px;
}
.action-panel h3{
- border-width: thin;
+ margin: 0;
+ border-width: thin;
border-style: solid;
border-color: black;
background: #e8e8e8;
diff --git a/install/static/netgroup.js b/install/static/netgroup.js
index 5bedc935..0341ed78 100644
--- a/install/static/netgroup.js
+++ b/install/static/netgroup.js
@@ -22,8 +22,7 @@
ipa_entity_set_search_definition('netgroup', [
['cn', 'Name', null],
- ['description', 'Description', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['description', 'Description', null]
]);
ipa_entity_set_add_definition('netgroup', [
diff --git a/install/static/policy.js b/install/static/policy.js
index 89fe16a7..26af6aa1 100644
--- a/install/static/policy.js
+++ b/install/static/policy.js
@@ -22,8 +22,7 @@
/* DNS */
ipa_entity_set_search_definition('dns', [
- ['idnsname', 'Zone Name', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['idnsname', 'Zone Name', null]
]);
@@ -459,9 +458,7 @@ function ipa_records_facet(spec){
/**Automount*/
ipa_entity_set_search_definition('automountlocation', [
- ['cn', 'Name', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
-
+ ['cn', 'Name', null]
]);
ipa_entity_set_add_definition('automountlocation', [
@@ -482,8 +479,7 @@ ipa_entity_set_association_definition('automountlocation', {
/**pwpolicy*/
ipa_entity_set_search_definition('pwpolicy', [
- ['cn', 'Name', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['cn', 'Name', null]
]);
diff --git a/install/static/serverconfig.js b/install/static/serverconfig.js
index 327616aa..63c77d06 100644
--- a/install/static/serverconfig.js
+++ b/install/static/serverconfig.js
@@ -25,8 +25,7 @@
/* ACI */
ipa_entity_set_search_definition('aci', [
- ['cn', 'ACI name', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['cn', 'ACI name', null]
]);
ipa_entity_set_add_definition('aci', [
@@ -48,8 +47,7 @@ ipa_entity_set_details_definition('aci', [
ipa_entity_set_search_definition('taskgroup', [
['cn', 'Role-group name', null],
- ['description', 'Description', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['description', 'Description', null]
]);
ipa_entity_set_add_definition('taskgroup', [
@@ -80,8 +78,7 @@ ipa_entity_set_association_definition('rolegroup', {
ipa_entity_set_search_definition('rolegroup', [
['cn', 'Role-group name', null],
- ['description', 'Description', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
+ ['description', 'Description', null]
]);
ipa_entity_set_add_definition('rolegroup', [
diff --git a/install/static/service.js b/install/static/service.js
index f4179cb8..4d1c94b9 100644
--- a/install/static/service.js
+++ b/install/static/service.js
@@ -160,13 +160,6 @@ function ipa_service_search_facet(spec) {
that.init = function() {
this.create_column({name:'krbprincipalname', label:'Principal'});
-
- this.create_column({
- name: 'quick_links',
- label: 'Quick Links',
- setup: ipa_entity_quick_links
- });
-
that.super_init();
};
diff --git a/install/static/user.js b/install/static/user.js
index 035bf9e7..74c003e5 100644
--- a/install/static/user.js
+++ b/install/static/user.js
@@ -27,7 +27,6 @@ ipa_entity_set_search_definition('user', [
['mail', 'EMAIL', null],
['telephonenumber', 'Phone', null],
['title', 'Job Title', null],
- ['quick_links', 'Quick Links', ipa_entity_quick_links]
]);
ipa_entity_set_add_definition('user', [