forked from rburgoyne/repos-style
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
144 lines (143 loc) · 7.89 KB
/
index.html
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Repos Style - Subversion index XSLT + css + icons</title>
<link type="text/css" rel="stylesheet" href="home/documents.css"/>
<style type="text/css">
h1 {
text-align: center;
}
table h3 {
width: auto;
border: none;
padding: 0px;
}
#screenshots img {
border: 1px dotted #666633;
}
#repos {
color: #336633;
}
#style {
color: #663333;
}
#ads {
position: absolute;
top: 640px;
left: 820px;
}
</style>
</head>
<body>
<h1><span id="repos">Repos</span><span id="style">Style</span> </h1>
<p>Open source <em>stylesheet</em> for Subversion's repository browser.
Fully customizable XSLT and CSS, with icons for different file types.
Install Repos Style as it is or use is as a sample xsl to design your own.
A simple <em>log viewer</em> is also included.</p>
<table border="0" cellspacing="19">
<tr><td><table style="border: 0px;" id="screenshots">
<tr>
<td><h3>From</h3></td>
<td><img class="screenshot" src="svn-noxslt.png" alt="plain text svn index" title="The default subversion index page"/></td>
<td><h3>to</h3></td>
<td><img class="screenshot" src="svn-reposstyle.png" alt="colorful index with icons" title="Transformed by Repos Style XSLT"/></td>
<td><h3>in five minutes</h3></td>
</tr>
</table></td></tr>
</table>
<p>You'll find <em>sample transforms</em> from the latest version <a href="samples/">here</a>. </p>
<p><em>The advantages</em> of using XSLT instead of a viewer like View SVN is that it is lightweight and that you use the <em>real URLs</em> in the directory listing.</p>
<h2>Installation</h2>
<p><em>You need</em> the repository configured in Apache with <code><a title="Subversion book, Apache" href="http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html">mod_dav_svn</a></code>.
Repos Style is installed using the <code><a title="Subversion book, repository browsing" href="http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.browsing">SVNIndexXSLT</a></code> directive. To use the log viewer you need PHP.</p>
<ol><li><a href="#download">Download</a> Repos Style zip </li>
<li>Unzip to the document root of the repository host (this creates a folder /repos-web)</li>
<li>In the Apache config, set <code>SVNIndexXSLT "/repos-web/view/repos.xsl"</code></li>
<li>Reload Apache</li>
<li>Check your http URL again</li>
<li>Optionally set up the Very Simple Logviewer; see
<a href="http://groups.google.com/group/reposstyle/msg/d0bead994c6b9abb">this mailing list entry</a></li>
</ol>
<h2>How to change install path</h2>
<ul>
<li>Rename the unzipped folder <code>/repos-web</code> to something else.</li>
<li>Update the <code>SVNIndexXSLT</code> directive in Apache conf.</li>
<li>In the XSLT files (view/repos.xls and view/log.xsl), change the <code>xsl:param</code> "<code>static</code>" to your new folder name.</li>
</ul>
<h2>How to customize </h2>
<p>The XSLT file <code>repos.xsl</code> can be used as example for writing your own SVNIndexXSLT.
Customize it anyway you want to.</p>
<p>For simple tweaking check the configuration section at the top of the xsl files.
For example you can set the <em>startpage</em> propety for navigation to you host's start page.</p>
<p>To customize the menu, edit the <code>commandbar</code> section of the xsl.
To customize the buttons displayed on each row, edit the <code>actions</code> section of the <code>dir</code> and <code>file</code> xsl templates.
</p>
<p>See the <a href="#contribute">development</a> section on how to <em>contribute</em> changes.
</p>
<h2><a name="download" id="download"></a>Download</h2>
<p>Get a zipped distribution from the <a href="http://sourceforge.net/projects/reposserver/files/reposstyle/">» <strong>download</strong> «</a> folder.</p>
<h3>Release History</h3>
<ol id="versions">
<li><span class="datetime">2010-07-20</span><span class="revision">2.4</span>
Added support for the svn <em>replace</em> operation in log viewer.
Added new distribution <em>with plugins</em>. The log RSS feed is now properly integrated.
Switched to SourceForge for downloads because of reported problems with Google Groups.
</li>
<li><span class="datetime">2010-01-04</span><span class="revision">2.3</span>
Minor update for <a href="http://repossearch.com/">Repos Search</a> 1.0.
</li>
<li><span class="datetime">2009-09-05</span><span class="revision">2.2</span>
Prepared repos.xsl for <a href="http://repossearch.com/">Repos Search</a>.
</li>
<li><span class="datetime">2009-08-21</span><span class="revision">2.1</span>
Thanks to contributions on the mailing list the "Collection of Repositories" page no longer shows a link to history
(SVNParentPath root does not have an svn log).
</li>
<li><span class="datetime">2009-03-13</span><span class="revision">2.0</span>
Added support for multiple repositories (SVNParentPath) on Subversion 1.5 or later.
Repos Style still supports Subversion 1.0 and later for single repository configuration (SVNPath).
</li>
<li><span class="datetime">2008-03-27</span><span class="revision">1.5</span>
Fixed a path display issue with leading slash and SVNParentPath's Collection of Repositories.
Commented out the trailing slash.
</li>
<li><span class="datetime">2008-02-03</span><span class="revision">1.4</span>
Fixed an issue with the repository CSS in IE6.
</li>
<li><span class="datetime">2008-01-09</span><span class="revision">1.3</span>
Renamed default install folder to <code>repos-web</code> to avoid conflict with common svn parent path /repos.
In the listings: changed from divs to the more semantically correct ul/li.
</li>
<li><span class="datetime">2007-10-09</span><span class="revision">1.2</span>
Improved performance in path (breadcrumbs) template.
Added detection of trunk+branches+tags folders, allowing special styling through CSS.
Added a folder icon with a lock symbol for tags.
The log viewer now displays errors from the svn command.</li>
<li><span class="datetime">2007-05-26</span><span class="revision">1.1</span>
Documentation, build system and samples, no code changes.</li>
<li><span class="datetime">2007-05-22</span><span class="revision">1.0</span>
Initial release.</li>
</ol>
<h2><a name="contribute" id="contribute"></a>Development</h2>
<p>This project is open source. You chan check out the contents at <a href="https://labs.repos.se/data/style/trunk/">labs.repos.se</a>.
It is <a href="https://labs.repos.se/data/style/trunk/LICENSE-2.0.txt">Apache 2.0</a> license, while the icons are <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons ShareAlike 2.0</a>.
At present the maintainers are Staffan Olsson and Ermin Catic.</p>
<p>There is a <a href="http://labs.repos.se/trac/">development tracker</a> for <a href="https://labs.repos.se/trac/report/9">tickets</a>.</p>
<p>For <em>support</em> and <em>discussion</em> please use the <em><a href="http://groups.google.com/group/reposstyle/topics">mailing list</a></em>.
</p>
<h2 id="related">Related projects</h2>
<ul>
<li><a href="http://webuseradmin.com/">WebUserAdmin</a> - Web based user administration for Apache htpasswd</li>
<li><a href="http://reposserver.com/">Repos Server</a> - Quite simple Subversion setup on Windows</li>
<li><a href="http://repossearch.com/">Repos Search</a> - Fulltext search for code and documents in Subversion repositories</li>
</ul>
<p> </p>
<!-- Woopra Code Start -->
<script type="text/javascript">
var _wh = ((document.location.protocol=='https:') ? "https://sec1.woopra.com" : "http://static.woopra.com");
document.write(unescape("%3Cscript src='" + _wh + "/js/woopra.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- Woopra Code End -->
</body>
</html>