Fossil SCM

On /dir page, add a link named "[history]" that point to the timeline affecting only the files inside the current directory. Use the "chng=dirname/*" query parameter of the /timeline page) TODO: Implement the same in Tree-View mode (could add the link beside each directory)

mgagnon 2017-02-08 18:28 trunk
Commit c458c3f61bda3f4a7d1218dfd15d6e634a16bd32
1 file changed +5 -1
+5 -1
--- src/browse.c
+++ src/browse.c
@@ -186,11 +186,15 @@
186186
if( linkTip ){
187187
style_submenu_element("Tip", "%s", url_render(&sURI, "ci", "tip", 0, 0));
188188
}
189189
if( zCI ){
190190
@ <h2>Files of check-in [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>]
191
- @ %s(blob_str(&dirname))</h2>
191
+ @ %s(blob_str(&dirname))
192
+ if( zD ){
193
+ @ %z(href("%R/timeline?chng=%T/*", zD))&nbsp;&nbsp;[history]</a>
194
+ }
195
+ @ </h2>
192196
zSubdirLink = mprintf("%R/dir?ci=%!S&name=%T", zUuid, zPrefix);
193197
if( nD==0 ){
194198
style_submenu_element("File Ages", "%R/fileage?name=%!S", zUuid);
195199
}
196200
}else{
197201
--- src/browse.c
+++ src/browse.c
@@ -186,11 +186,15 @@
186 if( linkTip ){
187 style_submenu_element("Tip", "%s", url_render(&sURI, "ci", "tip", 0, 0));
188 }
189 if( zCI ){
190 @ <h2>Files of check-in [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>]
191 @ %s(blob_str(&dirname))</h2>
 
 
 
 
192 zSubdirLink = mprintf("%R/dir?ci=%!S&name=%T", zUuid, zPrefix);
193 if( nD==0 ){
194 style_submenu_element("File Ages", "%R/fileage?name=%!S", zUuid);
195 }
196 }else{
197
--- src/browse.c
+++ src/browse.c
@@ -186,11 +186,15 @@
186 if( linkTip ){
187 style_submenu_element("Tip", "%s", url_render(&sURI, "ci", "tip", 0, 0));
188 }
189 if( zCI ){
190 @ <h2>Files of check-in [%z(href("vinfo?name=%!S",zUuid))%S(zUuid)</a>]
191 @ %s(blob_str(&dirname))
192 if( zD ){
193 @ %z(href("%R/timeline?chng=%T/*", zD))&nbsp;&nbsp;[history]</a>
194 }
195 @ </h2>
196 zSubdirLink = mprintf("%R/dir?ci=%!S&name=%T", zUuid, zPrefix);
197 if( nD==0 ){
198 style_submenu_element("File Ages", "%R/fileage?name=%!S", zUuid);
199 }
200 }else{
201

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button