source: trunk/prototype/modules/mail/templates/detailedfoldertree.ejs @ 7456

Revision 7456, 2.8 KB checked in by fernando, 7 years ago (diff)

Ticket #3088 - Removido o botão do MailArchiver? Admin da lista de pastas locais, para o menu Ferramentas

  • Property svn:executable set to *
Line 
1<%
2
3        var specialFolders = {
4                        INBOX: {name:'Caixa de Entrada', classe:'inbox'},
5                        Inbox: {name:'Caixa de Entrada', classe:'inbox'},
6                };
7    specialFolders[outboxfolder] = {name: 'Caixa de Sa&iacuteda', classe:'outbox'};
8        specialFolders[trashfolder] = {name:'Lixeira', classe:'trash'};
9        specialFolders[draftsfolder] = {name:'Rascunhos', classe:'drafts'};
10        specialFolders[spamfolder] = {name:'Spam', classe:'spam'};
11        specialFolders[sentfolder] = {name:'Enviados', classe:'sent'};
12        function recursive_forest(array_trees)
13        {
14          %><ul><%
15       
16              for(var i=0; i<array_trees.length; i++)
17              {
18                  folder_class = '';
19                  folder_name = array_trees[i].commonName;
20
21                  if( specialFolders[folder_name] ){
22                      folder_class = specialFolders[folder_name].classe;
23                      folder_name = specialFolders[folder_name].name;
24                  }
25
26                  %><li id="<%= array_trees[i].id %>" class="closed"><span class="folder <%= folder_class %>" title="<%= folder_name %>" style="text-align : left; position : static;"><%= folder_name %>
27                  <% if(array_trees[i].messageCount.unseen > 0){        %>
28                        <span style="text-align : left;">[<label id="dftree_<%= array_trees[i].id%>_unseen" class="folder_unseen" style="color : red; text-align : left;"><%= array_trees[i].messageCount.unseen %></label>]</span>
29                  <% }  %>
30                  <% if(array_trees[i].children_unseen > 0){    %>
31                        <span style="text-align : left;">[<label id="dftree_<%= array_trees[i].id%>_children_unseen" class="folder_unseen" style="color : blue; text-align : left;"><%= array_trees[i].children_unseen %></label>]</span>
32                  <% }  %>
33                  </span>
34                  <input type="hidden" value="<%= array_trees[i].type %>">
35                  <%
36                  if (array_trees[i].children.length>0)
37                          recursive_forest(array_trees[i].children);
38
39                  %></li><%
40              }
41 
42          %></ul><%
43        }
44%>
45<ul class="filetree foldertree-skin-prognus mainfoldertree">
46  <li><span class="folder head_folder">Minhas Pastas</span>
47      <% recursive_forest(data.folders[0]); %>
48  </li>
49  <% if(data.folders[1].length > 0) { %>
50  <li><span class="folder shared-folders">Pastas compartilhadas</span>
51      <% recursive_forest(data.folders[1]); %>
52  </li>
53  <%}%>
54  <% if(preferences.use_local_messages == 1) { %>
55     <% if(expresso_mail_archive.enabled && data.folders[2].length > 0) { /*MailArchive ativado*/ %>
56        <li>
57                <span class="folder local-folder head_folder" style="display: inline;">Pastas locais</span>
58                <% recursive_forest(data.folders[2]); %>
59        </li>
60    <%} else { /*MailArchive desativado*/ %>
61        <li>
62                <span class="folder local-folder head_folder" style="display: inline;" title="MailArchive Desconectado">Pastas locais</span>
63                <span class="local-connect" onclick="services_retry();" title="Conectar ao MailArchive"></span>
64        </li>
65        <%}%>
66
67  <%}%>
68  <li><span class="folder head_folder all_accomp followup-messages">Para acompanhamento</span>
69  </li>
70</ul>
Note: See TracBrowser for help on using the repository browser.