diff options
Diffstat (limited to 'src/gistatic.c')
-rw-r--r-- | src/gistatic.c | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/src/gistatic.c b/src/gistatic.c index 8f33955..6dac369 100644 --- a/src/gistatic.c +++ b/src/gistatic.c @@ -47,34 +47,36 @@ static const char *const CATALOG_NAME = PROGNAME; static nl_catd catalog_descriptor = NULL; #define MSG_DEFAULT_TITLE 1 -#define MSG_LOGO_ALT 2 -#define MSG_FOOTER_TEMPLATE 3 -#define MSG_LANG 4 -#define MSG_NAME 5 -#define MSG_DESCRIPTION 6 -#define MSG_LAST_COMMIT 7 -#define MSG_USAGE 8 -#define MSG_HELP 9 -#define MSG_COMMIT_FEED 10 -#define MSG_TAGS_FEED 11 -#define MSG_NAV_FILES 12 -#define MSG_NAV_LOG 13 -#define MSG_NAV_REFS 14 -#define MSG_THEAD_BRANCH 15 -#define MSG_THEAD_COMMITMSG 16 -#define MSG_THEAD_AUTHOR 17 -#define MSG_THEAD_DATE 18 -#define MSG_THEAD_TAG 19 -#define MSG_THEAD_DOWNLOAD 20 -#define MSG_MISSING_URL 21 -#define MSG_MISSING_ARGS 22 -#define MSG_INCOMPATIBLE_OPTIONS 23 -#define MSG_ERR_NONDIRECT_REF 24 +#define MSG_LOGO_ALT_INDEX 2 +#define MSG_LOGO_ALT_REPOSITORY 3 +#define MSG_FOOTER_TEMPLATE 4 +#define MSG_LANG 5 +#define MSG_NAME 6 +#define MSG_DESCRIPTION 7 +#define MSG_LAST_COMMIT 8 +#define MSG_USAGE 9 +#define MSG_HELP 10 +#define MSG_COMMIT_FEED 11 +#define MSG_TAGS_FEED 12 +#define MSG_NAV_FILES 13 +#define MSG_NAV_LOG 14 +#define MSG_NAV_REFS 15 +#define MSG_THEAD_BRANCH 16 +#define MSG_THEAD_COMMITMSG 17 +#define MSG_THEAD_AUTHOR 18 +#define MSG_THEAD_DATE 19 +#define MSG_THEAD_TAG 20 +#define MSG_THEAD_DOWNLOAD 21 +#define MSG_MISSING_URL 22 +#define MSG_MISSING_ARGS 23 +#define MSG_INCOMPATIBLE_OPTIONS 24 +#define MSG_ERR_NONDIRECT_REF 25 static const char *const MSGS[] = { "", [MSG_DEFAULT_TITLE]="Repositories", - [MSG_LOGO_ALT]="Logo image of the repository list", + [MSG_LOGO_ALT_INDEX]="Logo image of the repository list", + [MSG_LOGO_ALT_REPOSITORY]="Logo image of the repository", [MSG_FOOTER_TEMPLATE]="Generated with %s", [MSG_LANG]="en", [MSG_NAME]="Name", @@ -1003,7 +1005,7 @@ static int index_write_header(FILE *const fd, const char *const idx_title) { " <tbody>\n", _(MSG_LANG), idx_title, - _(MSG_LOGO_ALT), + _(MSG_LOGO_ALT_INDEX), idx_title, _(MSG_NAME), _(MSG_DESCRIPTION), @@ -1397,7 +1399,9 @@ static int repo_write_refs( " <body>\n" " <header>\n" " <div class=\"header-horizontal-grouping\">\n" - " <img alt=\"%s\" class=\"logo\" src=\"logo.svg\" />\n" + " <a href=\"../\">\n" + " <img alt=\"%s\" class=\"logo\" src=\"logo.svg\" />\n" + " </a>\n" " <div class=\"header-description\">\n" " <h1>\n" " %s\n" @@ -1458,7 +1462,7 @@ static int repo_write_refs( _(MSG_TAGS_FEED), _(MSG_LANG), project_name, - _(MSG_LOGO_ALT), + _(MSG_LOGO_ALT_REPOSITORY), project_name, description, clone_url, |