logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

0019-stagit-index-.c-Add-a-bunch-of-classes-for-styling.patch (2415B)


  1. From bdd0f2f3dee07deb3ab9b340335e1d3e70a38ebf Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Sun, 17 Mar 2019 01:20:06 +0100
  4. Subject: [PATCH 19/22] stagit{-index}.c: Add a bunch of classes for styling
  5. ---
  6. stagit-index.c | 6 +++---
  7. stagit.c | 12 ++++++------
  8. 2 files changed, 9 insertions(+), 9 deletions(-)
  9. diff --git a/stagit-index.c b/stagit-index.c
  10. index 19eb047..b31b088 100644
  11. --- a/stagit-index.c
  12. +++ b/stagit-index.c
  13. @@ -133,14 +133,14 @@ writelog(FILE *fp)
  14. if (!strcmp(p, ".git"))
  15. *p = '\0';
  16. - fputs("<tr><td><a href=\"", fp);
  17. + fputs("<tr><td class=\"text index-name\"><a href=\"", fp);
  18. xmlencode(fp, stripped_name, strlen(stripped_name));
  19. /*fputs("/log.html\">", fp); Let http server set default index */
  20. fputs("/\">", fp);
  21. xmlencode(fp, stripped_name, strlen(stripped_name));
  22. - fputs("</a></td><td>", fp);
  23. + fputs("</a></td><td class=\"text index-description\">", fp);
  24. xmlencode(fp, description, strlen(description));
  25. - fputs("</td><td>", fp);
  26. + fputs("</td><td class=\"date index-author-date\">", fp);
  27. if (author)
  28. printtimeshort(fp, &(author->when));
  29. fputs("</td></tr>", fp);
  30. diff --git a/stagit.c b/stagit.c
  31. index fd5873a..f6282fa 100644
  32. --- a/stagit.c
  33. +++ b/stagit.c
  34. @@ -584,23 +584,23 @@ printshowfile(FILE *fp, struct commitinfo *ci)
  35. void
  36. writelogline(FILE *fp, struct commitinfo *ci)
  37. {
  38. - fputs("<tr><td>", fp);
  39. + fputs("<tr><td class=\"date log-author-date\">", fp);
  40. if (ci->author)
  41. printtimeshort(fp, &(ci->author->when));
  42. - fputs("</td><td>", fp);
  43. + fputs("</td><td class=\"text log-summary\">", fp);
  44. if (ci->summary) {
  45. fprintf(fp, "<a href=\"%scommit/%s.html\">", relpath, ci->oid);
  46. xmlencode(fp, ci->summary, strlen(ci->summary));
  47. fputs("</a>", fp);
  48. }
  49. - fputs("</td><td>", fp);
  50. + fputs("</td><td class=\"text log-author\">", fp);
  51. if (ci->author)
  52. xmlencode(fp, ci->author->name, strlen(ci->author->name));
  53. - fputs("</td><td class=\"num\" align=\"right\">", fp);
  54. + fputs("</td><td class=\"num log-filecount\">", fp);
  55. fprintf(fp, "%zu", ci->filecount);
  56. - fputs("</td><td class=\"num\" align=\"right\">", fp);
  57. + fputs("</td><td class=\"num log-addcount\">", fp);
  58. fprintf(fp, "+%zu", ci->addcount);
  59. - fputs("</td><td class=\"num\" align=\"right\">", fp);
  60. + fputs("</td><td class=\"num log-delcount\">", fp);
  61. fprintf(fp, "-%zu", ci->delcount);
  62. fputs("</td></tr>\n", fp);
  63. }
  64. --
  65. 2.26.2