Ignore:
Timestamp:
Jan 31, 2012, 1:33:01 AM (12 years ago)
Author:
plg
Message:

bug 2558 fixed: instead of locking the gallery with a simple checkbox among
configuration options, "lock gallery" becomes a maintenance action, with a
confirmation on popup.

Location:
trunk/admin/themes/default/template
Files:
2 edited

Legend:

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

    r12894 r13001  
    3333  <legend></legend>
    3434  <ul>
    35     <li>
    36       <label>
    37         <span class="property">{'Lock gallery'|@translate}</span>
    38         <input type="checkbox" name="gallery_locked" {if ($main.gallery_locked)}checked="checked"{/if}>
    39       </label>
    40     </li>
    41 
    4235    <li>
    4336      <label>
  • trunk/admin/themes/default/template/maintenance.tpl

    r12797 r13001  
    44
    55<ul>
     6{if (isset($U_MAINT_LOCK_GALLERY))}
     7  <li><a href="{$U_MAINT_LOCK_GALLERY}" onclick="return confirm('{'A locked gallery is only visible to administrators'|@translate|@escape:'javascript'}');">{'Lock gallery'|@translate}</a></li>
     8{else}
     9  <li><a href="{$U_MAINT_UNLOCK_GALLERY}">{'Unlock gallery'|@translate}</a></li>
     10{/if}
     11</ul>
     12
     13<ul>
    614  {foreach from=$advanced_features item=feature}
    715    <li><a href="{$feature.URL}">{$feature.CAPTION}</a></li>
    816  {/foreach}
    9 </ul>
    10 
    11 <ul>
    12         <li><a href="{$U_MAINT_ORPHAN_TAGS}">{'Delete orphan tags'|@translate}</a></li>
    1317</ul>
    1418
     
    2428
    2529<ul>
     30        <li><a href="{$U_MAINT_ORPHAN_TAGS}">{'Delete orphan tags'|@translate}</a></li>
    2631        <li><a href="{$U_MAINT_HISTORY_DETAIL}" onclick="return confirm('{'Purge history detail'|@translate|@escape:'javascript'}');">{'Purge history detail'|@translate}</a></li>
    2732        <li><a href="{$U_MAINT_HISTORY_SUMMARY}" onclick="return confirm('{'Purge history summary'|@translate|@escape:'javascript'}');">{'Purge history summary'|@translate}</a></li>
Note: See TracChangeset for help on using the changeset viewer.