summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/diff_form.ezt67
-rw-r--r--include/dir_footer.ezt9
-rw-r--r--include/dir_header.ezt84
-rw-r--r--include/file_header.ezt16
-rw-r--r--include/footer.ezt17
-rw-r--r--include/header.ezt23
-rw-r--r--include/log_footer.ezt10
-rw-r--r--include/log_header.ezt54
-rw-r--r--include/paging.ezt20
-rw-r--r--include/pathrev_form.ezt53
-rw-r--r--include/props.ezt26
-rw-r--r--include/sort.ezt17
12 files changed, 396 insertions, 0 deletions
diff --git a/include/diff_form.ezt b/include/diff_form.ezt
new file mode 100644
index 0000000..7bf4cdd
--- /dev/null
+++ b/include/diff_form.ezt
@@ -0,0 +1,67 @@
+ <hr />
+ <p><a name="diff"></a>
+ This form allows you to request diffs between any two revisions of this file.
+ For each of the two "sides" of the diff,
+[if-any tags]
+ select a symbolic revision name using the selection box, or choose
+ 'Use Text Field' and enter a numeric revision.
+[else]
+ enter a numeric revision.
+[end]
+ </p>
+ <form method="get" action="[diff_select_action]" id="diff_select">
+
+ <table cellpadding="2" cellspacing="0" class="auto">
+ <tr>
+ <td>&nbsp;</td>
+ <td>
+ [for diff_select_hidden_values]<input type="hidden" name="[diff_select_hidden_values.name]" value="[diff_select_hidden_values.value]"/>[end]
+ Diffs between
+[if-any tags]
+ <select name="r1">
+ <option value="text" selected="selected">Use Text Field</option>
+ [for tags]
+ <option value="[tags.rev]:[tags.name]">[tags.name]</option>
+ [end]
+ </select>
+ <input type="text" size="12" name="tr1"
+ value="[if-any rev_selected][rev_selected][else][first_revision][end]"
+ onchange="document.getElementById('diff_select').r1.selectedIndex=0" />
+[else]
+ <input type="text" size="12" name="r1"
+ value="[if-any rev_selected][rev_selected][else][first_revision][end]" />
+[end]
+
+ and
+[if-any tags]
+ <select name="r2">
+ <option value="text" selected="selected">Use Text Field</option>
+ [for tags]
+ <option value="[tags.rev]:[tags.name]">[tags.name]</option>
+ [end]
+ </select>
+ <input type="text" size="12" name="tr2"
+ value="[last_revision]"
+ onchange="document.getElementById('diff_select').r2.selectedIndex=0" />
+[else]
+ <input type="text" size="12" name="r2" value="[last_revision]" />
+[end]
+ </td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td>
+ Type of Diff should be a
+ <select name="diff_format" onchange="submit()">
+ <option value="h" [is diff_format "h"]selected="selected"[end]>Colored Diff</option>
+ <option value="l" [is diff_format "l"]selected="selected"[end]>Long Colored Diff</option>
+ <option value="f" [is diff_format "f"]selected="selected"[end]>Full Colored Diff</option>
+ <option value="u" [is diff_format "u"]selected="selected"[end]>Unidiff</option>
+ <option value="c" [is diff_format "c"]selected="selected"[end]>Context Diff</option>
+ <option value="s" [is diff_format "s"]selected="selected"[end]>Side by Side</option>
+ </select>
+ <input type="submit" value=" Get Diffs " />
+ </td>
+ </tr>
+ </table>
+ </form>
diff --git a/include/dir_footer.ezt b/include/dir_footer.ezt
new file mode 100644
index 0000000..5f25e69
--- /dev/null
+++ b/include/dir_footer.ezt
@@ -0,0 +1,9 @@
+[# if you want to disable tarball generation remove the following: ]
+[if-any tarball_href]
+<hr/>
+<p style="margin:0;"><a href="[tarball_href]">Download GNU tarball</a></p>
+[end]
+
+[include "props.ezt"]
+[include "footer.ezt"]
+
diff --git a/include/dir_header.ezt b/include/dir_header.ezt
new file mode 100644
index 0000000..01870bf
--- /dev/null
+++ b/include/dir_header.ezt
@@ -0,0 +1,84 @@
+[# setup page definitions]
+ [define page_title]Index of /[where][end]
+ [define help_href][docroot]/help_[if-any where]dir[else]root[end]view.html[end]
+[# end]
+
+[include "header.ezt" "directory"]
+
+[if-any where][else]
+ <!-- you may insert repository access instructions here -->
+[end]
+
+<table class="auto">
+<tr><td>Files shown:</td><td><strong>[files_shown]</strong>
+[is num_dead "0"]
+[else]
+ [if-any attic_showing]
+ (<a href="[hide_attic_href]">Hide [num_dead] dead files</a>)
+ [else]
+ (<a href="[show_attic_href]">Show [num_dead] dead files</a>)
+ [end]
+[end]
+</td></tr>
+
+[is roottype "svn"]
+<tr>
+ <td>Directory revision:</td>
+ <td><a href="[tree_rev_href]" title="Revision [tree_rev]">[tree_rev]</a>[if-any youngest_rev] (of <a href="[youngest_rev_href]" title="Revision [youngest_rev]">[youngest_rev]</a>)[end]</td>
+</tr>
+[end]
+<tr>
+ <td>Sticky [is roottype "cvs"]Tag[else]Revision[end]:</td>
+ <td>[include "pathrev_form.ezt"]</td>
+</tr>
+
+[if-any search_re_action]
+<tr>
+ <td>Filter files by content:</td>
+ <td><form method="get" action="[search_re_action]" style="display: inline;">
+ <div style="display: inline;">
+ [for search_re_hidden_values]<input type="hidden" name="[search_re_hidden_values.name]" value="[search_re_hidden_values.value]"/>[end]
+ <input type="text" name="search" value="[search_re]" />
+ <input type="submit" value="Search Regexp" />
+ </div>
+ </form>
+ [if-any search_re]
+ <form method="get" action="[search_re_action]" style="display: inline;">
+ <div style="display: inline;">
+ [for search_re_hidden_values]<input type="hidden" name="[search_re_hidden_values.name]" value="[search_re_hidden_values.value]"/>[end]
+ <input type="submit" value="Show All Files" />
+ </div>
+ </form>
+ [end]
+ </td>
+</tr>
+[end]
+
+[if-any queryform_href]
+<tr>
+ <td>Query:</td>
+ <td><a href="[queryform_href]">Query revision history</a></td>
+</tr>
+[end]
+
+</table>
+
+[is picklist_len "0"]
+[else]
+ [is picklist_len "1"]
+ [else]
+ <form method="get" action="[dir_paging_action]">
+ [for dir_paging_hidden_values]<input type="hidden" name="[dir_paging_hidden_values.name]" value="[dir_paging_hidden_values.value]"/>[end]
+ <input type="submit" value="Go to:" />
+ <select name="dir_pagestart" onchange="submit()">
+ [for picklist]
+ <option [is picklist.count dir_pagestart]selected[end] value="[picklist.count]">Page [picklist.page]: [picklist.start] to [picklist.end]</option>
+ [end]
+ </select>
+ </form>
+ [end]
+[end]
+
+<p><a name="dirlist"></a></p>
+<hr />
+
diff --git a/include/file_header.ezt b/include/file_header.ezt
new file mode 100644
index 0000000..091331b
--- /dev/null
+++ b/include/file_header.ezt
@@ -0,0 +1,16 @@
+<p style="margin:0;">
+[is pathtype "file"]
+<a href="[up_href]"><img src="[docroot]/images/back_small.png" class="vc_icon" alt="Parent Directory" /> Parent Directory</a>
+[if-any log_href]
+ | <a href="[log_href]"><img src="[docroot]/images/log.png" class="vc_icon" alt="Revision Log" /> Revision Log</a>
+[end]
+[if-any graph_href]
+ | <a href="[graph_href]"><img src="[docroot]/images/cvsgraph_16x16.png" class="vc_icon" alt="View Revision Graph" /> Revision Graph</a>
+[end]
+[is view "diff"]
+ | <a href="[patch_href]"><img src="[docroot]/images/diff.png" class="vc_icon" alt="View Patch" /> Patch</a>
+[end]
+[else]
+<a href="[view_href]"><img src="[docroot]/images/dir.png" class="vc_icon" alt="View Directory Listing" /> Directory Listing</a>
+[end]
+</p>
diff --git a/include/footer.ezt b/include/footer.ezt
new file mode 100644
index 0000000..9ad673b
--- /dev/null
+++ b/include/footer.ezt
@@ -0,0 +1,17 @@
+[# standard footer used by all ViewVC pages ]
+
+<hr />
+
+<table>
+<tr>
+ <td>[if-any cfg.general.address]<address><a href="mailto:[cfg.general.address]">[cfg.general.address]</a></address>[else]&nbsp;[end]</td>
+ <td style="text-align: right;"><strong><a href="[help_href]">ViewVC Help</a></strong></td>
+</tr>
+<tr>
+ <td>Powered by <a href="http://viewvc.tigris.org/">ViewVC [vsn]</a></td>
+ <td style="text-align: right;">[if-any rss_href]<a href="[rss_href]" title="RSS 2.0 feed"><img src="[docroot]/images/feed-icon-16x16.jpg" class="vc_icon" alt="RSS 2.0 feed" /></a>[else]&nbsp;[end]</td>
+</tr>
+</table>
+
+</body>
+</html>
diff --git a/include/header.ezt b/include/header.ezt
new file mode 100644
index 0000000..6784114
--- /dev/null
+++ b/include/header.ezt
@@ -0,0 +1,23 @@
+<!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" xml:lang="en" lang="en">
+<!-- ViewVC :: http://www.viewvc.org/ -->
+<head>
+ <title>[if-any rootname][[][rootname]][else]ViewVC[end] [page_title]</title>
+ <meta name="generator" content="ViewVC [vsn]" />
+ <link rel="shortcut icon" href="[docroot]/images/favicon.ico" type="image/x-icon" />
+ <link rel="stylesheet" href="[docroot]/styles.css" type="text/css" />
+ [if-any rss_href]<link rel="alternate" type="application/rss+xml" title="RSS [[][rootname]][where]" href="[rss_href]" />[end]
+</head>
+<body>
+<div class="vc_navheader">
+<table><tr>
+<td><strong>[if-any roots_href]<a href="[roots_href]"><span class="pathdiv">/</span></a>[else]<span class="pathdiv">/</span>[end][if-any nav_path][for nav_path][if-any nav_path.href]<a href="[nav_path.href]">[end][if-index nav_path first][[][nav_path.name]][else][nav_path.name][end][if-any nav_path.href]</a>[end][if-index nav_path last][else]<span class="pathdiv">/</span>[end][end][end]</strong></td>
+<td style="text-align: right;">[if-any username]Logged in as: <strong>[username]</strong>[end]</td>
+</tr></table>
+</div>
+
+<div style="float: right; padding: 5px;"><a href="http://www.viewvc.org/" title="ViewVC Home"><img src="[docroot]/images/viewvc-logo.png" alt="ViewVC logotype" width="240" height="70" /></a></div>
+<h1>[page_title]</h1>
+
+
diff --git a/include/log_footer.ezt b/include/log_footer.ezt
new file mode 100644
index 0000000..b39c861
--- /dev/null
+++ b/include/log_footer.ezt
@@ -0,0 +1,10 @@
+[include "paging.ezt"]
+
+[is pathtype "file"]
+ [include "diff_form.ezt"]
+[end]
+
+[include "sort.ezt"]
+
+[include "footer.ezt"]
+
diff --git a/include/log_header.ezt b/include/log_header.ezt
new file mode 100644
index 0000000..34ed362
--- /dev/null
+++ b/include/log_header.ezt
@@ -0,0 +1,54 @@
+[# setup page definitions]
+ [define page_title]Log of /[where][end]
+ [define help_href][docroot]/help_log.html[end]
+[# end]
+
+[include "header.ezt" "log"]
+[include "file_header.ezt"]
+
+<hr />
+
+<table class="auto">
+
+[if-any default_branch]
+<tr>
+ <td>Default branch:</td>
+ <td>[for default_branch]<a href="[default_branch.href]">[default_branch.name]</a>[if-index default_branch last][else], [end]
+[end]</td>
+</tr>
+[end]
+
+[is pathtype "file"]
+[if-any head_view_href]
+<tr>
+ <td>Links to HEAD:</td>
+ <td>
+ (<a href="[head_view_href]">view</a>)
+ [if-any head_download_href](<a href="[head_download_href]">download</a>)[end]
+ [if-any head_download_text_href](<a href="[head_download_text_href]">as text</a>)[end]
+ [if-any head_annotate_href](<a href="[head_annotate_href]">annotate</a>)[end]
+ </td>
+</tr>
+[end]
+
+[if-any tag_view_href]
+<tr>
+ <td>Links to [pathrev]:</td>
+ <td>
+ (<a href="[tag_view_href]">view</a>)
+ [if-any tag_download_href](<a href="[tag_download_href]">download</a>)[end]
+ [if-any tag_download_text_href](<a href="[tag_download_text_href]">as text</a>)[end]
+ [if-any tag_annotate_href](<a href="[tag_annotate_href]">annotate</a>)[end]
+ </td>
+</tr>
+[end]
+[end]
+
+<tr>
+ <td>Sticky [is roottype "cvs"]Tag[else]Revision[end]:</td>
+ <td>[include "pathrev_form.ezt"]</td>
+</tr>
+
+</table>
+
+[include "paging.ezt"]
diff --git a/include/paging.ezt b/include/paging.ezt
new file mode 100644
index 0000000..cad8c85
--- /dev/null
+++ b/include/paging.ezt
@@ -0,0 +1,20 @@
+ [is picklist_len "0"]
+ [else]
+ [is picklist_len "1"]
+ [else]
+ <hr />
+ <form method="get" action="[log_paging_action]">
+ [for log_paging_hidden_values]<input type="hidden" name="[log_paging_hidden_values.name]" value="[log_paging_hidden_values.value]"/>[end]
+ <input type="submit" value="Go to:">
+ <select name="log_pagestart" onchange="submit()">
+ [for picklist]
+ [if-any picklist.more]
+ <option [is picklist.count log_pagestart]selected[end] value="[picklist.count]">Page [picklist.page]: [picklist.start] ...</option>
+ [else]
+ <option [is picklist.count log_pagestart]selected[end] value="[picklist.count]">Page [picklist.page]: [picklist.start] - [picklist.end]</option>
+ [end]
+ [end]
+ </select>
+ </form>
+ [end]
+ [end] \ No newline at end of file
diff --git a/include/pathrev_form.ezt b/include/pathrev_form.ezt
new file mode 100644
index 0000000..33ff961
--- /dev/null
+++ b/include/pathrev_form.ezt
@@ -0,0 +1,53 @@
+<form method="get" action="[pathrev_action]" style="display: inline">
+<div style="display: inline">
+[for pathrev_hidden_values]<input type="hidden" name="[pathrev_hidden_values.name]" value="[pathrev_hidden_values.value]"/>[end]
+[is roottype "cvs"]
+ [define pathrev_selected][pathrev][end]
+ <select name="pathrev" onchange="submit()">
+ <option value=""></option>
+ [if-any branch_tags]
+ <optgroup label="Branches">
+ [for branch_tags]
+ [is branch_tags pathrev]
+ <option selected>[branch_tags]</option>
+ [define pathrev_selected][end]
+ [else]
+ <option>[branch_tags]</option>
+ [end]
+ [end]
+ </optgroup>
+ [end]
+ <optgroup label="Non-branch tags">
+ [for plain_tags]
+ [is plain_tags pathrev]
+ <option selected>[plain_tags]</option>
+ [define pathrev_selected][end]
+ [else]
+ <option>[plain_tags]</option>
+ [end]
+ [end]
+ </optgroup>
+ [if-any pathrev_selected]
+ <option selected>[pathrev_selected]</option>
+ [end]
+ </select>
+[else]
+ <input type="text" name="pathrev" value="[pathrev]" size="6"/>
+[end]
+<input type="submit" value="Set" />
+</div>
+</form>
+
+[if-any pathrev]
+<form method="get" action="[pathrev_clear_action]" style="display: inline">
+<div style="display: inline">
+[for pathrev_clear_hidden_values]<input type="hidden" name="[pathrev_clear_hidden_values.name]" value="[pathrev_clear_hidden_values.value]"/>[end]
+[if-any lastrev]
+ [is pathrev lastrev][else]<input type="submit" value="Set to [lastrev]" />[end]
+ (<i>Current path doesn't exist after revision <strong>[lastrev]</strong></i>)
+[else]
+ <input type="submit" value="Clear" />
+[end]
+</div>
+</form>
+[end]
diff --git a/include/props.ezt b/include/props.ezt
new file mode 100644
index 0000000..0f92c38
--- /dev/null
+++ b/include/props.ezt
@@ -0,0 +1,26 @@
+[if-any properties]
+<hr/>
+<div class="vc_properties">
+<h2>Properties</h2>
+<table cellspacing="1" cellpadding="2" class="auto">
+<thead>
+ <tr>
+ <th class="vc_header_sort">Name</th>
+ <th class="vc_header">Value</th>
+ </tr>
+</thead>
+<tbody>
+[for properties]
+ <tr class="vc_row_[if-index properties even]even[else]odd[end]">
+ <td><strong>[properties.name]</strong></td>
+ [if-any properties.undisplayable]
+ <td><em>Property value is undisplayable.</em></td>
+ [else]
+ <td style="white-space: pre;">[properties.value]</td>
+ [end]
+ </tr>
+[end]
+</tbody>
+</table>
+</div>
+[end]
diff --git a/include/sort.ezt b/include/sort.ezt
new file mode 100644
index 0000000..6d6d02f
--- /dev/null
+++ b/include/sort.ezt
@@ -0,0 +1,17 @@
+[is roottype "svn"]
+[else]
+<form method="get" action="[logsort_action]">
+ <div>
+ <hr />
+ <a name="logsort"></a>
+ [for logsort_hidden_values]<input type="hidden" name="[logsort_hidden_values.name]" value="[logsort_hidden_values.value]"/>[end]
+ Sort log by:
+ <select name="logsort" onchange="submit()">
+ <option value="cvs" [is logsort "cvs"]selected="selected"[end]>Not sorted</option>
+ <option value="date" [is logsort "date"]selected="selected"[end]>Commit date</option>
+ <option value="rev" [is logsort "rev"]selected="selected"[end]>Revision</option>
+ </select>
+ <input type="submit" value=" Sort " />
+ </div>
+</form>
+[end] \ No newline at end of file