Got blob highlighting working with the ContentMangler.
[catagits/Gitalist.git] / lib / Gitalist / Controller / Fragment / Ref.pm
index 914eed9..9793dd7 100644 (file)
@@ -68,8 +68,7 @@ after blame => sub {
         blob     => join("\n", map $_->{line}, @$blame),
     );
 
-    $c->forward('Model::ContentMangler')
-        unless $c->stash->{no_wrapper};
+    $c->forward('Model::ContentMangler');
 };
 
 =head2 blob
@@ -84,9 +83,7 @@ after blob => sub {
         is_image  => File::Type::WebImages::mime_type($c->stash->{blob}),
         is_binary => Gitalist::Utils::is_binary($c->stash->{blob}),
     );
-
-    $c->forward('Model::ContentMangler')
-        unless $c->stash->{no_wrapper};
+    $c->forward('Model::ContentMangler');
 };
 
 after history => sub {