Changeset 191

Show
Ignore:
Timestamp:
07/10/03 20:25:31 (6 years ago)
Author:
kake
Message:

Use class="toolbar" not id="toolbar" so inheritance works

Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r190 r191  
    5252  variable => "site_name", 
    5353  default  => "OpenGuides Wiki" 
     54  }, 
     55{ question => "do you want the navigation bar included on the home page?", 
     56  variable => "navbar_on_home_page", 
     57  default  => "y", 
     58  type     => "y_n" 
    5459  }, 
    5560{ question => "what should the home page of the wiki be called?", 
     
    122127foreach my $qset (@questions) { 
    123128    my $qu  = $qset->{question}; 
     129    my $type = $qset->{type} || ""; 
    124130    my $var = $qset->{variable}; 
    125131    my $def = $existing_config{$var} || $qset->{default}; 
    126132    my $val = $def; 
    127133    unless ( $skip_config ) { 
    128         $val = Module::Build->prompt("\n$qu ", $def); 
     134        if ( $type eq "y_n" ) { 
     135            $val = Module::Build->y_n("\n$qu ", $def); 
     136        } else { 
     137            $val = Module::Build->prompt("\n$qu ", $def); 
     138        } 
    129139    } 
    130140 
  • trunk/Changes

    r190 r191  
    88          rules link in navbar.  Enable this by setting text_formatting_node 
    99          in your config file. 
     10        Added config option for including the navbar on the home page. 
    1011 
    11120.18    16 June 2003 
  • trunk/INSTALL

    r175 r191  
    101101 
    102102 
     103  "Do you want the navigation bar included on the home page?" 
     104 
     105Answer "y" or "n". 
     106 
     107 
    103108  "What should the home page of the wiki be called?" 
    104109  "How would you describe the wiki?" 
     
    109114Self explanatory. 
    110115 
     116 
     117  "What's the name of the node to use for the text formatting rules link?" 
     118 
     119From 0.19, OpenGuides allows users to choose whether or not to have a 
     120permanent link to the text formatting rules node in their navbar.  You 
     121need to put the name of that node in here for it to work, though.  You 
     122might want to call the node "Text Formatting Examples", "Text 
     123Formatting Rules", "House Style" or whatever. 
  • trunk/lib/OpenGuides/Template.pm

    r190 r191  
    7878=item * C<formatting_rules_link> (unless C<omit_formatting_link> is set in user cookie) 
    7979 
     80=item * C<navbar_on_home_page> 
     81 
    8082=item * C<home_name> 
    8183 
     
    125127                    home_link             => $script_url . $script_name, 
    126128                    home_name             => $config->{_}->{home_name}, 
     129                    navbar_on_home_page   => $config->{_}->{navbar_on_home_page}, 
    127130                    formatting_rules_link => $formatting_rules_link, 
    128131                    formatting_rules_node => $formatting_rules_node, 
  • trunk/templates/home_node.tt

    r181 r191  
    2222 
    2323[% USE CGI %] 
     24 
     25[% IF navbar_on_home_page %] 
     26  [% INCLUDE navbar.tt %] 
     27[% END %] 
    2428 
    2529<div id="header"> 
  • trunk/templates/navbar.tt

    r190 r191  
    1 <div id="toolbar"> 
     1<div class="toolbar"> 
    22<ul> 
    33    <li><a href="[% home_link %]">[% home_name %]</a></li>