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">/</a>
        </li>
        <? foreach ($tags as $key => $value): ?>
          <? ((end($tags) == $value) ? $cl = 'current' : $cl = ''); ?>
          <li class="<?=((end($tags) == $value) ? $type : 'dir');?> <?=$cl;?>">
            <a href="project/<?=$dbname;?>/browse<?=$value;?>"><?=$key;?></a>
          </li>
        <? endforeach; ?>
      </ul>
    </div>
 
    <table style="width: 100%;">
      <thead>
        <tr>
          <th style="width: 7%;"><?=i18n('Revision');?></th>
          <th style="width: 7%;"><?=i18n('Differences');?></th>
          <th style="width: 10%;"><?=i18n('Author');?></th>
          <th style="width: 15%;"><?=i18n('Date');?></th>
          <th><?=i18n('Message');?></th>
        </tr>
      </thead>
      <tbody>
        <? for($i=0; $i<sizeof($log); $i++): ?>
        <? (($i & 1) ? $cl = 'background_table_second' : $cl = 'background_table_first'); ?>
          <tr class="<?=$cl;?>">
            <td class="center">
              <a href="project/<?=$dbname;?>/browse<?=$value;?>/?rev=<?=$log[$i]['rev'];?>"><?=$log[$i]['rev'];?></a>
            </td>
            <td class="center">
              <a href="project/<?=$dbname;?>/browse/diff/<?=($log[$i]['rev'] - 1);?>/<?=$log[$i]['rev'];?><?=$value;?>">
              <img src="public/images/icons/status/media-playlist-shuffle.png" alt="differences" /></a>
            </td>
            <td class="center">
              <a href="users/show/<?=$log[$i]['author'];?>"><?=$log[$i]['author'];?></a>
            </td>
            <td class="center">
              <?=$log[$i]['date'];?>
            </td>
            <td>
              <?=$log[$i]['msg'];?>
            </td>
          </tr>
        <? endfor; ?>
      </tbody>
    </table>