Changeset 23151


Ignore:
Timestamp:
06/11/13 06:35:32 (7 years ago)
Author:
rvelices
Message:

history - merge album/tags link into a single column (table is already very large and these columns are mutually exclusive

  • add tags link in the history table
Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/history.php

    r21894 r23151  
    338338SELECT 
    339339    id, 
    340     name 
     340    name, url_name 
    341341  FROM '.TAGS_TABLE; 
    342     $name_of_tag = simple_hash_from_query($query, 'id', 'name'); 
     342    $name_of_tag = array(); 
     343    $result = pwg_query($query); 
     344    while ($row=pwg_db_fetch_assoc($result)) 
     345    { 
     346      $name_of_tag[ $row['id'] ] = '<a href="'.make_index_url( array('tags'=>array($row))).'">'.trigger_event("render_tag_name", $row['name']).'</a>'; 
     347    } 
    343348  } 
    344349 
  • trunk/admin/themes/default/template/history.tpl

    r22715 r23151  
    106106 
    107107<table class="table2" id="detailedStats"> 
     108<thead> 
    108109<tr class="throw"> 
    109110  <th>{'Date'|@translate}</th> 
     
    114115  <th>{'Element type'|@translate}</th> 
    115116  <th>{'Section'|@translate}</th> 
    116   <th>{'Album'|@translate}</th> 
    117   <th>{'Tags'|@translate}</th> 
     117        <th>{'Album'|@translate} / {'Tags'|@translate}</th> 
    118118</tr> 
    119 {if !empty($search_results) } 
     119</thead> 
     120{if !empty($search_results)} 
    120121{foreach from=$search_results item=detail name=res_loop} 
    121122<tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}"> 
     
    127128  <td>{$detail.TYPE}</td> 
    128129  <td>{$detail.SECTION}</td> 
    129   <td>{$detail.CATEGORY}</td> 
    130   <td>{$detail.TAGS}</td> 
     130        <td>{$detail.CATEGORY}{$detail.TAGS}</td> 
    131131</tr> 
    132132{/foreach} 
Note: See TracChangeset for help on using the changeset viewer.