{{#if list.length}}
<table class="ordinary full-width action-list" width="100%">
<thead>
    <tr>
        <td data-id="revision" data-order="desc">{{i18n "org_actions.prop.revision"}}</td>
        <td>{{i18n "org_actions.prop.date"}}</td>
        <td>{{i18n "org_actions.prop.name"}}</td>
        <td>{{i18n "org_actions.prop.id"}}</td>
        <td>{{i18n "org_actions.prop.author"}}</td>
        <td>{{i18n "org_actions.prop.object_type"}}</td>
        <td></td>
    </tr>
</thead>
{{#each list}}
<tbody>
    {{#*inline "action_details"}}
    <td data-id="revision">{{this.revision}}</td>
    <td data-id="date" data-date="{{this.timestamp}}">
        {{{dash_empty (html_date this.timestamp)}}}
    </td>
    <td data-id="name">{{this.name}}</td>
    <td data-id="id">{{this.id}}</td>
    <td data-id="author">
        {{#if this.author.name}}
        <div data-role="hover_tip_container">
            <div class="value" title="{{user_name this.author}}">
                {{user_name this.author}}
            </div>
            {{> user_tip user=this.author orientation="top"}}
        </div>
        {{else}}
        <span data-id="author_id">{{dash_empty this.author_id}}</span>
        {{/if}}
    </td>
    <td>{{dash_empty this.object_type}}</td>
    <td data-id="meta">
        {{#if (or this.object this.old_object)}}
        <a {{#is mode "diff"}}href="#/{{this.id}}" class="selected"{{else}}href="#/{{this.id}}/diff"{{/is}}>{{i18n "org_actions.show_diff"}}</a>
        {{/if}}
    </td>
    {{/inline}}
    {{#if (or this.object this.old_object)}}
    <tr data-id="diff" id="/{{this.id}}/diff">
    {{> action_details mode="diff"}}
    </tr>
    <tr>
        <td colspan="7">
            <div class="data" data-id="diff_data">
                <pre>{{{preserve_spaces (diff this.old_object this.object)}}}</pre>
            </div>
            <div class="controls">
                <a href="#/{{this.id}}" data-action="close">{{i18n "common.action.hide_nested_pane"}}</a>
            </div>
        </td>
    </tr>
    {{/if}}
    <tr id="/{{this.id}}">
    {{> action_details}}
    </tr>
</tbody>
{{/each}}
</table>
{{else}}
<div class="blank-list">{{i18n "org_actions.no_actions"}}</div>
{{/if}}
