|
| 1 | +<div class="log-rows"> |
| 2 | + <div data-test-log-row-header class="log-row log-row--header"> |
| 3 | + <span class="log-cell log-cell--shrink"></span> |
| 4 | + <span class="log-cell log-cell--shrink">Project</span> |
| 5 | + <span class="log-cell log-cell--shrink">Organization</span> |
| 6 | + <span class="log-cell">Status</span> |
| 7 | + <span class="log-cell log-cell--shrink">Approval</span> |
| 8 | + </div> |
| 9 | + |
| 10 | + {{#each model as |project|}} |
| 11 | + <div data-test-log-row class="log-row"> |
| 12 | + <span data-test-icon class="log-cell log-cell--shrink"> |
| 13 | + {{#if project.iconThumbUrl}} |
| 14 | + {{#link-to 'project' project.organization.slug project.slug}} |
| 15 | + <img class="icon icon--small" width="35" height="35" src="{{project.iconThumbUrl}}" /> |
| 16 | + {{/link-to}} |
| 17 | + {{else}} |
| 18 | + <div class="icon icon--small"></div> |
| 19 | + {{/if}} |
| 20 | + </span> |
| 21 | + <span data-test-title class="log-cell log-cell--shrink"> |
| 22 | + {{#link-to 'project' project.organization.slug project.slug}} |
| 23 | + {{project.title}} |
| 24 | + {{/link-to}} |
| 25 | + </span> |
| 26 | + <span data-test-organization class="log-cell log-cell--shrink"> |
| 27 | + {{#link-to 'slugged-route' project.organization.slug}} |
| 28 | + {{project.organization.name}} |
| 29 | + {{/link-to}} |
| 30 | + </span> |
| 31 | + <span data-test-approval-status class="log-cell"> |
| 32 | + {{#if project.isSaving}} |
| 33 | + {{fa-icon "ellipsis-h"}} Saving... |
| 34 | + {{else if project.approved}} |
| 35 | + <span class="log-data--success"> |
| 36 | + {{fa-icon "check-circle"}} Approved |
| 37 | + </span> |
| 38 | + {{else if project.approvalRequested}} |
| 39 | + {{fa-icon "question-circle"}} Pending approval |
| 40 | + {{else}} |
| 41 | + {{fa-icon "asterisk"}} Created |
| 42 | + {{/if}} |
| 43 | + </span> |
| 44 | + <span data-test-actions class="log-cell log-cell--shrink"> |
| 45 | + {{#if (and project.approvalRequested (not project.approved))}} |
| 46 | + <button {{action approve project}} class="default small">Approve</button> |
| 47 | + {{/if}} |
| 48 | + </span> |
| 49 | + </div> |
| 50 | + {{/each}} |
| 51 | +</div> |
0 commit comments