From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Cc: Jakub Narebski <jnareb@gmail.com>
Subject: [PATCH] gitweb: Add padding to project's README on "summary" page
Date: Wed, 28 Mar 2007 01:20:27 +0200 [thread overview]
Message-ID: <11750376272105-git-send-email-jnareb@gmail.com> (raw)
Add padding to (optional) project's README on "summary" page (taken
from README.html in project's GIT_DIR), to make it line out with the
rest of the page.
It is done by adding a wrapper div element around README contents,
with "readme" class, and CSS rule for div.readme; it fixes layout,
but probably should be refactored during gitweb CSS cleanup.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
gitweb/gitweb.css | 4 ++++
gitweb/gitweb.perl | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 5e40292..cbe8c11 100644
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
@@ -76,6 +76,10 @@ div.page_body {
font-family: monospace;
}
+div.readme {
+ padding: 8px;
+}
+
div.title, a.title {
display: block;
padding: 6px 8px;
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3786955..4f34c29 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -3063,7 +3063,9 @@ sub git_summary {
if (-s "$projectroot/$project/README.html") {
if (open my $fd, "$projectroot/$project/README.html") {
print "<div class=\"title\">readme</div>\n";
+ print "<div class=\"readme\">\n";
print $_ while (<$fd>);
+ print "</div>\n"; # class="readme"
close $fd;
}
}
--
1.5.0.5
reply other threads:[~2007-03-27 23:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11750376272105-git-send-email-jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).