- Creating cards now works. We use Open Sans to make texts beautiful

- Added card counts to default controller
- Load images from our basecards folder in assets
- Administration now includes card counts
- Other misc improvements
This commit is contained in:
Ismo Vuorinen
2013-07-16 19:02:40 +03:00
parent adaca5b8b2
commit fe84af8649
28 changed files with 965 additions and 109 deletions

View File

@@ -3,6 +3,7 @@
class Yllapito extends CI_Controller
{
private $user;
public $card_count;
public function __construct()
{
@@ -11,6 +12,10 @@ class Yllapito extends CI_Controller
$this->load->model('erkanaauth_model', 'erkana');
$this->user = $this->erkana->getUser();
if (!empty($this->user)) {
$this->card_count = $this->ecard->countStatuses();
}
}
public function index()
@@ -23,6 +28,7 @@ class Yllapito extends CI_Controller
'page_title' => array( 'Etusivu', 'Ystäväkylä eKortti' ),
'page_classes' => array( 'frontpage' ),
'user' => $this->user,
'count' => $this->card_count,
'messages' => $this->session->flashdata('messages')
);