Index: README.md
===================================================================
--- README.md (revision 21)
+++ README.md (revision 22)
@@ -368,5 +368,5 @@
## Copyright and License
-© Andrey V. Kosteltsev, 2019 – 2020.<br/>
+© Andrey V. Kosteltsev, 2019 – 2022.<br/>
Code and documentation released under [the **Radix.pro** License](https://csvn.radix.pro/cgit-ui/trunk/LICENSE).
Index: cgitcgi/.cgit/html/footer.html
===================================================================
--- cgitcgi/.cgit/html/footer.html (revision 21)
+++ cgitcgi/.cgit/html/footer.html (revision 22)
@@ -18,7 +18,7 @@
${copyright-notice}
</p>
<p class="copyright">
- <!-- © Андрей В. Костельцев, 2009 – 2020. -->
+ <!-- © Андрей В. Костельцев, 2009 – 2022. -->
${copyright}
</p>
</div>
Index: cgitcgi/cgit-ui.rc.5
===================================================================
--- cgitcgi/cgit-ui.rc.5 (revision 21)
+++ cgitcgi/cgit-ui.rc.5 (revision 22)
@@ -1,5 +1,5 @@
.\"
-.TH "CGIT-UI.RC" 5 "2020-11-07" "cGit-ui CGI script" "cgit-ui.rc"
+.TH "CGIT-UI.RC" 5 "2022-02-19" "cGit-ui CGI script" "cgit-ui.rc"
.SH "NAME"
\fB/etc/cgit-ui.rc\fR \- cGit-ui CGI script config file
@@ -351,7 +351,7 @@
.TP 4
\fBcopyright\fR
The \fBstring\fR variable used in the HTML footer of all \fBcGit-ui\fR pages as a Copyright.
-Default value: \fI"© 2020 Andrey V.Kosteltsev. All Rights Reserved."\fR.
+Default value: \fI"© 2022 Andrey V.Kosteltsev. All Rights Reserved."\fR.
Example declaration:
.PP
.in +6n
Index: cgitcgi/ctx.c
===================================================================
--- cgitcgi/ctx.c (revision 21)
+++ cgitcgi/ctx.c (revision 22)
@@ -177,7 +177,7 @@
ctx.vars.popup_menu_items = "<div class='item'><span class='icon las la-home'></span><a href='https://example.org/' target='_blank'>Home page</a></div>";
ctx.vars.right_menu_items = "<div class='item'><a href='https://example.org/' target='_blank'>Home page</a></div>";
ctx.vars.copyright_notice = "By using any website materials you agree to indicate source.";
- ctx.vars.copyright = "© 2020 Andrey V.Kosteltsev. All Rights Reserved.";
+ ctx.vars.copyright = "© 2022 Andrey V.Kosteltsev. All Rights Reserved.";
ctx.vars.page_type = ptype_repolist;
ctx.vars.page_size = "200";
ctx.vars.num_of_repos = "0";
@@ -1176,6 +1176,8 @@
static char repo_root[PATH_MAX] = { 0 };
static char relative_path[PATH_MAX] = { 0 };
+static char try[PATH_MAX] = { 0 };
+
static struct repo *ctx_repo_name( void )
{
struct repo *repo = NULL;
@@ -1199,9 +1201,30 @@
{
*p = '\0'; s = ++p;
- if( (repo = lookup_repo( config, n )) )
+ /****************************************************************
+ The repo name can be given as a relative path in the git-root:
+ */
+ if( repo_root[0] )
{
- sprintf( name, "%s", n );
+ sprintf( try, "%s", repo_root );
+ strcat( try, "/" );
+ strcat( try, n );
+ }
+ else
+ {
+ sprintf( try, "%s", n );
+ }
+
+ if( (repo = lookup_repo( config, try )) )
+ {
+ sprintf( name, "%s", try );
+ {
+ char *rr = strstr( repo_root, try );
+ if( rr )
+ *rr = '\0';
+ else
+ repo_root[0] = '\0';
+ }
break;
}
else
Index: configure.ac
===================================================================
--- configure.ac (revision 21)
+++ configure.ac (revision 22)
@@ -22,7 +22,7 @@
CGIT_SCRIPT_DIR=/var/www/htdocs/cgit
m4_divert_pop([M4SH-INIT])
-AC_CGIT_HEADLINE([cgit-ui], [cGit-ui], [Copyright (c) 2019-2020 Andrey V.Kosteltsev])
+AC_CGIT_HEADLINE([cgit-ui], [cGit-ui], [Copyright (c) 2019-2022 Andrey V.Kosteltsev])
dnl ============================================================
Index: doc/cgit-ui.rc.5.md
===================================================================
--- doc/cgit-ui.rc.5.md (revision 21)
+++ doc/cgit-ui.rc.5.md (revision 22)
@@ -328,7 +328,7 @@
#### copyright
The **string** variable used in the HTML footer of all **cGit-ui** pages as a *Copyright*.
-Default value: *"© 2020 Andrey V.Kosteltsev. All Rights Reserved."*.
+Default value: *"© 2022 Andrey V.Kosteltsev. All Rights Reserved."*.
Example declaration:
```dts
@@ -577,7 +577,7 @@
title = "Radix.pro Git Repositories";
description = "Git repositories hosted at radix.pro (St.-Petersburg)";
keywords = "cGit repositories cgit-ui web web-ui user interface Git";
-copyright = "© Andrey V. Kosteltsev, 2019 – 2020.";
+copyright = "© Andrey V. Kosteltsev, 2019 – 2022.";
copyright-notice = "Where any material of this site is being reproduced, published or issued to others the reference to the source is obligatory.";
home-page = "https://radix.pro/";