Changeset 2093 in ExiteCMS


Ignore:
Timestamp:
12/05/08 21:43:27 (3 years ago)
Author:
WanWizard
Message:

made the side panel clickable, which will open the trac changset page when clicked

Location:
modules/ExiteCMS/tracsvn/php-files/modules/tracsvn
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/admin.php

    r2043 r2093  
    3636    $database = stripinput($_POST['database']); 
    3737    $url = stripinput($_POST['url']); 
     38    $trac_url = stripinput($_POST['trac_url']); 
    3839    $cmd = stripinput($_POST['cmd']); 
    3940    $auth = stripinput($_POST['auth']); 
     
    6768            $url .= "/"; 
    6869        } 
     70        if (!empty($trac_url) && substr($trac_url, -1) != "/") { 
     71            $trac_url .= "/"; 
     72        } 
    6973        if ($variables['message'] == "") { 
    7074            // executable is valid. check if the repository is readable 
     
    8286        $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$database."' WHERE cfg_name = 'tracsvn_database'"); 
    8387        $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$url."' WHERE cfg_name = 'tracsvn_url'"); 
     88        $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$trac_url."' WHERE cfg_name = 'tracsvn_trac_url'"); 
    8489        $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$cmd."' WHERE cfg_name = 'tracsvn_svncmd'"); 
    8590        $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$auth."' WHERE cfg_name = 'tracsvn_svnauth'"); 
     
    116121    $database = $settings['tracsvn_database']; 
    117122    $url = $settings['tracsvn_url']; 
     123    $trac_url = $settings['tracsvn_trac_url']; 
    118124    $cmd = $settings['tracsvn_svncmd']; 
    119125    $auth = $settings['tracsvn_svnauth']; 
     
    184190$variables['database'] = $database; 
    185191$variables['url'] = $url; 
     192$variables['trac_url'] = $trac_url; 
    186193$variables['cmd'] = $cmd; 
    187194$variables['auth'] = $auth; 
  • modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/module_installer.php

    r2043 r2093  
    2424$mod_title = "Trac-SVN reports"; 
    2525$mod_description = "This ExiteCMS module provides a reporting of Trac Project management, and connects to SVN to retrieve details status information"; 
    26 $mod_version = "0.1.4"; 
     26$mod_version = "0.1.5"; 
    2727$mod_developer = "WanWizard"; 
    2828$mod_email = "wanwizard@exitecms.org"; 
     
    128128$localestrings['en']['455'] = "Operation on a non-public section of the repository"; 
    129129$localestrings['en']['456'] = "Non-public repository paths:"; 
     130$localestrings['en']['457'] = "Trac base URL:"; 
    130131 
    131132$localestrings['en']['500'] = "Changeset"; 
     
    209210$localestrings['nl']['455'] = "Bewerking op een niet publiek deel van de repository"; 
    210211$localestrings['nl']['456'] = "Niet publieke repository paden:"; 
     212$localestrings['nl']['457'] = "Trac basis URL:"; 
    211213 
    212214$localestrings['nl']['500'] = "Changeset"; 
     
    241243$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_database', '')"); 
    242244$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_url', '')"); 
     245$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_trac_url', '')"); 
    243246$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_svncmd', '/usr/bin/svn')"); 
    244247$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_svnauth', '--username name_here --password pass_here')"); 
     
    267270$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_database'"); 
    268271$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_url'"); 
     272$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_trac_url'"); 
    269273$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_svncmd'"); 
    270274$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'tracsvn_svnauth'"); 
     
    313317            case "0.1.3": 
    314318                // no upgrades this version 
     319            case "0.1.4": 
     320                // add the new trac base URL 
     321                $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('tracsvn_trac_url', '')"); 
    315322            default: 
    316323                // do this with every upgrade 
  • modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/templates/modules.tracsvn.admin.tpl

    r2043 r2093  
    6060            </td> 
    6161        </tr> 
     62        <tr> 
     63            <td width='50%' class='tbl'> 
     64                {$locale.457} 
     65            </td> 
     66            <td width='50%' class='tbl'> 
     67                <input type='text' name='trac_url' value='{$trac_url}' maxlength='255' class='textbox' style='width:300px;' /> 
     68            </td> 
    6269        <tr> 
    6370            <td width='50%' class='tbl'> 
  • modules/ExiteCMS/tracsvn/php-files/modules/tracsvn/templates/modules.tracsvn.side_panel.tpl

    r2043 r2093  
    2020{include file="_openside_x.tpl" name=$_name title=$locale.401 state=$_state style=$_style} 
    2121    {if $rev != 0} 
    22         <div style="text-align:center;"> 
     22        <div style="text-align:center;cursor:pointer;" onclick="window.open('{$settings.tracsvn_trac_url}changeset/{$rev}')" title="{$locale.110} {$locale.402} {$rev}"> 
    2323            <span class='small'>{$locale.402}</span> 
    2424            <b>{$rev}</b> 
Note: See TracChangeset for help on using the changeset viewer.