[gen] appy.gen.mail.py: bugfix (management of recipients). When Config.userLink is False, still display the user name, but as non-clickable text.
This commit is contained in:
		
							parent
							
								
									f3849d4f92
								
							
						
					
					
						commit
						0465fae6dc
					
				
					 3 changed files with 11 additions and 12 deletions
				
			
		|  | @ -16,8 +16,9 @@ class UserWrapper(AbstractWrapper): | |||
|     # Display, in the user strip, links to the User instance of the logged user. | ||||
|     pxUserLink = Px(''' | ||||
|      <td class="userStripText" align=":dright"> | ||||
|       <a href=":user.url"><img src=":url('user')"/> | ||||
|       <a if="cfg.userLink" href=":user.url"><img src=":url('user')"/> | ||||
|        <span style="padding: 0 3px">:user.getTitle()</span></a> | ||||
|       <x if="not cfg.userLink">:user.getTitle()</x> | ||||
|      </td>''') | ||||
| 
 | ||||
|     def isSpecial(self): return self.login in self.specialUsers | ||||
|  |  | |||
|  | @ -264,7 +264,7 @@ class AbstractWrapper(object): | |||
|                <a href=":tool.url + '/performLogout'" title=":_('app_logout')"> | ||||
|                 <img src=":url('logout.gif')"/></a> | ||||
|               </td> | ||||
|               <x if="cfg.userLink">:user.pxUserLink</x> | ||||
|               <x>:user.pxUserLink</x> | ||||
|              </tr> | ||||
|             </table> | ||||
|            </td> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gaetan Delannay
						Gaetan Delannay