]> git.cameronkatri.com Git - cgit.git/commitdiff
Change toggle to more meaningful term
authorJustin Waters <justin.waters@timesys.com>
Fri, 9 Jan 2009 22:35:10 +0000 (17:35 -0500)
committerLars Hjemli <hjemli@gmail.com>
Sun, 11 Jan 2009 11:52:38 +0000 (12:52 +0100)
In the log interface, there is a toggle link at the top, but it isn't clear
what's being toggled.  I've changed it to "Expand" and "Collapse" to make it
clear that you are getting more and less information, respectively.

Signed-off-by: Justin Waters <justin.waters@timesys.com>
ui-log.c

index c3757dd0131d75c2764dc0a0931a57085b7fc8b5..32028484b7a531898aa4c3a00e51ebad4ec53da6 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -165,7 +165,8 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
              "<th class='left'>Commit message");
        if (pager) {
                html(" (");
-               cgit_log_link("toggle", NULL, NULL, ctx.qry.head, ctx.qry.sha1,
+               cgit_log_link(ctx.qry.showmsg ? "Collapse" : "Expand", NULL,
+                             NULL, ctx.qry.head, ctx.qry.sha1,
                              ctx.qry.path, ctx.qry.ofs, ctx.qry.grep,
                              ctx.qry.search, ctx.qry.showmsg ? 0 : 1);
                html(")");