Changeset 25833


Ignore:
Timestamp:
Dec 7, 2013, 9:06:39 PM (7 years ago)
Author:
rvelices
Message:

admin tools nicer mobile display

Location:
extensions/AdminTools/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdminTools/template/public_controller.tpl

    r25818 r25833  
    6767  <ul id="ato_header_root">
    6868    <li><a href="#" class="icon-ato-cancel close-panel"></a></li>
    69     <li class="parent"><a href="#" class="icon-menu">{'Administration'|translate}</a>
     69    <li class="parent"><a href="#" class="icon-menu"><span class="atoHideable1">{'Administration'|translate}</span></a>
    7070      <ul>
    7171        <li><a class="icon-picture" href="{$ato.U_SITE_ADMIN}batch_manager">{'Photos'|translate}</a></li>
     
    7878    </li>
    7979  {if isset($ato.U_EDIT)}
    80     <li class="parent"><a href="#" class="icon-pencil">{'Edit'|translate}</a>
     80    <li class="parent"><a href="#" class="icon-pencil"><span class="atoHideable2">{'Edit'|translate}</span></a>
    8181      <ul>
    8282        <li><a href="#ato_quick_edit" class="icon-ato-flash edit-quick">{'Quick edit'|translate}</a></li>
    8383        <li><a class="icon-ato-doc-text-inv" href="{$ato.U_EDIT}">{'Properties page'|translate}</a></li>
     84  {if isset($ato.IS_PICTURE)}
     85                                <li><hr></li>
     86                                <li><a class="icon-ato-cancel" href="{$ato.U_SELF}delete&amp;pwg_token={$ato.PWG_TOKEN}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li>
     87  {/if}
    8488      </ul>
    8589    </li>
    8690  {/if}
    8791  {if isset($ato.U_SET_REPRESENTATIVE)}
    88     <li {if $ato.IS_REPRESENTATIVE}class="disabled"{/if}><a class="icon-ato-trophy set-representative" href="{$ato.U_SET_REPRESENTATIVE}">{'representative'|translate|ucfirst}</a></li>
     92    <li {if $ato.IS_REPRESENTATIVE}class="disabled"{/if}><a class="icon-ato-trophy set-representative" href="{$ato.U_SET_REPRESENTATIVE}"><span class="atoHideable2">{'representative'|translate|ucfirst}</span></a></li>
    8993  {/if}
    9094  {if isset($ato.U_CADDIE)}
    91     <li {if $ato.IS_IN_CADDIE}class="disabled"{/if}><a class="icon-ato-flag add-caddie" href="{$ato.U_CADDIE}">{'Add to caddie'|translate}</a></li>
     95    <li {if $ato.IS_IN_CADDIE}class="disabled"{/if}><a class="icon-ato-flag add-caddie" href="{$ato.U_CADDIE}"><span class="atoHideable2">{'Add to caddie'|translate}</span></a></li>
    9296  {/if}
    9397  {if isset($ato.IS_CATEGORY)}
    94     <li><a class="icon-plus-circled" href="{$ato.U_SITE_ADMIN}photos_add&amp;album={$ato.CATEGORY_ID}">{'Add Photos'|translate}</a></li>
    95   {/if}
    96   {if isset($ato.IS_PICTURE)}
    97     <li><a class="icon-ato-cancel" href="{$ato.U_SELF}delete&amp;pwg_token={$ato.PWG_TOKEN}" onclick="return confirm('{'Are you sure?'|translate|escape:javascript}')">{'delete photo'|translate|ucfirst}</a></li>
     98    <li><a class="icon-plus-circled" href="{$ato.U_SITE_ADMIN}photos_add&amp;album={$ato.CATEGORY_ID}"><span class="atoHideable2">{'Add Photos'|translate}</span></a></li>
    9899  {/if}
    99100
    100     <li class="parent right multiview"><a class="icon-cog-alt" href="#">{'Tools'|translate}</a>
     101    <li class="parent right multiview"><a class="icon-cog-alt" href="#"><span class="atoHideable1">{'Tools'|translate}</span></a>
    101102      <ul>
    102103        <li><label>{'View as'|translate}</label>
  • extensions/AdminTools/template/style.css

    r25791 r25833  
    191191      margin:0 0 1em 0;
    192192    }
     193
     194
     195@media (max-width:640px) {
     196        .atoHideable1 {
     197                display:none;
     198        }
     199}
     200
     201@media (max-width:360px) {
     202        .atoHideable2 {
     203                display:none;
     204        }
     205}
Note: See TracChangeset for help on using the changeset viewer.