diff options
author | ivan <ivan> | 2010-03-20 22:14:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-20 22:14:02 +0000 |
commit | 10e462292b42813dce6e1034064c55c7fddd42a4 (patch) | |
tree | 0d283c775d08bf12c211a89496927ac51ae32d03 /httemplate/elements/menu.html | |
parent | 55e2a98988c76425ec2dac583b91410eaf835659 (diff) |
more RT integration / reskin / 2.1, RT#6640
Diffstat (limited to 'httemplate/elements/menu.html')
-rw-r--r-- | httemplate/elements/menu.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index a26624e..a4fcde6 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -489,6 +489,26 @@ $config_menu{'Miscellaneous'} = [ \%config_misc, '' ] if $curuser->access_right('Edit advertising sources') || $curuser->access_right('Edit global advertising sources'); + +my $wiki = 'http://www.freeside.biz/mediawiki/index.php'; +my $doc_link = $conf->config('support-key') + ? "$wiki/Supported:Documentation" + : $curuser->access_right('Configuration') + ? "$wiki/Freeside:1.9:Documentation" + : "$wiki/Freeside:1.9:Documentation:User"; + +eval "use RT;" + if $conf->config('ticket_system') eq 'RT_Internal'; + +tie my %help_menu, 'Tie::IxHash', 'Billing documentation' => [ $doc_link, 'Freeside documentation' ]; +$help_menu{'Ticketing documentation'} = [ 'http://wiki.bestpractical.com/', 'Request Tracker Wiki' ] + if $conf->config('ticket_system') eq 'RT_Internal'; +$help_menu{'separator'} = ''; +$help_menu{"About Freeside v$FS::VERSION"} = [ 'XXXfinishme', 'doh!' ]; +$help_menu{"About RT v$RT::VERSION"} = [ 'http://www.bestpractical.com/rt', 'Request Tracker Homepage' ] + if $conf->config('ticket_system') eq 'RT_Internal'; + + tie my %menu, 'Tie::IxHash', 'Billing Main' => [ $fsurl, 'Billing start page', ], ; @@ -521,6 +541,8 @@ $menu{'Configuration'} = [ \%config_menu, 'Configuraiton and setup' ] || $curuser->access_right('Phone configuration') || $curuser->access_right('Edit advertising sources') || $curuser->access_right('Edit global advertising sources'); +$menu{'Help'} = [ \%help_menu, '' ]; + use vars qw($gmenunum); $gmenunum = 0; |