Changeset 1385

Show
Ignore:
Timestamp:
06/17/2009 03:22:07 AM (15 months ago)
Author:
DarTar
Message:

New menulets, refs #11 and #891

Location:
branches/1.2
Files:
2 added
5 modified

Legend:

Unmodified
Added
Removed
  • branches/1.2/actions/editlink.php

    r1379 r1385  
    33 * Edit link menulet 
    44 */ 
    5 echo $this->HasAccess('write') ? '<a href="'.$this->Href('edit').'" title="Click to edit this page">Edit</a>' : '<a href="'.$this->Href('showcode').'" title="Display the markup for this page">Source</a>'; 
     5if ($this->method == 'edit' || $this->method == 'showcode') 
     6{ 
     7        echo '<a href="'.$this->Href().'" title="Displayed the formatted version of this page">[Show]</a>'; 
     8} 
     9else 
     10{ 
     11        if ($this->HasAccess('write')) 
     12        { 
     13                echo '<a href="'.$this->Href('edit').'" title="Click to edit this page">[Edit]</a>'; 
     14        } 
     15        else 
     16        { 
     17                echo '<a href="'.$this->Href('showcode').'" title="Display the markup for this page">[Source]</a>'; 
     18        } 
     19} 
    620?> 
  • branches/1.2/actions/historylink.php

    r1379 r1385  
    33 * History link menulet 
    44 */ 
    5 echo '<a href="'.$this->Href('history').'" title="Click to view recent edits to this page">Page History</a>'."\n"; 
     5echo '<a href="'.$this->Href('history').'" title="Click to view recent edits to this page">History</a>'."\n"; 
    66?> 
  • branches/1.2/actions/ownerlink.php

    r1383 r1385  
    66                if ($owner == '(Public)') 
    77                { 
    8                         echo "Public page ".($this->IsAdmin() ? '<a href="'.$this->Href('acls').'">(Edit ACLs)</a>'."\n" : "\n"); 
     8                        echo "Public page ".($this->IsAdmin() ? '<a href="'.$this->Href('acls').'">[Edit ACLs]</a>'."\n" : "\n"); 
    99                } 
    1010                // if owner is current user 
     
    1313                if ($this->IsAdmin()) 
    1414                { 
    15                                 echo 'Owner: '.$this->Link($owner, '', '', 0).' (<a href="'.$this->Href('acls').'">Edit ACLs</a>)'."\n"; 
     15                                echo 'Owner: '.$this->Link($owner, '', '', 0).' <a href="'.$this->Href('acls').'">[Edit ACLs]</a>'."\n"; 
    1616                        }  
    1717                        else 
    1818                                { 
    19                                 echo 'You own this page (<a href="'.$this->Href('acls').'">Edit ACLs</a>)'."\n"; 
     19                                echo 'You own this page <a href="'.$this->Href('acls').'">[Edit ACLs]</a>'."\n"; 
    2020                        } 
    2121                } 
     
    2727        else 
    2828        { 
    29                 echo 'Nobody'.($this->GetUser()? ' (<a href="'.$this->Href('claim').'">Take Ownership</a>)'."\n" : "\n"); 
     29                echo 'Nobody'.($this->GetUser()? ' <a href="'.$this->Href('claim').'">[Take Ownership]</a>'."\n" : "\n"); 
    3030        } 
    3131} 
  • branches/1.2/config/options_menu.admin.inc

    r1384 r1385  
    11{{editlink}} 
     2{{clonelink}} 
     3{{revertlink}} 
    24{{historylink}} 
    35{{revisionlink}} 
  • branches/1.2/config/options_menu.user.inc

    r1384 r1385  
    11{{editlink}} 
     2{{clonelink}} 
    23{{historylink}} 
    34{{revisionlink}}