diff --git a/application/assets/stylesheets/email.less b/application/assets/stylesheets/email.less new file mode 100644 index 0000000..62f6a77 --- /dev/null +++ b/application/assets/stylesheets/email.less @@ -0,0 +1,4 @@ +@import 'bootstrap/bootstrap'; +@import 'layout'; +@import 'variables'; +@import 'bootswatch'; diff --git a/application/classes/Controller/Letter.php b/application/classes/Controller/Letter.php index 37350ef..91e1c1a 100644 --- a/application/classes/Controller/Letter.php +++ b/application/classes/Controller/Letter.php @@ -72,6 +72,7 @@ class Controller_Letter extends Controller_Layout { { $this->redirect('error/404'); } + Debugtoolbar::disable(); $this->template = new View_Letter_View; $this->template->content = $model->text; $this->template->subject = $model->subject; diff --git a/application/classes/View/Letter/View.php b/application/classes/View/Letter/View.php index f542a8b..223d62f 100644 --- a/application/classes/View/Letter/View.php +++ b/application/classes/View/Letter/View.php @@ -13,13 +13,13 @@ class View_Letter_View extends View { public function stylesheet() { - $url = Less::compile(APPPATH.'assets/stylesheets/main', 'screen', FALSE); + $url = Less::compile(APPPATH.'assets/stylesheets/email', 'all', FALSE); return file_get_contents(DOCROOT.$url[0]); } public function view_link() { - return HTML::anchor(Route::url('default', array('controller' => 'Letter', 'action' => 'view', 'id' => $this->id), TRUE), _('Problems viewing this email? Click here.')); + return HTML::anchor(Route::url('default', array('controller' => 'Letter', 'action' => 'view', 'id' => $this->id), TRUE), __('Problems viewing this email? Click here.')); } public function get_content()