From 2908be88988267ecb795d77e36648bea573189e8 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 3 May 2020 13:40:04 +0200 Subject: [PATCH] tools (common/template): typos --- sat/tools/common/template.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sat/tools/common/template.py b/sat/tools/common/template.py index f5312d8b..9a4494ff 100644 --- a/sat/tools/common/template.py +++ b/sat/tools/common/template.py @@ -612,9 +612,9 @@ class Renderer(object): styles_extra.css, styles.css, highlight.css and fonts.css are always used if they exist. For each found file, if a file with the same name and "_noscript" suffix exists, - it will be return is second part of resulting tuple. + it will be returned is second part of resulting tuple. For instance, if template_data is (some_site, some_theme, blog/articles.html), - following files are returned, earch time trying [some_site root] first, + following files are returned, each time trying [some_site root] first, then default site (i.e. sat_templates) root: - some_theme/static/styles.css is returned if it exists else default/static/styles.css @@ -865,12 +865,12 @@ class Renderer(object): """Render a template @param template(unicode): template to render (e.g. blog/articles.html) - @param site(unicide): site name + @param site(unicode): site name None or empty string for defaut site (i.e. SàT templates) @param theme(unicode): template theme @param media_path(unicode): prefix of the SàT media path/URL to use for template root. Must end with a u'/' - @param css_files(list[unicode],None): CSS files to used + @param css_files(list[unicode],None): CSS files to use CSS files must be in static dir of the template use None for automatic selection of CSS files based on template category None is recommended. General static/style.css and theme file name will be