From: David Bremner Date: Wed, 10 Sep 2008 10:32:46 +0000 (-0300) Subject: add dependency on comment page, so links show up after refresh X-Git-Tag: 0.1~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f748439943dce0ed2259388851166834927d12f4;p=ikiwiki.git add dependency on comment page, so links show up after refresh --- diff --git a/IkiWiki/Plugin/postal.pm b/IkiWiki/Plugin/postal.pm index f9fc955e7..e1e00d72e 100644 --- a/IkiWiki/Plugin/postal.pm +++ b/IkiWiki/Plugin/postal.pm @@ -50,6 +50,8 @@ sub pagetemplate (@) my $comment_page=$destpage . "/" . $subpage_name; + add_depends($params{page},$comment_page); + my $comment_link=undef; if (exists $pagesources{$comment_page}){ $comment_link=htmllink($page,$destpage,$comment_page, diff --git a/TODO b/TODO index 2808a8513..adc949ece 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,5 @@ * support threading (comments on comments) * Clean up debugging cruft * put dependencies list in README -* creating a comment mailbox does not add link to parent page - until next rebuild * adding a message does not refresh diff --git a/test-wiki/in/mailbox.css b/test-wiki/in/mailbox.css deleted file mode 120000 index e07c437eb..000000000 --- a/test-wiki/in/mailbox.css +++ /dev/null @@ -1 +0,0 @@ -../../examples/mailbox.css \ No newline at end of file diff --git a/test-wiki/in/mailbox.css b/test-wiki/in/mailbox.css new file mode 100644 index 000000000..d4f7ad0fb --- /dev/null +++ b/test-wiki/in/mailbox.css @@ -0,0 +1,15 @@ + + +div.mailmessage{ + border-top: 1px solid; + margin-top: 1% + +} +.headername { +font-weight: bold; + } + +.emailthreadindent{ +position: relative; +left: 5%; +} \ No newline at end of file diff --git a/test-wiki/test.setup b/test-wiki/test.setup index 0f30f9577..a04a22c28 100644 --- a/test-wiki/test.setup +++ b/test-wiki/test.setup @@ -14,7 +14,7 @@ use IkiWiki::Setup::Standard { srcdir => $ENV{PWD}."/test-src", destdir => "/tmp/postal-test", - url => "file:///tmp/postaltest-wiki/", + url => "file:///tmp/postal-test/", #cgiurl => "http://example.org/wiki/ikiwiki.cgi", templatedir => $ENV{PWD}."/../examples", #underlaydir => "/usr/share/ikiwiki/basewiki",