Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added posibility to set the priority colors using the "Template Style settings" page. #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 19, 2017

  1. Added posibility to set the priority colors using the "Template Style…

    … settings" page.
    
    The admin can set the configuration option "layout" to "built-in", this will use the normal layout (as before).
    
    If the option is set to "template" then the priority colors are taken from less-CSS-values:
    __plugin_task_priority1_color__
    __plugin_task_priority2_color__
    __plugin_task_priority3_color__
    
    To make this work the following needs to be done manually in the DokuWiki template:
    In file "style.ini", add these lines:
    
    ;- Styling settings for task plugin ---------------------------------------
    __plugin_task_priority1_color__ = "#fff7e8"
    __plugin_task_priority2_color__ = "#fff1d9"
    __plugin_task_priority3_color__ = "#ffe9c2"
    
    In template langauge file "en/lang.php", add these lines:
    
    $lang['__plugin_task_priority1_color__'] = 'Plugin Task: choose color for priority "medium"';
    $lang['__plugin_task_priority2_color__'] = 'Plugin Task: choose color for priority "high"';
    $lang['__plugin_task_priority3_color__'] = 'Plugin Task: choose color for priority "critical"';
    lpaulsen93 committed Feb 19, 2017
    Configuration menu
    Copy the full SHA
    4eedaa4 View commit details
    Browse the repository at this point in the history
  2. Added styling for tasklist width (using extra pagelist table class).

    This requires a change in the pagelist plugin.
    lpaulsen93 committed Feb 19, 2017
    Configuration menu
    Copy the full SHA
    98534c0 View commit details
    Browse the repository at this point in the history