@extends('layout')

@section('title', $category->name)

@section('content')

  @if( Auth::user() && !Auth::user()->canVoteInCategory($category))
  <div class="messages">You can't vote again in this category yet. Come back tomorrow!</div>
  @endif

  <ul class="gallery">
  @forelse($category->candidates as $candidate)
    @include('candidates.tile', ['candidate' => $candidate, 'drawer' => true])
  @empty
    <li class="empty">No candidates in this category... yet!</li>
  @endforelse
  </ul>

  <script type="text/html" id="form-template">
    @include('candidates.voteForm', ['category' => $category])
  </script>

@stop

@section('actions')
  <li>{{ link_to_route('categories.edit', 'Edit Category', [$category->slug], ['class' => 'btn secondary']) }}</li>
@stop


@extends('layout')

@section('title', $category->name)

@section('content')
  <ul class="gallery">
  @forelse($category->candidates as $candidate)
    @include('candidates.tile', ['candidate' => $candidate, 'drawer' => true])
  @empty
    <li class="empty">No candidates in this category... yet!</li>
  @endforelse
  </ul>

  <script type="text/html" id="form-template">
    @include('candidates.voteForm', ['category' => $category])
  </script>

@stop

@section('actions')
  <li>{{ link_to_route('categories.edit', 'Edit Category', [$category->slug], ['class' => 'btn secondary']) }}</li>
@stop


Remove flash messaging on category page, since it shows up in dynamic vote form now.
Remove flash messaging on category page, since it shows up in dynamic vote form now.
