1- <h2 >{{ t ' links.linked-services' }} </h2 >
2-
3- <table local-class =' table' >
4- <thead >
5- <tr local-class =' table-row' >
6- <th local-class =' table-header' >{{ t ' links.linked-service' }} </th >
7- <th local-class =' table-header' >{{ t ' links.display-name' }} </th >
8- <th local-class =' table-header' >{{ t ' links.resource-type' }} </th >
9- <th local-class =' table-header' >
10- {{ #if this.currentUserCanEdit }}
11- <OsfLink
12- @route =' guid-node.addons'
13- @queryParams ={{ hash
14- activeFilterType =' verified-link'
15- tabIndex =' 1'
16- }}
17- @models ={{ array this.model.node.id }}
18- >
19- {{ t ' links.edit' }}
20- </OsfLink >
21- {{ /if }}
22- </th >
23- </tr >
24- </thead >
25- <tbody >
26- {{ #each this.model.configuredLinkAddons as |configuredLinkAddon |}}
27- <tr local-class =' table-row' >
28- <td local-class =' table-cell' >
29- <img alt ={{ t ' links.logo' }} local-class =' logo' src ={{ configuredLinkAddon.externalLinkService.iconUrl }} >
30- <span >{{ configuredLinkAddon.externalLinkService.displayName }} </span >
31- </td >
32- <td local-class =' table-cell' >{{ configuredLinkAddon.displayName }} </td >
33- <td local-class =' table-cell' >{{ configuredLinkAddon.resourceType }} </td >
34- <td local-class =' table-cell' ><a href ={{ configuredLinkAddon.targetUrl }} >{{ t ' links.link' }} </a ></td >
35- </tr >
36- {{ /each }}
37- </tbody >
38- </table >
1+ <div local-class =' links-page-wrapper' >
2+ <h2 >{{ t ' links.linked-services' }} </h2 >
3+ {{ #if this.model.configuredLinkAddons }}
4+ <table local-class =' table' >
5+ <thead >
6+ <tr local-class =' table-row' >
7+ <th local-class =' table-header' >{{ t ' links.linked-service' }} </th >
8+ <th local-class =' table-header' >{{ t ' links.display-name' }} </th >
9+ <th local-class =' table-header' >{{ t ' links.resource-type' }} </th >
10+ <th local-class =' table-header' >
11+ {{ #if this.currentUserCanEdit }}
12+ <OsfLink
13+ @route =' guid-node.addons'
14+ @queryParams ={{ hash
15+ activeFilterType =' verified-link'
16+ tabIndex =' 1'
17+ }}
18+ @models ={{ array this.model.node.id }}
19+ >
20+ {{ t ' links.edit' }}
21+ </OsfLink >
22+ {{ /if }}
23+ </th >
24+ </tr >
25+ </thead >
26+ <tbody >
27+ {{ #each this.model.configuredLinkAddons as |configuredLinkAddon |}}
28+ <tr local-class =' table-row' >
29+ <td local-class =' table-cell' >
30+ <img alt ={{ t ' links.logo' }} local-class =' logo'
31+ src ={{ configuredLinkAddon.externalLinkService.iconUrl }} >
32+ <span >{{ configuredLinkAddon.externalLinkService.displayName }} </span >
33+ </td >
34+ <td local-class =' table-cell' >{{ configuredLinkAddon.displayName }} </td >
35+ <td local-class =' table-cell' >{{ configuredLinkAddon.resourceType }} </td >
36+ <td local-class =' table-cell' ><a href ={{ configuredLinkAddon.targetUrl }} >{{ t ' links.link' }} </a ></td >
37+ </tr >
38+ {{ /each }}
39+ </tbody >
40+ </table >
41+ {{ else }}
42+ <p >{{ t ' links.empty-screen-message' }} </p >
43+ {{ #if this.currentUserCanEdit }}
44+ <p > {{ t ' links.point-to-addons-message' }} <a href =' /{{ this.model.node.id }} /addons?activeFilterType=verified-link' >{{ t ' addons.heading' }} </a ></p >
45+ {{ /if }}
46+ {{ /if }}
47+ </div >
0 commit comments