From: joey Date: Tue, 4 Jul 2006 06:07:32 +0000 (+0000) Subject: * Make RecentChanges use a table and some CSS, should be much more readable. X-Git-Tag: 1.8~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e059c9eff94ab37598d740cc5777e591216368a1;p=ikiwiki.git * Make RecentChanges use a table and some CSS, should be much more readable. No code changes involved. * Encode & in diffurl in examples, to conform to pedantic rules. --- diff --git a/IkiWiki/Rcs/svn.pm b/IkiWiki/Rcs/svn.pm index 199a02ee1..be4106a02 100644 --- a/IkiWiki/Rcs/svn.pm +++ b/IkiWiki/Rcs/svn.pm @@ -126,7 +126,6 @@ sub rcs_recentchanges ($) { #{{{ foreach my $msgline (split(/\n/, $logentry->{msg})) { push @message, { line => escapeHTML($msgline) }; } - unshift @message, { line => "\n" } if @message > 1; my $committype="web"; if (defined $message[0] && diff --git a/basewiki/style.css b/basewiki/style.css index 8d51685fb..c7988b7b7 100644 --- a/basewiki/style.css +++ b/basewiki/style.css @@ -30,6 +30,15 @@ width: 100%; } +/* Stuff for the RecentChanges table. */ +.changeheader { + background: #eee; + color: black !important; +} +.changetime { + white-space: nowrap; +} + /* Used for adding a blog page. */ #blogform { padding: 10px 10px; diff --git a/basewiki/wikiicons/diff.png b/basewiki/wikiicons/diff.png new file mode 100644 index 000000000..0b98d79ac Binary files /dev/null and b/basewiki/wikiicons/diff.png differ diff --git a/debian/changelog b/debian/changelog index 08e2142d1..40247ffab 100644 --- a/debian/changelog +++ b/debian/changelog @@ -42,8 +42,11 @@ ikiwiki (1.8) UNRELEASED; urgency=low is a savings of 2 pointless fork/execs per link calculation, which results in ~25% speedup of ikiwiki building its own doc wiki, and about 35% speedup displaying RecentChanges! + * Make RecentChanges use a table and some CSS, should be much more readable. + No code changes involved. + * Encode & in diffurl in examples, to conform to pedantic rules. - -- Joey Hess Mon, 3 Jul 2006 23:33:57 -0400 + -- Joey Hess Tue, 4 Jul 2006 01:42:28 -0400 ikiwiki (1.7) unstable; urgency=low diff --git a/doc/ikiwiki.setup b/doc/ikiwiki.setup index c516da1b9..9713d553b 100644 --- a/doc/ikiwiki.setup +++ b/doc/ikiwiki.setup @@ -21,7 +21,7 @@ use IkiWiki::Setup::Standard { # Subversion stuff. rcs => "svn", #historyurl => "http://svn.myhost/trunk/[[file]]", - #diffurl => "http://svn.someurl/trunk/[[file]]?root=wiki&r1=[[r1]]&r2=[[r2]]", + #diffurl => "http://svn.someurl/trunk/[[file]]?root=wiki&r1=[[r1]]&r2=[[r2]]", svnrepo => "/svn/wiki", svnpath => "trunk", diff --git a/doc/todo/html.mdwn b/doc/todo/html.mdwn index 51f669a13..a99f87c8a 100644 --- a/doc/todo/html.mdwn +++ b/doc/todo/html.mdwn @@ -1,5 +1,4 @@ -Create some nice stylesheets. Make RecentChanges use table for -formatting, and images to indicate web vs svn commits and to link to diffs. +Create some nice(r) stylesheets. -All of this should be doable w/o touching a single line of code, just -editing the [[templates]] and/or editing [[style.css]] BTW. +Should be doable w/o touching a single line of code, just +editing the [[templates]] and/or editing [[style.css]]. diff --git a/doc/usage.mdwn b/doc/usage.mdwn index 7bf50e5f7..7bc9e5314 100644 --- a/doc/usage.mdwn +++ b/doc/usage.mdwn @@ -158,7 +158,7 @@ These options configure the wiki. Specifies the email address that ikiwiki should use for sending email. -* --diffurl http://url/trunk/\[[file]]?root=wiki&r1=\[[r1]]&r2=\[[r2]] +* --diffurl http://url/trunk/\[[file]]?root=wiki&r1=\[[r1]]&r2=\[[r2]] Specifies the url to link to for a diff of changes to a page. In the url, "\[[file]]" is replaced with the file to browse, "\[[r1]]" is the old diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl index e7d7e10dd..1ea2f8a45 100644 --- a/templates/recentchanges.tmpl +++ b/templates/recentchanges.tmpl @@ -18,28 +18,49 @@
-
    +
    + + + + + + + + -
  • +
  • + + + + + + + + + + + - +
    usertimechanges
    - - (">diff) + "> + diff + + + + -
    - - changed by : - - - -
    -
    -
    -
    - +
    + + + +
    +
    +
    +
    +