|  | 
 |  | 
 | 
												
													
														| 120 |                                  %>
 | 120 |                                  %>
 | 
												
													
														| 121 |                                  <li>${BUTTON.DATA_TARGET_AS_TEXT_AND_ICON_MODAL_WITH_REMOTE_CONTENT(modal_dialog_id, content_type.label, new_form_content_url, icon_classes)}</li>
 | 121 |                                  <li>${BUTTON.DATA_TARGET_AS_TEXT_AND_ICON_MODAL_WITH_REMOTE_CONTENT(modal_dialog_id, content_type.label, new_form_content_url, icon_classes)}</li>
 | 
												
													
														| 122 |                              % else:
 | 122 |                              % else:
 | 
												
													
														| 123 | -                                ## Only show 'new folder' to content managers
 |  | 
 | 
												
													
														| 124 | -                                <%
 |  | 
 | 
												
													
														| 125 | -                                    new_form_content_url = tg.url('/workspaces/{}/folders/{}/{}s/new'.format(result.folder.workspace.id, result.folder.id, content_type.id), params={'workspace_id': result.folder.workspace.id, 'parent_id': result.folder.id})
 |  | 
 | 
												
													
														| 126 | -                                    modal_dialog_id = '{content_type}-new-modal-dialog'.format(content_type=content_type.id)
 |  | 
 | 
												
													
														| 127 | -                                    icon_classes = content_type.icon+' '+content_type.color
 |  | 
 | 
												
													
														| 128 | -                                %>
 |  | 
 | 
												
													
														| 129 | -                                <li>${BUTTON.DATA_TARGET_AS_TEXT_AND_ICON_MODAL_WITH_REMOTE_CONTENT(modal_dialog_id, content_type.label, new_form_content_url, icon_classes)}</li>
 |  | 
 | 
												
													
														|  | 
 | 123 | +                                <li>${BUTTON.DATA_TARGET_AS_TEXT_AND_ICON_MODAL_WITH_REMOTE_CONTENT('', _('You are not allowed to create content'), '', 't-less-visible fa fa-ban')}</li>
 | 
												
													
														|  | 
 | 124 | +## Show new content entries in the menu is currently not available at root of a workspace
 | 
												
													
														|  | 
 | 125 | +## TODO - D.A. - 2015-08-20 - Allow to put content at root (and show related entry in the menu
 | 
												
													
														|  | 
 | 126 | +##                             % if user_role == 2:
 | 
												
													
														|  | 
 | 127 | +##                                 ## Only show 'new folder' to content managers
 | 
												
													
														|  | 
 | 128 | +##                                 <%
 | 
												
													
														|  | 
 | 129 | +##                                     new_form_content_url = tg.url('/workspaces/{}/folders/{}/{}s/new'.format(result.folder.workspace.id, result.folder.id, content_type.id), params={'workspace_id': result.folder.workspace.id, 'parent_id': result.folder.id})
 | 
												
													
														|  | 
 | 130 | +##                                     modal_dialog_id = '{content_type}-new-modal-dialog'.format(content_type=content_type.id)
 | 
												
													
														|  | 
 | 131 | +##                                     icon_classes = content_type.icon+' '+content_type.color
 | 
												
													
														|  | 
 | 132 | +##                                 %>
 | 
												
													
														|  | 
 | 133 | +##                                 <li>${BUTTON.DATA_TARGET_AS_TEXT_AND_ICON_MODAL_WITH_REMOTE_CONTENT(modal_dialog_id, content_type.label, new_form_content_url, icon_classes)}</li>
 | 
												
													
														|  | 
 | 134 | +##                             % endif
 | 
												
													
														| 130 |                              % endif
 | 135 |                              % endif
 | 
												
													
														| 131 |                          % endfor
 | 136 |                          % endfor
 | 
												
													
														| 132 |                      </ul>
 | 137 |                      </ul>
 |