pari: branch 2.0 r4245 - /branches/2.0/config/gtalk.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Dec 1 12:40:39 CST 2008


Author: pari
Date: Mon Dec  1 12:40:38 2008
New Revision: 4245

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4245
Log:

 some more CSS improvements to google talk page



Modified:
    branches/2.0/config/gtalk.html

Modified: branches/2.0/config/gtalk.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/gtalk.html?view=diff&rev=4245&r1=4244&r2=4245
==============================================================================
--- branches/2.0/config/gtalk.html (original)
+++ branches/2.0/config/gtalk.html Mon Dec  1 12:40:38 2008
@@ -25,9 +25,8 @@
 <style type="text/css">
 	#table_BuddiesList {
 		border: 1px solid #666666;
-		margin-top: 5px;
-		margin-bottom:10px;
-		width: 96%;
+		margin: 0px;
+		width: 550px ;
 		text-align: center;
 		padding : 1px;
 	}
@@ -46,12 +45,12 @@
 
 	#table_AccountsList {
 		border: 1px solid #666666;
-		margin-top: 5px;
-		margin-bottom:10px;
+		margin: 0px;
 		text-align: center;
 		padding : 1px;
-	}
-	#table_AccountsList tr.heading { background: #6b79a5;}
+		width: 300px ;
+	}
+	#table_AccountsList tr.heading { background: #FFFFFF;}
 	#table_AccountsList tr td { padding : 3px; }
 	#table_AccountsList tr.even { background: #DFDFDF; }
 	#table_AccountsList tr.odd { background: #FFFFFF; }
@@ -78,12 +77,6 @@
 			newRow.className = 'heading' ;
 			addCell( newRow , { html: "<span class='lite_Heading'>Peers</span>",align:'center', colspan:4 });
 
-			var newRow = TBL.insertRow(-1);
-			newRow.className = 'frow' ;
-			addCell( newRow , { html: 'UserName' });
-			addCell( newRow , { html: 'Context' });
-			addCell( newRow , { html: '&nbsp;&nbsp;Connection&nbsp;&nbsp;' });
-			addCell( newRow , { html: '',width:'175px' });
 
 		for( buddy in GTALK_CNF ){
 			if( !GTALK_CNF.hasOwnProperty(buddy) || buddy == 'general' ) continue;
@@ -96,7 +89,21 @@
 			var tmp = "<span class='guiButton' onclick=\"MANAGE_BUDDIES.edit_buddy_form('" + buddy +"')\">Edit</span>&nbsp;"
 					+ "<span class='guiButtonDelete' onclick=\"MANAGE_BUDDIES.deleteBuddy('" + buddy +"')\">Delete</span>" ;
 			addCell( newRow , { html: tmp });
-
+		}
+
+
+		if( TBL.rows.length == 1 ){
+			//var FR = TBL.rows[1] ;
+			//FR.parentNode.removeChild(FR);
+			var newRow = TBL.insertRow(-1);
+			addCell( newRow , { html: "<BR>No peers configured. To send or receive calls from your friends on google talk, Add the peer name by clicking on the 'New peer' button.<BR><BR>", colspan:4 });
+		}else{
+			var newRow = TBL.insertRow(1);
+			newRow.className = 'frow' ;
+			addCell( newRow , { html: 'UserName' });
+			addCell( newRow , { html: 'Context' });
+			addCell( newRow , { html: '&nbsp;&nbsp;Connection&nbsp;&nbsp;' });
+			addCell( newRow , { html: '' });
 		}
 	},
 
@@ -163,7 +170,7 @@
 
 			var newRow = TBL.insertRow(-1);
 			newRow.className = 'heading' ;
-			addCell( newRow , { html: "<span class='lite_Heading' style='color: #FFFFFF;'>gtalk Accounts</span>",align:'center', colspan:2 });
+			addCell( newRow , { html: "<span class='lite_Heading'>gtalk Accounts</span>",align:'center', colspan:2 });
 
 		for( account in JABBER_CNF ){
 			if( !JABBER_CNF.hasOwnProperty(account) || account == 'general' ) continue;
@@ -171,12 +178,17 @@
 			ASTGUI.selectbox.append('edit_buddyConnection_select', account , account );
 
 			var newRow = TBL.insertRow(-1);
-			newRow.className = ((TBL.rows.length)%2==0) ? 'odd':'even';
+			newRow.className = ((TBL.rows.length)%2==1) ? 'odd':'even';
 
 			addCell( newRow , { html:JABBER_CNF[account].username + "&nbsp;&nbsp;[" + account + "]" } );
 				var tmp = "<span class='guiButton' onclick=\"MANAGE_ACCOUNTS.edit_Account_form('" + account +"')\">Edit</span>&nbsp;"
 					+ "<span class='guiButtonDelete' onclick=\"MANAGE_ACCOUNTS.deleteAccount('" + account +"')\">Delete</span>" ;
-			addCell( newRow , { html: tmp, width: '175px'});
+			addCell( newRow , { html: tmp });
+		}
+
+		if( TBL.rows.length == 1 ){
+			var newRow = TBL.insertRow(-1);
+			addCell( newRow , { html: "<BR>No google talk accounts configured. <BR> Please click on 'New gtalk Account' button to send and receive calls via your google talk account.<BR><BR>", colspan:2 });
 		}
 	},
 
@@ -297,10 +309,10 @@
 		</div>
 	</center>-->
 	<div>
-		<div style='float:left; margin:20px'>
+		<div style='float:left; margin-left:20px; margin-top: 20px; margin-right: 10px; padding: 0px'>
 			<table id='table_BuddiesList' cellpadding=0 cellspacing=0 border=0 align=center></table>
 		</div>
-		<div style='float:right; margin:20px'>
+		<div style='float:right; margin-left:0px; margin-top: 20px; margin-right: 10px; padding: 0px'>
 			<table id='table_AccountsList' cellpadding=0 cellspacing=0 border=0 align=center></table>
 		</div>
 	</div>




More information about the asterisk-gui-commits mailing list