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:
parent
a89d28b1e4
commit
3a579c5f10
4
application/assets/stylesheets/email.less
Normal file
4
application/assets/stylesheets/email.less
Normal file
|
@ -0,0 +1,4 @@
|
|||
@import 'bootstrap/bootstrap';
|
||||
@import 'layout';
|
||||
@import 'variables';
|
||||
@import 'bootswatch';
|
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue