source: trunk/prototype/modules/mail/templates/float_folder_menu.ejs @ 7092

Revision 7092, 2.6 KB checked in by gustavo, 10 years ago (diff)

Ticket #3062 - Melhoria no icone de edicao de pastas nas Minhas pastas

  • Property svn:executable set to *
Line 
1<%
2        var specialFolders = {
3                        INBOX: {name:'Caixa de Entrada'},
4                        Inbox: {name:'Caixa de Entrada'},
5                        Root : {name:'root'}
6                };
7        specialFolders[trashfolder] = {name:'Lixeira', classe:'trash'};
8        specialFolders[draftsfolder] = {name:'Rascunhos', classe:'drafts'};
9        specialFolders[spamfolder] = {name:'Spam', classe:'spam'};
10        specialFolders[sentfolder] = {name:'Enviados', classe:'sent'};
11%>
12
13<span class="float-menu">
14        <%if(!data.flag.valid){ %>
15                <%if(data.name_folder != 'INBOX'){%>
16                        <span class="ui-icon ui-icon-document float-menu-new floating-default" title="<%=get_lang("New Folder")%>"></span> 
17                <%}%>
18                <%if(!specialFolders[data.name_folder]){ %>
19                        <span class="ui-icon ui-icon-pencil float-menu-edit floating-default" title="<%=get_lang("Edit folder")%>"></span> 
20                        <span class="ui-icon ui-icon-close float-menu-remove floating-default" title="<%=get_lang("Delete folder")%>"></span> 
21                <%}
22                else if(data.name_folder == trashfolder){%>
23                        <span class="ui-icon ui-icon-trash float-menu-clean floating-default" onclick="empty_trash_imap();" title="<%=get_lang("Empty Trash")%>"></span> 
24                <%}
25                else if(data.name_folder == spamfolder){%>
26                        <span class="ui-icon ui-icon-trash float-menu-clean floating-default" onclick="empty_spam_imap();" title="<%=get_lang("Empty Spam")%>"></span> 
27                       
28                <%}%>
29
30        <%}else{ %>
31        <%      if(parseInt(data.acl.create)){%>
32                        <span class="ui-icon ui-icon-document float-menu-new floating-default" title="<%=get_lang("New Folder")%>"></span>
33        <%              if(parseInt(data.acl.delete) && parseInt(data.acl.rename) && !specialFolders[data.name_folder] && !data.flag.head){ %>
34                                <span class="ui-icon ui-icon-pencil float-menu-edit floating-default" title="<%=get_lang("Edit folder")%>"></span> 
35        <%              } %>
36
37        <%      } %>
38        <%      if(parseInt(data.acl.delete) && !specialFolders[data.name_folder] && !data.flag.head){ %>
39                        <span class="ui-icon ui-icon-close float-menu-remove floating-default" title="<%=get_lang("Delete folder")%>"></span>
40                <%}%>
41                <%if(data.name_folder == trashfolder && parseInt(data.acl.delete)){%>
42                        <span class="ui-icon ui-icon-trash float-menu-clean floating-default" onclick="empty_trash_imap(true, $(this));" title="<%=get_lang("Empty Trash")%>"></span> 
43                <%}else if(data.name_folder == spamfolder && parseInt(data.acl.delete)){%>
44                        <span class="ui-icon ui-icon-trash float-menu-clean floating-default" onclick="empty_spam_imap(true, $(this));" title="<%=get_lang("Empty Spam")%>"></span> 
45                <%}%>
46        <%}%>
47        <span class="ui-icon ui-icon-arrowthickstop-1-n float-menu-export floating-default" title="<%=get_lang("Export folder messages")%>"></span> 
48 </span>
Note: See TracBrowser for help on using the repository browser.