item.pug 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. td.project-list-table-name-cell
  2. .project-list-table-name-container
  3. input.project-list-table-select-item(
  4. select-individual,
  5. type="checkbox",
  6. ng-model="project.selected"
  7. stop-propagation="click"
  8. aria-label=translate('select_project') + " '{{ project.name }}'"
  9. )
  10. span.project-list-table-name
  11. a.project-list-table-name-link(
  12. ng-href="{{projectLink(project)}}"
  13. stop-propagation="click"
  14. ) {{project.name}}
  15. span(
  16. ng-controller="TagListController"
  17. )
  18. .tag-label(
  19. ng-repeat='tag in project.tags'
  20. stop-propagation="click"
  21. )
  22. button.label.label-default.tag-label-name(
  23. ng-click="selectTag(tag)"
  24. aria-label="Select tag {{ tag.name }}"
  25. )
  26. i.fa.fa-circle(
  27. aria-hidden="true"
  28. ng-style="{ 'color': 'hsl({{ getHueForTagId(tag._id) }}, 70%, 45%)' }"
  29. )
  30. | {{tag.name}}
  31. button.label.label-default.tag-label-remove(
  32. ng-click="removeProjectFromTag(project, tag)"
  33. aria-label="Remove tag {{ tag.name }}"
  34. )
  35. span(aria-hidden="true") ×
  36. td.project-list-table-owner-cell
  37. span.owner(ng-if='project.owner') {{getOwnerName(project)}}
  38. |  
  39. i.fa.fa-question-circle.small(
  40. ng-if="hasGenericOwnerName()"
  41. tooltip="This project is owned by a user who hasn’t yet migrated their account to Overleaf v2"
  42. tooltip-append-to-body="true"
  43. aria-hidden="true"
  44. )
  45. span(ng-if="isLinkSharingProject(project)")
  46. |  
  47. i.fa.fa-link.small(
  48. tooltip=translate("link_sharing")
  49. tooltip-placement="right"
  50. tooltip-append-to-body="true"
  51. aria-label=translate("link_sharing")
  52. )
  53. td.project-list-table-lastupdated-cell
  54. span.last-modified(tooltip="{{project.lastUpdated | formatDate}}")
  55. | {{project.lastUpdated | fromNowDate}}
  56. span(ng-show='project.lastUpdatedBy')
  57. |
  58. | #{translate('by')}
  59. | {{getUserName(project.lastUpdatedBy)}}
  60. td.project-list-table-actions-cell
  61. div(
  62. ng-if="!project.isTableActionInflight"
  63. )
  64. button.btn.btn-link.action-btn(
  65. ng-if="!(project.archived || project.trashed)"
  66. aria-label=translate('copy'),
  67. tooltip=translate('copy'),
  68. tooltip-placement="top",
  69. tooltip-append-to-body="true",
  70. ng-click="clone($event)"
  71. )
  72. i.icon.fa.fa-files-o(aria-hidden="true")
  73. button.btn.btn-link.action-btn(
  74. aria-label=translate('download'),
  75. tooltip=translate('download'),
  76. tooltip-placement="top",
  77. tooltip-append-to-body="true",
  78. ng-click="download($event)"
  79. )
  80. i.icon.fa.fa-cloud-download(aria-hidden="true")
  81. button.btn.btn-link.action-btn(
  82. ng-if="!project.archived"
  83. aria-label=translate('archive'),
  84. tooltip=translate('archive'),
  85. tooltip-placement="top",
  86. tooltip-append-to-body="true",
  87. ng-click="archive($event)"
  88. )
  89. i.icon.fa.fa-inbox(aria-hidden="true")
  90. button.btn.btn-link.action-btn(
  91. ng-if="!project.trashed"
  92. aria-label=translate('trash'),
  93. tooltip=translate('trash'),
  94. tooltip-placement="top",
  95. tooltip-append-to-body="true",
  96. ng-click="trash($event)"
  97. )
  98. i.icon.fa.fa-trash(aria-hidden="true")
  99. button.btn.btn-link.action-btn(
  100. ng-if="project.archived && !project.trashed"
  101. aria-label=translate('unarchive'),
  102. tooltip=translate('unarchive'),
  103. tooltip-placement="top",
  104. tooltip-append-to-body="true",
  105. ng-click="unarchive($event)"
  106. )
  107. i.icon.fa.fa-reply(aria-hidden="true")
  108. button.btn.btn-link.action-btn(
  109. ng-if="project.trashed && !project.archived"
  110. aria-label=translate('untrash'),
  111. tooltip=translate('untrash'),
  112. tooltip-placement="top",
  113. tooltip-append-to-body="true",
  114. ng-click="untrash($event)"
  115. )
  116. i.icon.fa.fa-reply(aria-hidden="true")
  117. button.btn.btn-link.action-btn(
  118. ng-if="project.trashed && !project.archived && !isOwner()"
  119. aria-label=translate('leave'),
  120. tooltip=translate('leave'),
  121. tooltip-placement="top",
  122. tooltip-append-to-body="true",
  123. ng-click="leave($event)"
  124. )
  125. i.icon.fa.fa-sign-out(aria-hidden="true")
  126. button.btn.btn-link.action-btn(
  127. ng-if="project.trashed && !project.archived && isOwner()"
  128. aria-label=translate('delete'),
  129. tooltip=translate('delete'),
  130. tooltip-placement="top",
  131. tooltip-append-to-body="true",
  132. ng-click="delete($event)"
  133. )
  134. i.icon.fa.fa-ban(aria-hidden="true")
  135. div(
  136. ng-if="project.isTableActionInflight"
  137. aria-label=translate('processing')
  138. )
  139. i.fa.fa-spinner.fa-spin(aria-hidden="true")