websiteWebsite
codingteam CodingTeam
A free forge, lightweight and extensible.

 

Browse the code

Revision log Information on the revision
Revision: 224 (differences)
Author: xbright
Log message: * Updated SVN browser for projects (svn is now working through file://)
* Added the ability to show an image inside the SVN repository
* A few improvements related to diff
* Added templates for SVN browsing
* Updated GeSHi usage
* Fixed a little bug in index/default template
Change revision:
    <h1><?=i18n('Browse the code');?></h1>
 
    <div class="fstree">
      <ul>
        <li class="dir">
          <a href="project/<?=$dbname;?>/browse<?=$linkr;?>">/</a>
        </li>
        <? foreach ($tags as $key => $value): ?>
          <? ((end($tags) == $value) ? $cl = 'file current' : $cl = 'dir'); ?>
          <li class="<?=$cl;?>">
            <a href="project/<?=$dbname;?>/browse<?=$value;?><?=$linkr;?>"><?=$key;?></a>
          </li>
        <? endforeach; ?>
      </ul>
    </div>
 
    <table style="width: 60%;margin-left: 20px;margin-bottom: 15px;" class="border_left border_right border_top border_bottom">
      <thead>
        <tr>
          <th colspan="2">
            <span style="float: right;"><a href="project/<?=$dbname;?>/browse/log<?=$value;?>"><?=i18n('Revision log');?></a></span>
            <?=i18n('Information on the revision');?></th>
        </tr>
      </thead>
      <tbody>
        <tr class="background_table_first">
          <td style="width: 23%;"><?=i18n('Revision:');?></td>
          <td>
            <?=$rev;?>
            <? if ($rev > 0): ?>
              <a href="project/<?=$dbname;?>/browse/diff/<?=($rev - 1);?>/<?=$rev;?><?=$value;?>"><?=i18n('(differences)');?></a></td>
            <? endif; ?>
        </tr>
        <tr class="background_table_second">
          <td style="width: 23%;"><?=i18n('Author:');?></td>
          <td>
            <? if ($rev > 0): ?>
              <a href="users/show/<?=$l_author;?>"><?=$l_author;?></a>
            <? else: ?>
              -
            <? endif; ?>
          </td>
        </tr>
        <tr class="background_table_first">
          <td style="width: 23%;"><?=i18n('Log message:');?></td>
          <td>
            <? if ($rev > 0): ?>
              <?=$l_msg;?>
            <? else: ?>
              -
            <? endif; ?>
          </td>
        </tr>
        <tr class="background_table_second">
          <td style="width: 23%;"><?=i18n('Change revision:');?></td>
          <td>
            <form action="<?=getURLByTags($this->page);?>/" method="get">
              <div>
                <input type="text" style="width: 5.0em;" name="rev" value="<?=$rev;?>" />
                <input type="submit" class="submit" value="<?=i18n('Submit');?>" />
              </div>
            </form>
          </td>
        </tr>
      </tbody>
    </table>
 
    <? if (!$is_binary): ?>
      <?=$code;?>
    <? elseif ($is_binary && !isset($message)): ?>
      <img src="<?=$img;?>" alt="<?=$value;?>" />
    <? else: ?>
      <?=$message;?>
    <? endif; ?>