Changesets can be listed by changeset number.
The Git repository is here.
Changeset 144
Various updates, mostly concerned with integration with
cvslog2web for faster and more accurate log processing. The
synthesised revision summaries from CVSHistory remain though
the user is shown cvslog2web output by default. General layout
improvements included. Requires cvslog2web from Changeset #145
(which will be committed shortly; the checked out copies do
not sit in locations that make an atomic checkin easy and at
this stage atomicity is not that important).
- Comitted by: adh
- Date: Tuesday November 14 22:39:20 2006 (over 18 years ago)
Affected files:
- rool/rails/rcvsweb/trunk/app/views/revisions/revisions.rhtml
- rool/rails/rcvsweb/trunk/app/views/revisions/list.rhtml
- rool/rails/rcvsweb/trunk/app/controllers/revisions_controller.rb (diff)
- rool/rails/rcvsweb/trunk/app/views/layouts/default.rhtml (diff)
- rool/rails/rcvsweb/trunk/app/views/rcvshistory/run.rhtml (diff)
- rool/rails/rcvsweb/trunk/app/views/rcvsweb/run.rhtml (diff)
- rool/rails/rcvsweb/trunk/app/views/revisions/show.rhtml (diff)
- rool/rails/rcvsweb/trunk/app/views/shared/_powered.rhtml (diff)
- rool/rails/rcvsweb/trunk/config/routes.rb (diff)
- rool/rails/rcvsweb/trunk/public/stylesheets/rcvsweb.css (diff)
rool/rails/rcvsweb/trunk/app/controllers/revisions_controller.rb:
prev. | current | |
class RevisionsController < ApplicationController | ||
5 | # Synthesised revisions: CVS History feed URL | |
6 | # | |
@@parser_url = 'http://pond.org.uk/python/cvshistory/cvshistory.cgi?revsel1=na&revsel2=na&datesel1=na&datesel2=na&selop=in&opA=on&opM=on&opR=on&opT=on&limit=1&rss=1' | ||
9 | # cvslog2web output directory | |
10 | # | |
11 | @@cvslog2web_output = '/home/adh/python/cvslog2web/public' | |
12 | ||
def list | ||
14 | # Use cvslog2web output directly for a list of recent changes. | |
15 | ||
16 | render :file => "#{@@cvslog2web_output}/recent.html", :layout => 'default' | |
17 | end | |
18 | ||
19 | def logs | |
20 | # Use cvslog2web output directly for log details of a specific change. | |
21 | # Links are based off an 'ident' parameter pulled in via a query string; | |
22 | # we don't want people putting in "../" etc. to try and navigate around | |
23 | # the server, so strip out ".", "\" and "/". | |
24 | ||
25 | log = "#{params[:ident]}" | |
26 | log.gsub!(/\.html$/, '') | |
27 | log.gsub!(/[\.\/\\]/, '') | |
28 | ||
29 | logger.error("FETCH FILE: #{@@cvslog2web_output}/#{log}.html"); | |
30 | ||
31 | render :file => "#{@@cvslog2web_output}/#{log}.html", :layout => 'default' | |
32 | end | |
33 | ||
34 | def revisions | |
# Create a revision parser for a CVSHistory RSS feed. Get a | ||
# hash keyed by revision number (as a string), each entry | ||
# containing an array of RevisionDetails objects. Sort the |
rool/rails/rcvsweb/trunk/app/views/layouts/default.rhtml:
prev. | current | |
<%= hubssolib_flash_tags -%> | ||
<div id="content"> | ||
24 | You are currently browsing the <b>CVS</b> repository.<br /> | |
25 | Revisions can be listed by | |
26 | <%= link_to 'log message', { :controller => 'revisions', :action => 'list' } %> (fast) or | |
27 | <%= link_to 'revision number', { :controller => 'revisions', :action => 'revisions' } %> (slow).<br /> | |
28 | The Subversion repository is <a href="/rails/collaboa/repository/browse">here</a>. | |
29 | <hr /> | |
30 | ||
<%= @content_for_layout %> | ||
</div> | ||
</td> |
rool/rails/rcvsweb/trunk/app/views/rcvshistory/run.rhtml:
prev. | current | |
1 | | |
2 | | |
3 | | |
4 | ||
<%= @output %> | ||
rool/rails/rcvsweb/trunk/app/views/rcvsweb/run.rhtml:
prev. | current | |
1 | | |
2 | | |
3 | | |
4 | ||
<%= @output %> | ||
rool/rails/rcvsweb/trunk/app/views/revisions/show.rhtml:
prev. | current | |
1 | | |
2 | | |
3 | ||
<% | ||
common = @output[0] | ||
... | ... | |
folder = common[:folder] || '' | ||
end | ||
-%> | ||
13 | | |
10 | <div class="breadcrumbs_mod"><div class="breadcrumbs"> | |
<ul> | ||
15 | | |
12 | <li><%= link_to 'Revisions', { :action => 'revisions' } %></li> | |
<li>» Revision <%= common[:revision] %> of <%= folder %></li> | ||
</ul> | ||
18 | | |
15 | </div></div> | |
<div id="revisions"> | ||
<h2>Revision <%= common[:revision] %></h2> |
rool/rails/rcvsweb/trunk/app/views/shared/_powered.rhtml:
prev. | current | |
1 | ||
1 | -->Powered by <a href="/rails/radiant/sources/source-code-web-site">various scripts</a> under <a href="http://pond.org.uk/ruby/">RCVSweb</a><!-- |
rool/rails/rcvsweb/trunk/config/routes.rb:
prev. | current | |
# CVShistory: Route through the 'rcvshistory' controller's 'run' action | ||
map.connect PATH_PREFIX + '/history/*url', :controller => 'rcvshistory', :action => 'run' | ||
12 | | |
13 | | |
12 | # Synthesised revision list and cvslog2web wrapping | |
13 | map.connect PATH_PREFIX + '/revisions/', :controller => 'revisions', :action => 'list' | |
map.connect PATH_PREFIX + '/revisions/:action', :controller => 'revisions' | ||
15 | ||
end |
rool/rails/rcvsweb/trunk/public/stylesheets/rcvsweb.css:
prev. | current | |
* Based on the FreeBSD-CVSweb default stylesheet. | ||
*/ | ||
7 | ||
7 | DIV#content > H1 | |
{ | ||
margin: 0; | ||
padding: 5px; | ||
... | ... | |
margin: 12px 0; | ||
} | ||
22 | ||
23 | ||
24 | ||
25 | | |
26 | | |
27 | | |
28 | | |
29 | ||
30 | ||
31 | ||
32 | ||
33 | | |
34 | | |
35 | | |
36 | | |
37 | | |
38 | | |
39 | ||
40 | ||
41 | ||
HR | ||
{ | ||
height: 1px; | ||
... | ... | |
font-size: 80%; | ||
} | ||
58 | ||
38 | DIV#content A | |
{ | ||
border: none; | ||
} | ||
63 | ||
43 | /* Fake revision summaries via CVSHistory feed */ | |
44 | ||
45 | DIV#revisions H2, | |
46 | DIV.cvslog2web_p_entry H1 | |
{ | ||
padding: 0; | ||
font-size: 160%; | ||
... | ... | |
font-size: 140%; | ||
} | ||
59 | /* Revision summarys by cvslog2web */ | |
60 | ||
61 | DIV.cvslog2web_title | |
62 | { | |
63 | font-size: 140%; | |
64 | font-weight: bold; | |
65 | margin: 0; | |
66 | } | |
67 | ||
68 | DIV.cvslog2web_title A | |
69 | { | |
70 | border: none; | |
71 | } | |
72 | ||
73 | SPAN.cvslog2web_authors, | |
74 | DIV.cvslog2web_authors, | |
75 | DIV.cvslog2web_timestamp, | |
76 | DIV.cvslog2web_filelist, | |
77 | DIV.cvslog2web_filelist P | |
78 | { | |
79 | display: block; | |
80 | font-size: small; | |
81 | font-weight: normal; | |
82 | color: #888; | |
83 | margin: 0; | |
84 | } | |
85 | ||
86 | div.cvslog2web_p_entry span.cvslog2web_filestatus | |
87 | { | |
88 | margin-right: 6px; | |
89 | } | |
90 | ||
91 | SPAN.cvslog2web_authorsprefix, | |
92 | SPAN.cvslog2web_timestampprefix, | |
93 | SPAN.cvslog2web_filestatus | |
94 | { | |
95 | font-weight: bold; | |
96 | } | |
97 | ||
98 | DIV.cvslog2web_message P | |
99 | { | |
100 | margin: 0 0 0 20px; | |
101 | padding: 0; | |
102 | font-size: small; | |
103 | } | |
104 | ||
105 | SPAN.cvslog2web_authors | |
106 | { | |
107 | margin-top: 12px; | |
108 | } | |
109 | ||
110 | DIV.cvslog2web_message, | |
111 | DIV.cvslog2web_filelist | |
112 | { | |
113 | margin-bottom: 12px; | |
114 | } | |
115 | ||
116 | DIV.cvslog2web_credit | |
117 | { | |
118 | text-align: right; | |
119 | font-size: small; | |
120 | font-style: italic; | |
121 | } | |
122 | ||
123 | DIV.cvslog2web_p_entry DIV.cvslog2web_message | |
124 | { | |
125 | padding: 10px; | |
126 | } | |
127 | ||
128 | div.cvslog2web_nav_next, | |
129 | div.cvslog2web_nav_next_disabled, | |
130 | div.cvslog2web_nav_prev, | |
131 | div.cvslog2web_nav_prev_disabled, | |
132 | div.cvslog2web_feedlink, | |
133 | div.cvslog2web_feedlink a img | |
134 | { | |
135 | display: inline; | |
136 | border: none; | |
137 | font-weight: bold; | |
138 | text-transform: lowercase; | |
139 | vertical-align: bottom; | |
140 | } | |
141 | ||
142 | /* Modified breadcrumb trails - RCVSweb default layout has <hr> after | |
143 | * the "You're browsing CVS" message; breadcrumb trails by default | |
144 | * include a similar horizontal line via border-top. Don't want two, | |
145 | * so use a local variation on the global breadcrumbs to tidy it up. | |
146 | */ | |
147 | ||
148 | DIV.breadcrumbs_mod DIV.breadcrumbs | |
149 | { | |
150 | border-top: none; | |
151 | } | |
152 | ||
/* Forms (from Collaboa CSS file, with tweaks) */ | ||
FIELDSET | ||
... | ... | |
font-weight: bold; | ||
} | ||
428 | /* Errors */ | |
429 | ||
430 | DIV#error | |
431 | { | |
432 | margin-top: 12px; | |
433 | } |