cvs: docweb /include/rfc rfc.php
| From: | Vincent Gevers | Date: | Tue, 31 Aug 2004 18:08:06 +0000 |
| Subject: | cvs: docweb /include/rfc rfc.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-209@lists.php.net to get a copy of this message | ||
vincent Tue Aug 31 14:08:06 2004 EDT
Modified files:
/docweb/include/rfc rfc.php
Log:
Layout tuning
# if anybody is against this method, please say so
http://cvs.php.net/diff.php/docweb/include/rfc/rfc.php?r1=1.3&r2=1.4&ty=u
Index: docweb/include/rfc/rfc.php
diff -u docweb/include/rfc/rfc.php:1.3 docweb/include/rfc/rfc.php:1.4
--- docweb/include/rfc/rfc.php:1.3 Tue Aug 31 07:41:59 2004
+++ docweb/include/rfc/rfc.php Tue Aug 31 14:08:06 2004
@@ -24,7 +24,7 @@
* @author Daniel Convissor <danielc@php.net>
* @copyright Copyright (c) 1997-2004 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: rfc.php,v 1.3 2004/08/31 11:41:59 vincent Exp $
+ * @version $Id: rfc.php,v 1.4 2004/08/31 18:08:06 vincent Exp $
*/
require_once 'DB.php';
@@ -252,13 +252,21 @@
'Main' => array('url' =>
'rfc-proposal-show.php?id=' . $id,
'title' => 'View proposal details'
),
- 'Comments' => array('url' =>
'rfc-comments-show.php?id=' . $id,
- 'title' => 'View and/or enter comments'
- ),
- 'Votes' => array('url' =>
'rfc-votes-show.php?id=' . $id,
- 'title' => 'View and/or enter votes'
- ),
);
+
+ if ($proposal->status != 'draft') {
+ $items['Comments'] = array(
+ 'url' => 'rfc-comments-show.php?id=' . $id,
+ 'title' => 'View and/or enter comments'
+ );
+
+ if ($proposal->status != 'proposal') {
+ $items['Votes'] = array(
+ 'url' => 'rfc-votes-show.php?id=' . $id,
+ 'title' => 'View and/or enter votes'
+ );
+ }
+ }
if ($proposal != null &&
isset($_COOKIE['PEAR_USER']) &&