Ignore:
Timestamp:
Mar 17, 2012, 3:07:28 PM (12 years ago)
Author:
plg
Message:

feature 2594: l10n on new strings of the "Album Permissions" screen. Details about "indirect permissions".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/cat_perm.tpl

    r13580 r13593  
    1818  jQuery("#selectStatus").change(function() {
    1919    checkStatusOptions();
     20  });
     21
     22  jQuery("#indirectPermissionsDetailsShow").click(function(){
     23    jQuery("#indirectPermissionsDetailsShow").hide();
     24    jQuery("#indirectPermissionsDetailsHide").show();
     25    jQuery("#indirectPermissionsDetails").show();
     26    return false;
     27  });
     28
     29  jQuery("#indirectPermissionsDetailsHide").click(function(){
     30    jQuery("#indirectPermissionsDetailsShow").show();
     31    jQuery("#indirectPermissionsDetailsHide").hide();
     32    jQuery("#indirectPermissionsDetails").hide();
     33    return false;
    2034  });
    2135});
     
    4256
    4357  <p>
     58{if count($groups) > 0}
    4459    <strong>{'Permission granted for groups'|@translate}</strong>
    4560    <br>
     
    4762      {html_options options=$groups selected=$groups_selected}
    4863    </select>
     64{else}
     65    {'There is no group in this gallery.'|@translate} <a href="admin.php?page=group_list" class="externalLink">{'Group management'|@translate}</a>
     66{/if}
    4967  </p>
    5068
     
    5674    </select>
    5775  </p>
     76
     77{if isset($nb_users_granted_indirect)}
     78  <p>
     79    {'%u users have automatic permission because they belong to a granted group.'|@translate|@sprintf:$nb_users_granted_indirect}
     80    <a href="#" id="indirectPermissionsDetailsHide" style="display:none">{'hide details'|@translate}</a>
     81    <a href="#" id="indirectPermissionsDetailsShow">{'show details'|@translate}</a>
     82
     83    <ul id="indirectPermissionsDetails" style="display:none">
     84  {foreach from=$user_granted_indirect_groups item=group_details}
     85      <li><strong>{$group_details.group_name}</strong> : {$group_details.group_users}</li>
     86  {/foreach}
     87    </ul>
     88  </p>
     89{/if}
    5890
    5991{*
Note: See TracChangeset for help on using the changeset viewer.