source: trunk/prototype/modules/mail/templates/listContacts.ejs @ 6627

Revision 6627, 1.4 KB checked in by marcosw, 12 years ago (diff)

Ticket #2905 - Correção para correta exibição de contatos dinamicos

  • Property svn:executable set to *
Line 
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%>
30<%if (data.type == 'linha'){%>
31<li class="dynamic-separator">
32        <div class="line-separator">
33                &nbsp;
34        </div>
35<%}else{%>
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                <%= ($.trim(data.name) != "" ? (data.name.length > 20? data.name.substring(0,17)+"..." : data.name)+ " - " : "") %><%= data.mail %>
40                <% if(data.type == '/dynamiccontacts'){ %>
41                        <div class="dynamic-stars" style="display: inline-block;float: right;"/>
42                <% } %>
43        </a>
44        <span style="width:16px; height:16px; top:5px; <%=data.type == '/dynamiccontacts' ?  '': 'display:none'%>">Excluir contato recente</span>       
45<%}%>
46</li>
Note: See TracBrowser for help on using the repository browser.