@extends('layouts')

@section('content')
    <ul class="ui-list ui-border-tb ">
        @foreach($list as $vote)
            <li onclick="window.location.href='{{ route('vote', $vote) }}'">
                <div class="ui-list-img-square">
                    <span style="background-image:url(http://placeholder.qiniudn.com/188x188)"></span>
                </div>
                <div class="ui-list-info ui-border-t">
                    <h4 class="ui-nowrap">{{ $vote->title }}</h4>
                    <p class="ui-nowrap">这是内容，加ui-nowrap可以超出长度截断</p>
                </div>
            </li>
        @endforeach
    </ul>
@endsection
