[PC-BSD Commits] r2136 - websites/pbidir.com/bibivu/lib

svn at pcbsd.org svn at pcbsd.org
Thu Jun 19 20:09:05 PDT 2008


Author: fabry
Date: 2008-06-19 20:09:04 -0700 (Thu, 19 Jun 2008)
New Revision: 2136

Modified:
   websites/pbidir.com/bibivu/lib/pbi.php
   websites/pbidir.com/bibivu/lib/pbi_release.php
Log:
a better way to present PBIs releases

Modified: websites/pbidir.com/bibivu/lib/pbi.php
===================================================================
--- websites/pbidir.com/bibivu/lib/pbi.php	2008-06-19 21:05:31 UTC (rev 2135)
+++ websites/pbidir.com/bibivu/lib/pbi.php	2008-06-20 03:09:04 UTC (rev 2136)
@@ -73,6 +73,16 @@
 															'main_field'	=> 'id',
 															),
 							  );
+/*
+			$related[] = array(		'table'			=> 'pbi_comments',
+									'field'			=> 'pbi_id',
+									'main_field'	=> 'id',
+									'show'			=> 'list',		//field, list
+									'name'			=> 'Comments',
+									'autoopen'		=> false,
+									'relation_table'=> array(),
+							  );
+*/
 			$this->related = $related;
 		}
 		return $this->related;

Modified: websites/pbidir.com/bibivu/lib/pbi_release.php
===================================================================
--- websites/pbidir.com/bibivu/lib/pbi_release.php	2008-06-19 21:05:31 UTC (rev 2135)
+++ websites/pbidir.com/bibivu/lib/pbi_release.php	2008-06-20 03:09:04 UTC (rev 2136)
@@ -96,15 +96,15 @@
 			$tmps = $this->get_raw($filters, array('name'),array(), '','pcbsd_version');
 			$values = array();
 			foreach($tmps as $tmp){
-				$values[] = $tmp['id'].','.$tmp['version'];
+				$values[] = $tmp['id'].','.$tmp['version'].' '.str_replace(',','',$tmp['name']);
 			}
-			$fields['pcbsd_version_id'] = array(	'show'	=> 'field',
+			$fields['pcbsd_version_id'] = array(	'show'	=> array('field','list'),
 										'view_link'	=> false,
 										'edit'	=> true,
 										'type'	=> 'enum',
 										'length'=> NULL,
 										'values'=> implode('|',$values),
-										'text'	=> 'pcBSD Version',
+										'text'	=> 'PC-BSD',
 										'required' => true,
 										'post'	=> true,
 										'default' => 'y',
@@ -222,7 +222,7 @@
 										'default' => NULL,
 										'image'	=> false,
 								);
-			$fields['active'] = array(	'show'	=> true,
+			$fields['active'] = array(	'show'	=> 'field',
 										'view_link'	=> false,
 										'edit'	=> true,
 										'type'	=> 'enum',



More information about the Commits mailing list