Adding settings support, bug fixes, add evidences support

Dat klopt. Ik Kon alleen zo snel ff niks beters verzinnen

Verzonden met mijn Windows Phone
________________________________
Van: Mathijs Bernson<mailto:notifications@github.com>
Verzonden: ‎19-‎9-‎2014 16:40
Aan: mbernson/logboek<mailto:logboek@noreply.github.com>
CC: l0ngestever<mailto:bartmau93@hotmail.com>
Onderwerp: Re: [logboek] Adding settings support, bug fixes, add evidences support (#2)

>                               </div>
>                               <div class="collapse navbar-collapse">
>
>                                       <ul class="nav navbar-nav">
> -                                             <li {{ Request::is('entries') || Request::is('/') ? 'class="active"' : '' }}>{{ link_to('/entries', 'Entries') }}</li>
> -                                             <li {{ Request::is('logbooks') ? 'class="active"' : '' }}>{{ link_to_route('logbooks.index', 'Logboeken') }}</li>
> -                                             <li {{ Request::is('tasks') ? 'class="active"' : '' }}>{{ link_to_route('tasks.index', 'Taken') }}</li>
> -                                             <li {{ Request::is('attachments') ? 'class="active"' : '' }}>{{ link_to_route('attachments.index', 'Bestanden') }}</li>
> -                                             <li {{ Request::is('evidences') ? 'class="active"' : '' }}>{{ link_to_route('evidences.index', 'Bewijzen') }}</li>
> -                                             <li {{ Request::is('exports') ? 'class="active"' : '' }}>{{ link_to_action('ExportsController@index', 'Exports') }}</li>
> -                                             <li {{ Request::is('cipher') ? 'class="active"' : '' }}>{{ link_to('/cipher', 'Ciphertool') }}</li>
> -                                             <li {{ Request::is('users') ? 'class="active"' : '' }}>{{ link_to_route('users.index', 'Gebruikers') }}</li>
> -                                             <li {{ Request::is('intro') ? 'class="active"' : '' }}>{{ link_to('/intro', 'Over') }}</li>
> +                                             @if(DB::table('settings')->pluck('vw_menu_entries') === 1)

Door iedere keer `DB::table('settings')->pluck(...)` aan te roepen worden er een hoop extra queries gedaan. De setting(s) moet ergens gecached worden.

---
Reply to this email directly or view it on GitHub:
https://github.com/mbernson/logboek/pull/2/files#r17788150