Ignore:
Timestamp:
Feb 13, 2009, 2:01:03 PM (16 years ago)
Author:
rvelices
Message:
  • moved check upgrade feed code to admin/include/functions_upgrade.php
  • refactored some code (shorter and somehow faster - but nothing revolutionary)
  • decrease lost space in permalinks.tpl and hard coded column width (was illisible)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/goto/permalinks.tpl

    r2946 r3136  
    2929<h3>{'Permalinks'|@translate}</h3>
    3030<table class="table2">
    31   <tr class="throw">
    32     <td style="width:20%;">Id {$SORT_ID}</td>
    33     <td style="width:20%;">{'Category'|@translate} {$SORT_NAME}</td>
    34     <td style="width:20%;">{'Permalink'|@translate} {$SORT_PERMALINK}</td>
    35   </tr>
     31        <tr class="throw">
     32                <td>Id {$SORT_ID}</td>
     33                <td>{'Category'|@translate} {$SORT_NAME}</td>
     34                <td>{'Permalink'|@translate} {$SORT_PERMALINK}</td>
     35        </tr>
    3636{foreach from=$permalinks item=permalink name="permalink_loop"}
    37   <tr class="{if $smarty.foreach.permalink_loop.index is odd}row1{else}row2{/if}"  style="line-height: 2.2em;">
    38     <td style="text-align:center;">{$permalink.id}</td>
    39     <td>{$permalink.name}</td>
    40     <td>{$permalink.permalink}</td>
    41   </tr>
     37        <tr class="{if $smarty.foreach.permalink_loop.index is odd}row1{else}row2{/if}" style="line-height:1.5em;">
     38                <td style="text-align:center;">{$permalink.id}</td>
     39                <td>{$permalink.name}</td>
     40                <td>{$permalink.permalink}</td>
     41        </tr>
    4242{/foreach}
    4343</table>
     
    4545<h3>{'Permalink history'|@translate} <a name="old_permalinks"></a></h3>
    4646<table class="table2">
    47   <tr class="throw">
    48     <td style="width:40px;">Id {$SORT_OLD_CAT_ID}</td>
    49     <td style="width:25%;">{'Category'|@translate}</td>
    50     <td style="width:25%;">{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
    51     <td style="width:15%;">Deleted on {$SORT_OLD_DATE_DELETED}</td>
    52     <td style="width:15%;">Last hit {$SORT_OLD_LAST_HIT}</td>
    53     <td style="width:20px;">Hit {$SORT_OLD_HIT}</td>
    54     <td style="width:5px;"></td>
    55   </tr>
     47        <tr class="throw">
     48                <td>Id {$SORT_OLD_CAT_ID}</td>
     49                <td>{'Category'|@translate}</td>
     50                <td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
     51                <td>Deleted on {$SORT_OLD_DATE_DELETED}</td>
     52                <td>Last hit {$SORT_OLD_LAST_HIT}</td>
     53                <td style="width:20px;">Hit {$SORT_OLD_HIT}</td>
     54                <td style="width:5px;"></td>
     55        </tr>
    5656{foreach from=$deleted_permalinks item=permalink}
    57   <tr style="line-height: 2.2em;">
    58     <td style="text-align:center;">{$permalink.cat_id}</td>
    59     <td>{$permalink.name}</td>
    60     <td>{$permalink.permalink}</td>
    61     <td>{$permalink.date_deleted}</td>
    62     <td>{$permalink.last_hit}</td>
    63     <td>{$permalink.hit}</td>
    64     <td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" alt="[{'delete'|@translate}]" class="button"></a></td>
    65   </tr>
     57        <tr style="line-height:1.5em;">
     58                <td style="text-align:center;">{$permalink.cat_id}</td>
     59                <td>{$permalink.name}</td>
     60                <td>{$permalink.permalink}</td>
     61                <td>{$permalink.date_deleted}</td>
     62                <td>{$permalink.last_hit}</td>
     63                <td>{$permalink.hit}</td>
     64                <td><a href="{$permalink.U_DELETE}" {$TAG_INPUT_ENABLED}><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" alt="[{'delete'|@translate}]" class="button"></a></td>
     65        </tr>
    6666{/foreach}
    6767</table>
Note: See TracChangeset for help on using the changeset viewer.