1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-06-16 15:01:09 +03:00

email stylesheet without icons (smaller)

This commit is contained in:
Alexander Yakovlev 2014-03-02 17:17:12 +07:00
parent a89d28b1e4
commit 3a579c5f10
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,4 @@
@import 'bootstrap/bootstrap';
@import 'layout';
@import 'variables';
@import 'bootswatch';

View file

@ -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;

View file

@ -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()