|
24 | 24 | <div class="panel panel-default"> |
25 | 25 | <article class="panel-body portfolio-item" id="portfolio-item-{{ item.id }}"> |
26 | 26 | <div class="portfolio-actions pull-right"> |
27 | | - {% if app.user.id == item.user.id %} |
| 27 | + {% if app.user.id == item.resourceNode.creator.id %} |
28 | 28 | <a href="{{ baseurl ~ {'action':'edit_item', 'id':item.id}|url_encode }}"> |
29 | 29 | {{ 'edit.png'|icon(22, 'Edit'|get_lang) }} |
30 | 30 | </a> |
|
52 | 52 | <a href="{{ baseurl ~ {'action':'delete_item', 'id':item.id}|url_encode }}" class="btn-delete"> |
53 | 53 | {{ 'delete.png'|icon(22, 'Delete'|get_lang) }} |
54 | 54 | </a> |
55 | | - {% elseif is_allowed_to_edit %} |
| 55 | + {% elseif is_allowed_to_edit_helper.check() %} |
56 | 56 | <a href="{{ baseurl ~ {'action':'edit_item', 'id':item.id}|url_encode }}"> |
57 | 57 | {{ 'edit.png'|icon(22, 'Edit'|get_lang) }} |
58 | 58 | </a> |
59 | 59 | {% endif %} |
60 | 60 |
|
61 | | - {% if is_allowed_to_edit %} |
| 61 | + {% if is_allowed_to_edit_helper.check() %} |
62 | 62 | {% if item.isHighlighted %} |
63 | 63 | <a href="{{ baseurl ~ {'action':'highlighted', 'id':item.id}|url_encode }}"> |
64 | 64 | {{ 'award_red.png'|icon(22, 'UnmarkAsHighlighted'|get_lang) }} |
|
99 | 99 | {% else %} |
100 | 100 | <li> |
101 | 101 | <span class="fa-li fa fa-user" aria-hidden="true"></span> |
102 | | - {{ item.user.completeName }} |
| 102 | + {{ item.resourceNode.creator.fullName }} |
103 | 103 | </li> |
104 | 104 | {% endif %} |
105 | 105 |
|
106 | 106 | <li> |
107 | 107 | <span class="fa-li fa fa-clock-o" aria-hidden="true"></span> |
108 | | - {{ 'CreationDate'|get_lang ~ ': ' ~ item.creationDate|date_to_time_ago }} |
| 108 | + {{ 'CreationDate'|get_lang ~ ': ' ~ item.resourceNode.createdAt|date_to_time_ago }} |
109 | 109 | </li> |
110 | 110 |
|
111 | | - {% if item.creationDate != item.updateDate %} |
| 111 | + {% if item.resourceNode.createdAt != item.resourceNode.updatedAt %} |
112 | 112 | <li> |
113 | 113 | <span class="fa-li fa fa-clock-o" aria-hidden="true"></span> |
114 | | - {{ 'UpdateDate'|get_lang ~ ': ' ~ item.updateDate|date_to_time_ago }} |
| 114 | + {{ 'UpdateDate'|get_lang ~ ': ' ~ item.resourceNode.updatedAt|date_to_time_ago }} |
115 | 115 | </li> |
116 | 116 | {% endif %} |
117 | 117 | </ul> |
|
0 commit comments