Commit Graph

114 Commits

Author SHA1 Message Date
uriel
3110edb0d3 Merge 2009-04-19 15:23:15 +00:00
uriel
8631689bcc Fix umask for newly created dirdir pages. 2009-03-17 01:02:35 +00:00
uriel
9facd7c1b1 Fix null concat in wman search code. 2009-03-16 23:42:44 +00:00
uriel
4e00043ef0 Clean up dirdir, less code, and less bugs! 2009-03-14 14:25:54 +01:00
uriel
8a4951c5bb Reorg headers, http headers now are echo-ed from werc.rc instead of being part of headers.tpl.
This fixes some bugs in the handling HEAD and makes things a bit more clear.
2009-03-13 13:04:25 +01:00
uriel
a068071801 More wman updates, new search functionality and handle better corner cases. 2009-03-13 10:51:07 +00:00
uriel
ecd3ab13aa Yet another version of wman, templatized, and now Unix man pages use the same path style as Plan 9/Inferno. 2009-03-10 01:16:13 +00:00
uriel
627a0024b2 Big update to wman app. Many fixes and improvements. 2009-03-09 22:16:39 +00:00
uriel
4abcd9fe5b First draft of wman app to browse and display manpages. 2009-03-06 16:32:33 +00:00
uriel
584364a3d4 Reverse the RSS/ATOM discovery tag order, make ATOM the default. 2009-03-06 00:15:26 +00:00
uriel
8f3cbc3b0d Only display Edit button when no other handler_body_main has been set (ie., if file really doesn't exist). 2009-03-04 09:05:40 +01:00
uriel
d21e6caeb7 Implement file creation for dirdir. 2009-03-04 03:12:54 +01:00
uriel
a2d3a65c2a Add mising </p>. 2009-03-03 21:37:36 +00:00
uriel
2f3b982ff0 Preserve ifs when calling other functions after temporary altering it. Fixes a couple of minor bugs.
Added difs env var that can be used anywhere to restore default ifs.
2009-03-03 20:23:00 +00:00
uriel
8c791b98ba Rename $blog_editors to $conf_blog_editors and give it the default value of 'blog-editors'. 2009-02-28 13:26:40 +00:00
uriel
d82369e644 Big overhaul of dirdir rewriting most code to be much simpler, reliable and efficient.
Now we have a wiki engine in ~20 lines of code!
2009-02-26 11:50:18 +01:00
uriel
8633c51515 Make bridge app more correct: only activated when GET-ing pages which can have comments and don't get confused by other apps POSTs. Simplify code along the way. 2009-02-26 11:42:20 +01:00
uriel
ebd6776ab9 Fix incorrect recording of author on edits. And write a note on a very minnor bug that adds extra new lines at the end of edited files. 2009-02-25 17:15:00 +00:00
uriel
180721c6fa Add hr abobe comments login request message. 2009-02-23 08:23:35 +00:00
uriel
62180dd951 Minor correction to atom and rss link urls. 2009-02-20 23:15:08 +00:00
uriel
fd1a141e3f Improve the atom and rss templates: fix bugs in link attirbutes, simplify code, and include html posts in rss feeds instead of raw markdown. 2009-02-18 09:28:20 +00:00
uriel
bd9b1318f3 Move comments display to a template. Show a link to login page when required for posting comments. 2009-02-16 03:46:21 +00:00
uriel
ec0649ba1c Replace switch with series of if, makes the code slightly cleaner, I think. 2009-02-16 02:27:28 +00:00
uriel
288487310b Remove xml comments from atom feed output and convert them to rc comments instead. Remove limit on atom post sized. 2009-02-15 14:50:50 +00:00
uriel
49be512fd5 Fix dates display in blogs. 2009-02-14 20:34:23 +00:00
uriel
462a3185a6 Fix silly html syntax error that all browsers but opera ignored. 2009-02-13 23:22:02 +00:00
uriel
fa9f5196a9 Updates to blagh: Allow setting date of new posts, blog-editors default group, provide better error repporting using new notification framework, plus other bug fixes. 2009-02-13 23:21:15 +00:00
uriel
c93ed867af Use correct post title in rss feeds. 2009-02-13 23:19:24 +00:00
uriel
544bf4a6bd Brown papperbag bug: do not include html headers in rss/atom feeds! 2009-02-13 13:23:19 +00:00
uriel
7d55fad55b Add blog header and rss/atom feed links, and fix a bug for agregated blog dirs. 2009-02-12 22:03:57 +00:00
uriel
5fe0d95b05 Add conf_enable_app to add items to $enabled_apps, used from conf_enable_xxx functions so one doesn't need to both add stuff to $eanbled_apps and then call conf_enable_xxx, and to avoid enabling the same app twice.
New conf_enable_wiki function to follow the interface of other apps.
2009-02-08 00:22:46 +00:00
uriel
0818fc13fb Display date in post listing. 2009-02-01 20:03:27 +01:00
uriel
7d3c5446da Store and display comment posted date/time. 2009-02-01 20:02:22 +01:00
uriel
560e3767da add comment about how note is never displayed due to subsequent redirect. 2009-01-30 16:48:49 +01:00
uriel
1a2444b363 New version of comments module, must more reliable and polished. 2009-01-30 16:10:14 +01:00
uriel
3bb3a29070 Be smarter about when to enable comments, and make it configurable. 2009-01-26 06:12:45 +01:00
uriel
a4df183f4e Only allow comments for .md files, this avoids silly things like comments for
loggin form pages, but will need to be improved to become more general.

Simplify some code a bit and cosmetic improvements.
2009-01-26 04:56:05 +01:00
uriel
b8c8cb9e9d Upgrade and cleanup dirdir, move to app framework, and its implementation more elegant and reliable. 2009-01-26 03:37:47 +01:00
uriel
267dd6a33d Fix syntax error, and some cosmetic improvments to html form. 2009-01-25 16:54:03 +01:00
uriel
0147485944 Add tempalte for blog posting via web interface. 2009-01-25 16:53:21 +01:00
uriel
e364bbdde0 Move blagh feed templates to app dir, be smarter when enabling 'implicit' blogs, and upgrade the web interface for blog posting. 2009-01-25 16:52:19 +01:00
uriel
6b8aa06dbb Make comments form look less hideous 2009-01-24 07:22:43 +01:00
uriel
4302232dd0 Add some comments and replace get_post_args with load_post_args 2009-01-24 07:11:39 +01:00
uriel
a12260bc19 Simplify init code to take advantage of the new blagh_root variable. Fix and cleanup various things. 2009-01-23 16:44:42 +01:00
uriel
3c3f9627ff Add conf_enable_blog function to blagh to be used to setup a blog. 2009-01-22 09:23:20 +01:00
uriel
2a7d3c1a0f Fix display of individual blog posts. 2009-01-20 09:06:28 +00:00
uriel
a7625dbf9e Rename $wiki to $enable_wiki to be consistent with $enable_comments, also add a note that dirdir templates should move from lib/_apps/dirdir/ to apps/diridri/ 2009-01-20 03:38:48 +01:00
uriel
cb73d98fd8 Dirdir wiki engine updates, cleaned up some code, now one can save from preview page. 2009-01-17 09:43:31 +01:00
uriel
0c3e69ad8a Remove unused/debug code and rename comment var enable_comments 2009-01-17 09:42:24 +01:00
uriel
9d352d49f5 Move some wiki code into dirdir app! 2009-01-17 03:43:36 +01:00
uriel
b425257491 Blagh: improve handler setup for atom/rss feeds, also filter out blog posts with non-url-allowed path elements. 2009-01-13 03:19:45 +01:00
uriel
679fefacac Various small cleanups: remove unused code, clarity and reliability fixes here and here, move code to more appropriate locations, improve some comments. 2009-01-12 02:07:31 +01:00
uriel
f2e3d8b775 Remove some debug code, and fix a silly bug. 2009-01-11 19:52:48 +01:00
uriel
912dea9e6e Fix blah to work with new handler interfaces.
Remove outdated app-framework code.
Clanup some of the fallback handler setting code.
2009-01-11 04:40:40 +01:00
uriel
bf16d2b4c8 Handler interface reorg, take oportunity to cleanup default_master.tpl and move comments bits to bridge app. 2009-01-11 04:03:46 +01:00
uriel
86ba2b9392 Minor reorg of handler selection, move comment code to bridge app.
Bigger changes still to come.
2009-01-09 03:08:02 +01:00
uriel
884efc70f0 Minnor change, merge two lines and add a comment from the old blog code. 2009-01-02 16:49:44 +01:00
uriel
159e53f1d6 Minor code simplificaton. 2008-12-31 00:16:17 +01:00
uriel
a066392d83 Fix blagh_init to fail when we should fail. 2008-12-28 23:43:15 +01:00
uriel
a7dadbf916 Further progress with blagh app, atom feeds and rss feeds are mostly working. 2008-12-28 21:37:03 +01:00
uriel
713a591618 Minor comment cleanups. 2008-12-28 11:51:03 +01:00
uriel
47f8de61c4 Further simplification/cleanup. 2008-12-27 11:47:36 +01:00
uriel
330a40956d New blagh app 2008-12-24 12:19:06 +01:00
uriel
270c9999a0 Add sample 'hello world' app and enabled_apps config variable. 2008-12-21 09:37:40 +01:00