Revision 7221,
1.4 KB
checked in by acoutinho, 12 years ago
(diff) |
Ticket #3104 - Unificar recursos de listagem dos contatos pessoais
|
Rev | Line | |
---|
[7147] | 1 | <%
|
---|
| 2 | var decodeType = {
|
---|
| 3 | '/dynamiccontacts': {
|
---|
| 4 | css: 'recent',
|
---|
| 5 | img: 'recent',
|
---|
| 6 | text: 'Contato dinâmico'
|
---|
| 7 | },
|
---|
[7221] | 8 | '/personalContact':{
|
---|
[7147] | 9 | css: 'personal',
|
---|
| 10 | img: 'personal',
|
---|
[7221] | 11 | text: 'Contato pessoal'
|
---|
[7147] | 12 | },
|
---|
| 13 | '/sharedcontact':{
|
---|
| 14 | css: 'personal',
|
---|
| 15 | img: 'sharedcontact',
|
---|
[7221] | 16 | text: 'Contato compartilhado'
|
---|
[7147] | 17 | },
|
---|
| 18 | '/groups':{
|
---|
| 19 | css: 'group',
|
---|
| 20 | img: 'group',
|
---|
[7221] | 21 | text: 'Grupo pessoal'
|
---|
[7147] | 22 | },
|
---|
| 23 | '/sharedgroup':{
|
---|
| 24 | css: 'group',
|
---|
| 25 | img: 'sharedgroup',
|
---|
[7221] | 26 | text: 'Grupo compartilhado'
|
---|
[7147] | 27 | }
|
---|
| 28 | }
|
---|
| 29 | %>
|
---|
| 30 | <%if (data.type == 'linha'){%>
|
---|
| 31 | <li class="dynamic-separator">
|
---|
| 32 | <div class="line-separator">
|
---|
| 33 |
|
---|
| 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.