Re: [Freeipa-devel] [PATCH] 0251-absolute-to-relative

2011-06-22 Thread Adam Young

On 06/22/2011 01:53 PM, Endi Sukma Dewata wrote:

On 6/22/2011 9:14 AM, Adam Young wrote:




As discussed over IRC, in this particular case the absolute 
positioning still has advantages over relative because it allows the 
elements in the header (e.g. title, back link, facet tabs, controls) 
to attach 'relative' to the header's borders.


This way when we change the elements in the header (e.g. hiding the 
facet tabs) the only thing that might need to change is the header 
height, which is the same as facet content's top position. I think 
this is easier to maintain rather than having to rely on the heights 
of each element in the header.



In short, NACK

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


Re: [Freeipa-devel] [PATCH] 0251-absolute-to-relative

2011-06-22 Thread Endi Sukma Dewata

On 6/22/2011 9:14 AM, Adam Young wrote:




As discussed over IRC, in this particular case the absolute positioning 
still has advantages over relative because it allows the elements in the 
header (e.g. title, back link, facet tabs, controls) to attach 
'relative' to the header's borders.


This way when we change the elements in the header (e.g. hiding the 
facet tabs) the only thing that might need to change is the header 
height, which is the same as facet content's top position. I think this 
is easier to maintain rather than having to rely on the heights of each 
element in the header.


--
Endi S. Dewata

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


[Freeipa-devel] [PATCH] 0251-absolute-to-relative

2011-06-22 Thread Adam Young


From 6ddf2efe36bec9befaacc778525309a38ce2de6d Mon Sep 17 00:00:00 2001
From: Adam Young 
Date: Wed, 22 Jun 2011 10:13:04 -0400
Subject: [PATCH] absolute to relative

---
 install/ui/ipa.css |   21 +
 1 files changed, 5 insertions(+), 16 deletions(-)

diff --git a/install/ui/ipa.css b/install/ui/ipa.css
index 45a17865fd007949137217b94c3a23c90390..d324131da1a99094786b7286974a493e1d1404ca 100644
--- a/install/ui/ipa.css
+++ b/install/ui/ipa.css
@@ -37,7 +37,7 @@ html {
 }
 
 body {
-overflow: auto;
+overflow: hidden;
 background: url("outer-bg.png");
 background-repeat: repeat-x;
 background-position: left top;
@@ -391,18 +391,13 @@ div.tabs {
 }
 
 .entity-header {
-position: absolute;
-top: 0;
-left: 0;
-right: 0;
+position: relative;
 height: 70px;
 margin: 20px 22px 0;
 }
 
 .entity-title {
-position: absolute;
-top: 0;
-left: 0;
+position: relative;
 color: gray;
 display: block;
 }
@@ -420,9 +415,7 @@ div.tabs {
 }
 
 .entity-search {
-position: absolute;
-top: 0;
-right: 0;
+position: relative;
 }
 
 .back-link {
@@ -430,17 +423,13 @@ div.tabs {
 }
 
 .entity-tabs {
-position: absolute;
+position: relative;
 height: 40px;
-left: 0;
-right: 0;
-bottom: 0;
 z-index: 1; /* need to be above facet header */
 }
 
 .facet-group {
 float: left;
-/*height: 3em; */
 margin-right: 1em;
 position: relative;
 height: 100%;
-- 
1.7.5.2

From d95791b07d27778340bf8de96408df14ce6d669d Mon Sep 17 00:00:00 2001
From: Adam Young 
Date: Fri, 1 Apr 2011 11:56:09 -0400
Subject: [PATCH] update ipa init
 a simple script to update the metatdate et alles that comes from the ipa_init batch call

---
 install/ui/test/bin/update_ipa_init.sh |   21 +
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100755 install/ui/test/bin/update_ipa_init.sh

diff --git a/install/ui/test/bin/update_ipa_init.sh b/install/ui/test/bin/update_ipa_init.sh
new file mode 100755
index ..064f16b9e81b6888b97ab1a9a192971a230b8f84
--- /dev/null
+++ b/install/ui/test/bin/update_ipa_init.sh
@@ -0,0 +1,21 @@
+#!/bin/bash -x
+
+FIXTURE_DIR=$1
+
+INIT_FILE=$FIXTURE_DIR/ipa_init.json
+
+usage(){
+	echo "$0 {FIXTURE_DIR}"
+	exit 1
+}
+
+if [ ! -f $INIT_FILE ]
+then
+	usage
+	exit 1
+fi
+
+
+
+curl -v -H "Content-Type:application/json" -H "Accept:applicaton/json" --negotiate -u :  --cacert /etc/ipa/ca.crt  -d '{"method":"batch","params":[[ {"method":"json_metadata","params":[[],{}]}, {"method":"i18n_messages","params":[[],{}]}, {"method":"user_find","params":[[],{"whoami":"true","all":"true"}]}, {"method":"env","params":[[],{}]}, {"method":"dns_is_enabled","params":[[],{}]} ],{}],"id":1}'  -X POST  https://`hostname`/ipa/json  | sed 's/[ \t]*$//' >   $INIT_FILE 
+
-- 
1.7.4

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel