Prechádzať zdrojové kódy

Fix favicons / theming in backends

George S. Baugh 5 rokov pred
rodič
commit
2742566345
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      lib/Trog/Routes/HTML.pm

+ 3 - 0
lib/Trog/Routes/HTML.pm

@@ -413,6 +413,7 @@ sub config ($query, $render_cb) {
 
     return $render_cb->('config.tx', {
         title              => 'Configure tCMS',
+        theme_dir          => $td,
         stylesheets        => $css,
         scripts            => $js,
         themes             => _get_themes(),
@@ -522,6 +523,7 @@ sub post ($query, $render_cb) {
 
     return $render_cb->('post.tx', {
         title       => 'New Post',
+        theme_dir   => $td,
         to          => $query->{to},
         failure     => $query->{failure} // -1,
         message     => $query->{message},
@@ -932,6 +934,7 @@ sub manual ($query, $render_cb) {
     my $content = capture { Pod::Html::pod2html(qw{--podpath=lib --podroot=.},"--infile=lib/$infile") };
     return $render_cb->('manual.tx', {
         title       => 'tCMS Manual',
+        theme_dir   => $td,
         content     => $content,
         stylesheets => _build_themed_styles('post.css'),
     });