{template:user_common}
{!set page_title "{user_user_name} - Ratings"!}

<table class="list">
 <tr><th>Title</th>
    <th>Owner</th>
    <th>Rating</th></tr>
{BEGIN:user_doc_ratings user_user_id -r }
    <tr class="{row_class}">
        <td><a href="{site_path}/document.php?id={doc_id}">{doc_title}</a></td>
        <td nowrap><a href="{site_path}/user.php?id={doc_owner_id}">{doc_user_name}</a>{!user_indicators doc!}</td>
        <td align="right">{rating:%d}</td>
    </tr>
{END:user_doc_ratings}
</table>
{recordset}

<p class="action"><a href="#" title="click to view rating distribution chart"
onClick="javascript:window.open('{site_path}/chart_user_ratings.php?id={user_user_id}',
        'rating_chart',
        'width=600,height=400,toolbar=no,scrollbar=no')"
>Rating Distribution</a></p>

{template:edituser}