|  | 
 |  | 
 | 
												
													
														| 89 |        </div>
 | 89 |        </div>
 | 
												
													
														| 90 |      </div>
 | 90 |      </div>
 | 
												
													
														| 91 |      <div id='application-main-panel' class="span9">
 | 91 |      <div id='application-main-panel' class="span9">
 | 
												
													
														|  | 
 | 92 | +    % if current_node.parent_id!=None and current_node.parent_id!=0:
 | 
												
													
														|  | 
 | 93 | +      <div class="btn-group">
 | 
												
													
														|  | 
 | 94 | +        <a class="btn " href="${tg.url('/document/%i'%current_node.parent_id)}" title="${_("Go to parent document")}"><i class="fa fa-hand-o-left"></i></a>
 | 
												
													
														|  | 
 | 95 | +      </div>
 | 
												
													
														|  | 
 | 96 | +    % endif
 | 
												
													
														| 92 |        <div class="btn-group">
 | 97 |        <div class="btn-group">
 | 
												
													
														| 93 |          <button class="btn">Status</button>
 | 98 |          <button class="btn">Status</button>
 | 
												
													
														| 94 |          <a class="btn ${current_node.getStatus().css}" href="#"><i class="${current_node.getStatus().icon}"></i> ${current_node.getStatus().getLabel()}</a>
 | 99 |          <a class="btn ${current_node.getStatus().css}" href="#"><i class="${current_node.getStatus().icon}"></i> ${current_node.getStatus().getLabel()}</a>
 | 
												
											
												
													
														|  | 
 |  | 
 | 
												
													
														| 141 |                  <li class="active"><a href="#events" data-toggle="tab" title="History"><i class="pod-dark-grey fa fa-calendar"></i>${POD.ItemNb(current_node.getEvents())}</a></li>
 | 146 |                  <li class="active"><a href="#events" data-toggle="tab" title="History"><i class="pod-dark-grey fa fa-calendar"></i>${POD.ItemNb(current_node.getEvents())}</a></li>
 | 
												
													
														| 142 |                  <li><a href="#contacts" data-toggle="tab" title="Contacts"><i class="pod-dark-grey fa fa-user"></i>${POD.ItemNb(current_node.getContacts())}</a></li>
 | 147 |                  <li><a href="#contacts" data-toggle="tab" title="Contacts"><i class="pod-dark-grey fa fa-user"></i>${POD.ItemNb(current_node.getContacts())}</a></li>
 | 
												
													
														| 143 |                  <li><a href="#comments" data-toggle="tab" title="Comments"><i class="pod-dark-grey fa fa-comments-o"></i>${POD.ItemNb(current_node.getComments())}</a></li>
 | 148 |                  <li><a href="#comments" data-toggle="tab" title="Comments"><i class="pod-dark-grey fa fa-comments-o"></i>${POD.ItemNb(current_node.getComments())}</a></li>
 | 
												
													
														| 144 | -                <li><a href="#files" data-toggle="tab" title="Files"><i class="pod-dark-grey fa fa-files-o"></i>${POD.ItemNb(current_node.getFiles())}</a></li>
 |  | 
 | 
												
													
														|  | 
 | 149 | +                <li><a href="#files" data-toggle="tab" title="Files"><i class="pod-dark-grey fa  fa-file-text-o"></i>${POD.ItemNb(current_node.getFiles())}</a></li>
 | 
												
													
														| 145 |              </ul>
 | 150 |              </ul>
 | 
												
													
														| 146 |              <div class="tab-content">
 | 151 |              <div class="tab-content">
 | 
												
													
														| 147 |                  ################################
 | 152 |                  ################################
 | 
												
											
												
													
														|  | 
 |  | 
 | 
												
													
														| 270 |                    <!-- LIST OF CONTACT NODES -->
 | 275 |                    <!-- LIST OF CONTACT NODES -->
 | 
												
													
														| 271 |                    % for contact in current_node.getContacts():
 | 276 |                    % for contact in current_node.getContacts():
 | 
												
													
														| 272 |                      <div class="well">
 | 277 |                      <div class="well">
 | 
												
													
														| 273 | -                      <legend class="text-info">${contact.data_label}</legend>
 |  | 
 | 
												
													
														|  | 
 | 278 | +                      <legend class="text-info">
 | 
												
													
														|  | 
 | 279 | +                        ${contact.data_label}
 | 
												
													
														|  | 
 | 280 | +                        ## TODO - 2013-11-20 - Use the right form in order to update meta-data
 | 
												
													
														|  | 
 | 281 | +                        <a class="pull-right" href="${tg.url('/document/%i'%contact.node_id)}"><i class="fa fa-edit"></i></a>
 | 
												
													
														|  | 
 | 282 | +                      </legend>
 | 
												
													
														|  | 
 | 283 | +                      
 | 
												
													
														| 274 |                        <div>
 | 284 |                        <div>
 | 
												
													
														| 275 |                          ## FIXME - D.A. - 2013-11-15 - Implement localisation stuff <a style='float: right;' href="" title='${_('Search on google maps')}'><i class='icon-g-google-maps'></i></a>
 | 285 |                          ## FIXME - D.A. - 2013-11-15 - Implement localisation stuff <a style='float: right;' href="" title='${_('Search on google maps')}'><i class='icon-g-google-maps'></i></a>
 | 
												
													
														| 276 |                          ${contact.data_content|n}
 | 286 |                          ${contact.data_content|n}
 | 
												
											
												
													
														|  | 
 |  | 
 | 
												
													
														| 315 |                        <tr title="Last updated: ${comment.updated_at}">
 | 325 |                        <tr title="Last updated: ${comment.updated_at}">
 | 
												
													
														| 316 |                          <td>
 | 326 |                          <td>
 | 
												
													
														| 317 |                            <i>The ${comment.getFormattedDate(comment.updated_at)} at ${comment.getFormattedTime(comment.updated_at)}: </i><br/>
 | 327 |                            <i>The ${comment.getFormattedDate(comment.updated_at)} at ${comment.getFormattedTime(comment.updated_at)}: </i><br/>
 | 
												
													
														| 318 | -                          <b>${comment.data_label}</b><br/>
 |  | 
 | 
												
													
														|  | 
 | 328 | +                          <b>${comment.data_label}</b>
 | 
												
													
														|  | 
 | 329 | +                          ## TODO - 2013-11-20 - Use the right form in order to update meta-data
 | 
												
													
														|  | 
 | 330 | +                          <a class="pull-right" href="${tg.url('/document/%i'%comment.node_id)}"><i class="fa fa-edit"></i></a>
 | 
												
													
														|  | 
 | 331 | +                          <br/>
 | 
												
													
														| 319 |                            <p>
 | 332 |                            <p>
 | 
												
													
														| 320 |                              ${comment.data_content|n}
 | 333 |                              ${comment.data_content|n}
 | 
												
													
														| 321 |                            </p>
 | 334 |                            </p>
 | 
												
											
												
													
														|  | 
 |  | 
 | 
												
													
														| 362 |                      % for current_file in current_node.getFiles():
 | 375 |                      % for current_file in current_node.getFiles():
 | 
												
													
														| 363 |                        <tr title="Last updated: ${current_file.updated_at}">
 | 376 |                        <tr title="Last updated: ${current_file.updated_at}">
 | 
												
													
														| 364 |                          <td>
 | 377 |                          <td>
 | 
												
													
														| 365 | -                          <a href="${tg.url('/api/get_file_content/%s'%(current_file.node_id))}" title="${_("Download file")}"><i class="icon-g-attach"></i></a>
 |  | 
 | 
												
													
														|  | 
 | 378 | +                          <a href="${tg.url('/api/get_file_content/%s'%(current_file.node_id))}" title="${_("Download file")}">
 | 
												
													
														|  | 
 | 379 | +                            <i class="fa fa-2x fa-file-text-o"></i>
 | 
												
													
														|  | 
 | 380 | +                          </a>
 | 
												
													
														| 366 |                            ## FIXME - SHOW THUMBNAIL WHEN IT WILL BE OK<img src="${tg.url('/api/get_file_content_thumbnail/%s'%(current_file.node_id))}" class="img-polaroid">
 | 381 |                            ## FIXME - SHOW THUMBNAIL WHEN IT WILL BE OK<img src="${tg.url('/api/get_file_content_thumbnail/%s'%(current_file.node_id))}" class="img-polaroid">
 | 
												
													
														| 367 |                          </td>
 | 382 |                          </td>
 | 
												
													
														| 368 |                          <td>
 | 383 |                          <td>
 | 
												
													
														| 369 | -                          <b>${current_file.data_label}</b><br/>
 |  | 
 | 
												
													
														| 370 | -                          <i>commented by comment.author the ${current_file.getFormattedDate(current_file.updated_at)} at ${current_file.getFormattedTime(current_file.updated_at)}</i></br>
 |  | 
 | 
												
													
														|  | 
 | 384 | +                          <b>${current_file.data_label}</b>
 | 
												
													
														|  | 
 | 385 | +                          <a class="pull-right" href="${tg.url('/api/get_file_content/%s'%(current_file.node_id))}" title="${_("Download file")}">
 | 
												
													
														|  | 
 | 386 | +                            <i class="fa fa-download"></i>
 | 
												
													
														|  | 
 | 387 | +                          </a>
 | 
												
													
														|  | 
 | 388 | +                          <a class="pull-right" href="${tg.url('/document/%i'%current_file.node_id)}" title="${_("Edit title or comment")}"><i class="fa fa-edit"></i></a>
 | 
												
													
														|  | 
 | 389 | +
 | 
												
													
														|  | 
 | 390 | +                          <br/>
 | 
												
													
														| 371 |                            <p>
 | 391 |                            <p>
 | 
												
													
														| 372 |                              ${current_file.data_content|n}
 | 392 |                              ${current_file.data_content|n}
 | 
												
													
														| 373 |                            </p>
 | 393 |                            </p>
 |