Changeset 6140

Show
Ignore:
Timestamp:
06/02/07 20:56:06 (1 year ago)
Author:
bergie
Message:

Component list improvements: include midcom.helper.search, make the list more readable and display component version numbers (plus make devel-state components greyed out). Closes #17 and #39

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.folder/folder_management.php

    r5715 r6140  
    217217             
    218218            // Skip components beginning with midcom or midgard 
    219             if (ereg('^(midcom|midgard)\.', $manifest->name)) 
     219            if (   ereg('^(midcom|midgard)\.', $manifest->name) 
     220                && $manifest->name != 'midcom.helper.search') 
    220221            { 
    221222                continue; 
     
    237238                $description = ''; 
    238239            } 
    239              
     240 
    240241            $components[$manifest->name] = array 
    241242            ( 
    242                 'name' => $manifest->get_name_translated(), 
     243                'name'        => $manifest->get_name_translated(), 
    243244                'description' => $description, 
     245                'state'       => $manifest->state, 
     246                'version'     => $manifest->version, 
    244247            ); 
    245248        } 
  • trunk/midcom/midcom.admin.folder/static/folder.css

    r5715 r6140  
    1818div.midcom_admin_content_componentlist dl 
    1919{ 
    20     height: 250px; 
     20    height: 300px; 
    2121    overflow-x: auto; 
    2222    border: 1px #f0f0f0 solid; 
    2323    padding: 6px; 
    2424    margin-top: 0px; 
     25    font-size: smaller; 
    2526} 
    2627 
     
    2829{ 
    2930    margin-bottom: 6px; 
     31    margin-left: 22px; 
     32    margin-top: 2px; 
     33} 
     34 
     35div.midcom_admin_content_componentlist dl dt.devel, 
     36div.midcom_admin_content_componentlist dl dd.devel, 
     37div.midcom_admin_content_componentlist dl dt.alpha, 
     38div.midcom_admin_content_componentlist dl dd.alpha 
     39 
     40{ 
     41    color: #c0c0c0; 
    3042} 
    3143 
  • trunk/midcom/midcom.admin.folder/style/midcom-admin-show-component-list.php

    r5074 r6140  
    1313            } 
    1414            ?> 
    15             <dt><label><input type="radio" name="f_type" value="&(path:h);"&(selected:h); /><strong>&(information['name']:h);</strong> (&(path:h);)</label></dt> 
     15            <dt class="&(information['state']:h);"><label><input type="radio" name="f_type" value="&(path:h);"&(selected:h); /><strong>&(information['name']:h);</strong> <span class="component">(&(path:h); <span class="version">&(information['version']:h);</span>)</span></label></dt> 
    1616            <?php 
    1717            if (array_key_exists('description', $information)) 
    1818            { 
    1919                ?> 
    20                 <dd>&(information['description']:h);</dd> 
     20                <dd class="&(information['state']:h);">&(information['description']:h);</dd> 
    2121                <?php 
    2222            } 
  • trunk/midcom/midcom.core/midcom/core/manifest.php

    r5535 r6140  
    233233 
    234234    /** 
    235      * Old version number of the components, currently specified as integer. Not really 
    236      * used within the system, but you may (actually should) use it for your own versioning. 
    237      * 
    238      * Note, that this is now a string (was formerly an int) since the PEAR transition. This 
    239      * change should not affect anything as I do not know any component actually making use 
    240      * of this member yet. You should now use version_compare in context with this member 
    241      * always. 
     235     * Version number of the components. 
    242236     * 
    243237     * @var string 
    244238     */ 
    245     var $version = 0; 
     239    var $version = '0.0.1'; 
     240 
     241    /** 
     242     * State of the components. 
     243     * 
     244     * @var string 
     245     */ 
     246    var $state = 'devel'; 
    246247 
    247248    /** 
     
    325326            $this->version = $this->_raw_data['version']; 
    326327        } 
     328        if (array_key_exists('state', $this->_raw_data)) 
     329        { 
     330            $this->state = $this->_raw_data['state']; 
     331        } 
    327332        if (array_key_exists('privileges', $this->_raw_data)) 
    328333        {