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: | |
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<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>

CodingTeam