Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

1.5 KB
Raw Blame
{{#with attachment}}
<tr class="uploaded_file_row" data-attachment-name="{{name}}" data-attachment-id="{{id}}">
    <td>
        <a type="submit" class="tippy-zulip-delayed-tooltip" href="/user_uploads/{{path_id}}" target="_blank"
          rel="noopener noreferrer" data-tippy-content="{{t 'View file' }}">
            {{ name }}
        </a>
    </td>
    <td>{{ create_time_str }}</td>
    <td>
        {{#unless (eq message_ids.length 0)}}
        <div class="attachment-messages">
            {{#each message_ids}}
                <a class="ind-message" href="/#narrow/id/{{ this }}">
                    #{{ this }}
                </a>
            {{/each}}
        </div>
        {{/unless}}
    </td>
    <td class="upload-size">{{ size_str }}</td>
    <td class="actions">
        <span class="edit-attachment-buttons">
            <a type="submit" href="/user_uploads/{{path_id}}" class="hidden-attachment-download" download></a>
            {{> ../components/icon_button
              icon="download"
              intent="info"
              custom_classes="tippy-zulip-delayed-tooltip download-attachment"
              data-tippy-content=(t "Download")
              }}
        </span>
        <span class="edit-attachment-buttons">
            {{> ../components/icon_button
              icon="trash"
              custom_classes="tippy-zulip-delayed-tooltip delete remove-attachment"
              intent="danger"
              data-tippy-content=(t "Delete")
              }}
        </span>
    </td>
</tr>
{{/with}}