Changeset 15924


Ignore:
Timestamp:
06/21/12 15:39:25 (7 years ago)
Author:
mistic100
Message:

on comment_list add link to exit from comment edition

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r15578 r15924  
    364364 
    365365$template->assign('navbar', $navbar); 
     366 
     367$url_self = PHPWG_ROOT_PATH 
     368    .'comments.php' 
     369  .get_query_string_diff(array('edit','delete','validate','pwg_token')); 
    366370 
    367371// +-----------------------------------------------------------------------+ 
     
    516520        $tpl_comment['CONTENT'] = $comment['content']; 
    517521        $tpl_comment['PWG_TOKEN'] = get_pwg_token(); 
     522        $tpl_comment['U_CANCEL'] = $url_self; 
    518523      } 
    519524    } 
  • trunk/include/picture_comment.inc.php

    r15570 r15924  
    208208            $tpl_comment['CONTENT'] = $row['content']; 
    209209            $tpl_comment['PWG_TOKEN'] = get_pwg_token(); 
     210            $tpl_comment['U_CANCEL'] = $url_self; 
    210211          } 
    211212      } 
  • trunk/themes/default/template/comment_list.tpl

    r13865 r15924  
    2626                        <a href="{$comment.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"> 
    2727                                {'Delete'|@translate} 
     28                        </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT) or isset($comment.U_CANCEL)} | {/if} 
     29                {/if} 
     30                {if isset($comment.U_CANCEL)} 
     31                        <a href="{$comment.U_CANCEL}"> 
     32                                {'Cancel'|@translate} 
    2833                        </a>{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if} 
    2934                {/if} 
Note: See TracChangeset for help on using the changeset viewer.