|  | @@ -0,0 +1,109 @@
 | 
	
		
			
			|  | 1 | +<%inherit file="local:templates.master"/>
 | 
	
		
			
			|  | 2 | +<%namespace name="POD" file="pboard.templates.pod"/>
 | 
	
		
			
			|  | 3 | +
 | 
	
		
			
			|  | 4 | +<%def name="title()">
 | 
	
		
			
			|  | 5 | +pod > dashobard
 | 
	
		
			
			|  | 6 | +</%def>
 | 
	
		
			
			|  | 7 | +
 | 
	
		
			
			|  | 8 | +  <div class="row">
 | 
	
		
			
			|  | 9 | +    <div class="container-fluid">
 | 
	
		
			
			|  | 10 | +      <div class="row-fluid">
 | 
	
		
			
			|  | 11 | +        <div class="span6">
 | 
	
		
			
			|  | 12 | +          ## LEFT PANEL OF THE DASHBOARD
 | 
	
		
			
			|  | 13 | +          <div id='whats-hot-panel' class="well">
 | 
	
		
			
			|  | 14 | +            ## WHAT'S HOT PANEL
 | 
	
		
			
			|  | 15 | +            <h3><i class="fa fa-warning pod-red"></i> ${_("What's hot!")}</h3>
 | 
	
		
			
			|  | 16 | +            % if len(whats_hot_nodes)<=0:
 | 
	
		
			
			|  | 17 | +              <p>${_("No hot stuff for today.")}</p>
 | 
	
		
			
			|  | 18 | +            % else:
 | 
	
		
			
			|  | 19 | +              <ul>
 | 
	
		
			
			|  | 20 | +              % for node in whats_hot_nodes:
 | 
	
		
			
			|  | 21 | +                <li title="${node.data_label}">
 | 
	
		
			
			|  | 22 | +                  <i class="${node.getIconClass()}" title="${node.getUserFriendlyNodeType()}"></i> 
 | 
	
		
			
			|  | 23 | +                % if node.node_type=='data' or node.parent_id==None:
 | 
	
		
			
			|  | 24 | +                  <a href="${tg.url('/document/%i'%node.node_id)}">
 | 
	
		
			
			|  | 25 | +                % else:
 | 
	
		
			
			|  | 26 | +                  <a href="${tg.url('/document/%i#tab-%ss'%(node.parent_id, node.node_type))}">
 | 
	
		
			
			|  | 27 | +                % endif
 | 
	
		
			
			|  | 28 | +                    ${node.getTruncatedLabel(70)}
 | 
	
		
			
			|  | 29 | +                  </a>
 | 
	
		
			
			|  | 30 | +                    <span title="${_('last modification')}" class="pull-right label">
 | 
	
		
			
			|  | 31 | +                     ${node.getFormattedDateTime(node.updated_at)}
 | 
	
		
			
			|  | 32 | +                    </span>
 | 
	
		
			
			|  | 33 | +                </li>
 | 
	
		
			
			|  | 34 | +              % endfor
 | 
	
		
			
			|  | 35 | +              </ul>
 | 
	
		
			
			|  | 36 | +            % endif
 | 
	
		
			
			|  | 37 | +            ## WHAT'S HOT PANEL [END]
 | 
	
		
			
			|  | 38 | +          </div>
 | 
	
		
			
			|  | 39 | +
 | 
	
		
			
			|  | 40 | +          <div id='action-to-do-documents-panel' class="well">
 | 
	
		
			
			|  | 41 | +            ## DOCUMENTS REQUIRING ACTIONS PANEL
 | 
	
		
			
			|  | 42 | +            <h3><i class="pod-blue fa fa-gears"></i> ${_("Actions to do")}</h3>
 | 
	
		
			
			|  | 43 | +            % if len(action_to_do_nodes)<=0:
 | 
	
		
			
			|  | 44 | +              <p>${_("No document requiring action.")}</p>
 | 
	
		
			
			|  | 45 | +            % else:
 | 
	
		
			
			|  | 46 | +              <ul>
 | 
	
		
			
			|  | 47 | +              % for node in action_to_do_nodes:
 | 
	
		
			
			|  | 48 | +                <li title="${node.data_label}">
 | 
	
		
			
			|  | 49 | +                  <i class="${node.getIconClass()}" title="${node.getUserFriendlyNodeType()}"></i> 
 | 
	
		
			
			|  | 50 | +                % if node.node_type=='data' or node.parent_id==None:
 | 
	
		
			
			|  | 51 | +                  <a href="${tg.url('/document/%i'%node.node_id)}">
 | 
	
		
			
			|  | 52 | +                % else:
 | 
	
		
			
			|  | 53 | +                  <a href="${tg.url('/document/%i#tab-%ss'%(node.parent_id, node.node_type))}">
 | 
	
		
			
			|  | 54 | +                % endif
 | 
	
		
			
			|  | 55 | +                    ${node.getTruncatedLabel(70)}
 | 
	
		
			
			|  | 56 | +                  </a>
 | 
	
		
			
			|  | 57 | +                    <span title="${_('last modification')}" class="pull-right label">
 | 
	
		
			
			|  | 58 | +                     ${node.getFormattedDateTime(node.updated_at)}
 | 
	
		
			
			|  | 59 | +                    </span>
 | 
	
		
			
			|  | 60 | +                </li>
 | 
	
		
			
			|  | 61 | +              % endfor
 | 
	
		
			
			|  | 62 | +              </ul>
 | 
	
		
			
			|  | 63 | +            % endif
 | 
	
		
			
			|  | 64 | +            ## DOCUMENTS REQUIRING ACTIONS PANEL [END]
 | 
	
		
			
			|  | 65 | +          </div>
 | 
	
		
			
			|  | 66 | +
 | 
	
		
			
			|  | 67 | +          ## LEFT PANEL OF THE DASHBOARD [END]
 | 
	
		
			
			|  | 68 | +        </div>
 | 
	
		
			
			|  | 69 | +        <div class="span6">
 | 
	
		
			
			|  | 70 | +          ## RIGHT PANEL OF THE DASHBOARD
 | 
	
		
			
			|  | 71 | +          <div id='last-modified-documents-panel' class="well">
 | 
	
		
			
			|  | 72 | +            <h3><i style="color: #999;" class="fa fa-clock-o"></i> ${_("Latest operations")}</h3>
 | 
	
		
			
			|  | 73 | +            % if len(last_modified_nodes)<=0:
 | 
	
		
			
			|  | 74 | +              <p>${_("No activity found")}</p>
 | 
	
		
			
			|  | 75 | +            % else:
 | 
	
		
			
			|  | 76 | +              <table class="table table-condensed table-hover">
 | 
	
		
			
			|  | 77 | +              % for node in last_modified_nodes:
 | 
	
		
			
			|  | 78 | +                <tr title="${node.data_label}">
 | 
	
		
			
			|  | 79 | +                  <td>${node.getFormattedDateTime(node.updated_at)}</td>
 | 
	
		
			
			|  | 80 | +                  <td title="${node.getUserFriendlyNodeType()}">
 | 
	
		
			
			|  | 81 | +                    <i class="${node.getIconClass()}"></i> 
 | 
	
		
			
			|  | 82 | +                  </td>
 | 
	
		
			
			|  | 83 | +                  <td>
 | 
	
		
			
			|  | 84 | +                  % if node.node_type=='data' or node.parent_id==None:
 | 
	
		
			
			|  | 85 | +                    <a href="${tg.url('/document/%i'%node.node_id)}">
 | 
	
		
			
			|  | 86 | +                  % else:
 | 
	
		
			
			|  | 87 | +                    <a href="${tg.url('/document/%i#tab-%ss'%(node.parent_id, node.node_type))}">
 | 
	
		
			
			|  | 88 | +                  % endif
 | 
	
		
			
			|  | 89 | +                      ${node.getTruncatedLabel(35)}
 | 
	
		
			
			|  | 90 | +                    </a>
 | 
	
		
			
			|  | 91 | +                  </td>
 | 
	
		
			
			|  | 92 | +                  <td>
 | 
	
		
			
			|  | 93 | +                  % if node.updated_at==node.created_at:
 | 
	
		
			
			|  | 94 | +                    <span class="label label-success">${_("created")}</span>
 | 
	
		
			
			|  | 95 | +                  % else:
 | 
	
		
			
			|  | 96 | +                    <span class="label label-info">${_("updated")}</span>
 | 
	
		
			
			|  | 97 | +                  % endif
 | 
	
		
			
			|  | 98 | +                  </td>
 | 
	
		
			
			|  | 99 | +                </tr>
 | 
	
		
			
			|  | 100 | +              % endfor
 | 
	
		
			
			|  | 101 | +              </table>
 | 
	
		
			
			|  | 102 | +            % endif
 | 
	
		
			
			|  | 103 | +          </div>
 | 
	
		
			
			|  | 104 | +          ## RIGHT PANEL OF THE DASHBOARD [END]
 | 
	
		
			
			|  | 105 | +        </div>
 | 
	
		
			
			|  | 106 | +      </div>
 | 
	
		
			
			|  | 107 | +    </div>
 | 
	
		
			
			|  | 108 | +  </div>
 | 
	
		
			
			|  | 109 | +
 |