Commits

Zhang Huangbin  committed 0f46850

Show 'display name' in first column.

  • Participants
  • Parent commits 07fc59d

Comments (0)

Files changed (2)

File templates/default/ldap/admins.html

         <table id="account_list" class="tablesorter">
         <thead>
         <tr>
+            <th>{{ _('Display Name') }}</th>
             <th>{{ _('Mail Address') }}</th>
-            <th>{{ _('Display Name') }}</th>
             <th>{{ _('Global Admin') }}</th>
         </tr>
         </thead>
 
             <tr class="{{ loop.cycle('odd', 'even') }} {{ accountStatus |lower }}">
                 <td>
-                    <span class="float_left"><input type="checkbox" name="mail" value="{{mail}}" />&nbsp;{{mail}}</span>
+                    <span class="float_left">
+                        <input type="checkbox" name="mail" value="{{mail}}" />
+                        <a href="{{ctx.homepath}}/profile/admin/general/{{mail}}" title="{{ _('Edit admin profile.') }}">{{ cn }}</a>
+                    </span>
                     <span class="float_right">{{ set_account_status_img(accountStatus) }}</span>
                 </td>
-                <td><a href="{{ctx.homepath}}/profile/admin/general/{{mail}}" title="{{ _('Edit admin profile.') }}">{{ cn }}</a></td>
+                <td>{{mail}}</td>
                 <td>{{ set_account_status_img(domainGlobalAdmin) }}</td>
             </tr>
         {% endfor %}

File templates/default/ldap/users.html

         {# Table header. #}
         <thead>
         <tr>
+            <th>{{ _('Display Name') }}</th>
             <th>{{ _('Mail Address') }}</th>
-            <th>{{ _('Display Name') }}</th>
             <th>{{ _('Employee ID') }}</th>
             <th>{{ _('Quota') }}</th>
             <th>{{ _('Created Date') }}</th>
 
                 <tr class="{{ loop.cycle('odd', 'even') }} {{ accountStatus |lower }}">
                     <td>
-                        <span class="float_left"><input type="checkbox" name="mail" value="{{mail}}" />&nbsp;{{mail}}</span>
+                        <span class="float_left">
+                            <input type="checkbox" name="mail" value="{{mail}}" />
+                            <a href="{{ctx.homepath}}/profile/user/general/{{mail}}" title="{{ _('Edit user profile') }}">{{ cn }}</a>
+                        </span>
                         <span class="float_right">{{ set_account_status_img(accountStatus) }}</span>
                     </td>
-                    <td><a href="{{ctx.homepath}}/profile/user/general/{{mail}}" title="{{ _('Edit user profile') }}">{{ cn }}</a></td>
+                    <td>{{mail}}</td>
                     <td>{{ employeeid }}</a></td>
 
                 {# mail quota #}