Changeset 6592 for trunk/prototype/modules/mail/templates/listContacts.ejs
- Timestamp:
- 06/22/12 18:01:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/mail/templates/listContacts.ejs
r6528 r6592 1 <% 2 var decodeType = { 3 '/dynamiccontacts': { 4 css: 'recent', 5 img: 'recent', 6 text: 'Contato dinâmico' 7 }, 8 '/contacts':{ 9 css: 'personal', 10 img: 'personal', 11 text: 'Contato pessoal', 12 }, 13 '/sharedcontact':{ 14 css: 'personal', 15 img: 'sharedcontact', 16 text: 'Contato compartilhado', 17 }, 18 '/groups':{ 19 css: 'group', 20 img: 'group', 21 text: 'Grupo pessoal', 22 }, 23 '/sharedgroup':{ 24 css: 'group', 25 img: 'sharedgroup', 26 text: 'Grupo compartilhado', 27 } 28 } 29 %> 1 30 <%if (data.type == 'linha'){%> 2 <li >31 <li class="dynamic-separator"> 3 32 <div class="line-separator"> 4 33 5 34 </div> 6 35 <%}else{%> 7 <li class="dynamic-<%= (data.type =='' ? 'recent' : (data.type == 'P' ? 'personal' : 'group'))%>">8 <a style="width:<%= (data.type == ' ' ? '91%' : '97.5%')%>; display: inline-block;">9 <img style="position:relative; top:2px; "src="../prototype/modules/mail/img/<%=d ata.type == '' ? 'recent' : (data.type== 'P' ? 'personal' : 'group')%>.png" title="<%=data.type == '' ? 'Contato Recente' : (data.type== 'P' ? 'Contato Pessoal' : 'Grupo de Contatos')%>"/>10 <%= (data.name ? data.name + " - " : "") %><%= data.email %>11 <% if(data.type == ' '){ %>36 <li class="dynamic-<%=decodeType[data.type].css%>"> 37 <a style="width:<%= (data.type == '/dynamiccontacts' ? '91%' : '97.5%')%>; display: inline-block;"> 38 <img style="position:relative; top:2px; "src="../prototype/modules/mail/img/<%=decodeType[data.type].img%>.png" title="<%=decodeType[data.type].text%>"/> 39 <%= (data.name ? (data.name.length > 20? data.name.substring(0,17)+"..." : data.name)+ " - " : "") %><%= data.mail %> 40 <% if(data.type == '/dynamiccontacts'){ %> 12 41 <div class="dynamic-stars" style="display: inline-block;float: right;"/> 13 42 <% } %> 14 43 </a> 15 <span style="width:16px; height:16px; top:5px; <%=data.type == ' ' ? '': 'display:none'%>">Excluir contato recente</span>44 <span style="width:16px; height:16px; top:5px; <%=data.type == '/dynamiccontacts' ? '': 'display:none'%>">Excluir contato recente</span> 16 45 <%}%> 17 46 </li>
Note: See TracChangeset
for help on using the changeset viewer.