Changeset 1348


Ignore:
Timestamp:
Apr 17, 2012, 1:50:46 PM (10 years ago)
Author:
kake
Message:

Use the basic OpenGuides stylesheet if they don't supply a URL in their wiki.conf

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/INSTALL

    r1336 r1348  
    138138
    139139
    140   "What's the URL of the site's stylesheet?"
    141 
    142 Supplying an answer to this question is optional.  There are example
    143 stylesheets in the examples/ directory - note that these will not be
    144 automatically installed.
     140  "What's the URL of the site's stylesheet?  If you don't enter one here,
     141  the basic OpenGuides stylesheet will be used instead.
     142
     143Supplying an answer to this question is optional.  If you do not supply
     144your own stylesheet, your guide will use the basic OpenGuides stylesheet
     145instead (this is automatically installed in your static content directory
     146regardless of your answer to the present question).
    145147
    146148
  • trunk/MANIFEST

    r1346 r1348  
    155155t/79_host_blacklist.t
    156156t/81_node_moderate_whitelist.t
     157t/82_stylesheet.t
    157158t/83_show_delete_to_admins_only.t
    158159t/84_navbar_admin.t
  • trunk/lib/OpenGuides/Config.pm

    r1336 r1348  
    168168        moderation_requires_password => "Is the admin password required for moderating pages?",
    169169        admin_pass => "Please specify a password for the site admin.",
    170         stylesheet_url => "What's the URL of the site's stylesheet?",
     170        stylesheet_url => "What's the URL of the site's stylesheet?  If you don't enter one here, the basic OpenGuides stylesheet will be used instead.",
    171171        enable_node_image => "Should nodes be allowed to have an externally hosted image?",
    172172        enable_common_categories => "Do you want a common list of categories shown on all node pages?",
  • trunk/templates/header.tt

    r1336 r1348  
    3030  [% IF stylesheet %]
    3131    <link rel="stylesheet" href="[% stylesheet %]" type="text/css" title="Stylesheet for [% site_name %]" />
     32  [% ELSE %]
     33    <link rel="stylesheet" href="[% config.static_url %]openguides-base.css" type="text/css" title="Basic OpenGuides stylesheet" />
    3234  [% END %]
    3335  [% IF config.use_leaflet %]
Note: See TracChangeset for help on using the changeset viewer.