[첫화면으로]UseModWiki소스수정/페이지정보출력

마지막으로 [b]

변경사항 (가장 최근의 "소소한 수정"부터) (다른 변경사항 없음)

-3,7 +3,7
* 딱히 이유가 있는 것은 아니고, Alt+X 를 누른후 Shift+Tab 을 한 번만 눌러서 "이 페이지를 수정" 링크로 이동할 수 있도록 하기 위함이다. :-)
* <nowiki>GetEditGuide</nowiki> 함수 뒷부분의 if 구문들의 순서를 바꾸고, 중간에 <nowiki><br></nowiki> 을 출력하는 라인을 삽입한다
:
{{{perl
{{{#!vim perl
sub GetEditGuide {
    ...
#   if (&UserCanEdit($id, 0)) {    여기서부터


페이지 정보 출력 양식 변경

sub GetEditGuide {
    ...
#   if (&UserCanEdit($id, 0)) {    여기서부터
#       if ($rev ne '') {
#   ...
#
#   $result .= "</div>";           여기까지를 다음과 같이 변경

    if ($Section{'revision'} > 0) {
        $result .= '<br>';
        if ($rev eq '') {  # Only for most current rev
            $result .= T('Last edited');
        } else {
            $result .= T('Edited');
        }
        $result .= ' ' . &TimeToText($Section{ts});
    }
    if ($UseDiff) {
        $result .= ' ' . &ScriptLinkDiff(4, $id, T('(diff)'), $rev);
    }

    $result .= '<br>';

    $result .= &GetHistoryLink($id, T('History'));
    if ($rev ne '') {
        $result .= ' | ';
        $result .= &GetPageLinkText($id, T('View current revision'));
    }

    $result .= ' | ';

    if (&UserCanEdit($id, 0)) {
        if ($rev ne '') {
            $result .= &GetOldPageLink('edit',   $id, $rev,
                           Ts('Edit revision %s of this page', $rev));
        } else {
            $result .= &GetEditLink($id, T('Edit text of this page'));
        }
    } else {
        $result .= T('This page is read-only');
    }
    $result .= "</div>";
### 여기까지
    return $result;
}


위키위키분류

마지막 편집일: 2007-1-8 12:19 pm (변경사항 [d])
827 hits | Permalink | 변경내역 보기 [h] | 페이지 소스 보기