X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Froomviews.c;fp=webcit%2Froomviews.c;h=40fa9e02a32383c3035965412f733970f5df089b;hb=7d548835437de5f5ea26884af56982cb1c8af673;hp=81829502cfdc4456e336f0c274bfeea1f8b2d4a5;hpb=599a7233096551d6b9c519c5622432957ad7f030;p=citadel.git diff --git a/webcit/roomviews.c b/webcit/roomviews.c index 81829502c..40fa9e02a 100644 --- a/webcit/roomviews.c +++ b/webcit/roomviews.c @@ -11,7 +11,7 @@ char *viewdefs[VIEW_MAX]; * This table defines which views may be selected as the * default view for a room at the time of its creation. */ -ROOM_VIEWS allowed_default_views[VIEW_MAX] = { +int allowed_default_views[VIEW_MAX] = { 1, /* VIEW_BBS Bulletin board */ 1, /* VIEW_MAILBOX Mailbox summary */ 1, /* VIEW_ADDRESSBOOK Address book */ @@ -22,7 +22,9 @@ ROOM_VIEWS allowed_default_views[VIEW_MAX] = { 0, /* VIEW_CALBRIEF Brief Calendar */ 0, /* VIEW_JOURNAL Journal */ 0, /* VIEW_DRAFTS Drafts */ - 1 /* VIEW_BLOG Blog */ + 1, /* VIEW_BLOG Blog */ + 0, /* VIEW_QUEUE Mail Queue */ + 1 /* VIEW_WIKIMD MarkDown Wiki */ }; /* @@ -30,17 +32,18 @@ ROOM_VIEWS allowed_default_views[VIEW_MAX] = { * which alternate views may be selected by the user. */ ROOM_VIEWS exchangeable_views[VIEW_MAX][VIEW_MAX] = { - { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 }, /* bulletin board */ - { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 }, /* mailbox summary */ - { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, /* address book */ - { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, /* calendar */ - { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 }, /* tasks */ - { 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, /* notes */ - { 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, /* wiki */ - { 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 }, /* brief calendar */ - { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 }, /* journal */ - { 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1 }, /* drafts */ - { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 } /* blog */ + { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 }, /* bulletin board */ + { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 }, /* mailbox summary */ + { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* address book */ + { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, /* calendar */ + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, /* tasks */ + { 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 }, /* notes */ + { 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, /* wiki */ + { 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 }, /* brief calendar */ + { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, /* journal */ + { 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0 }, /* drafts */ + { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 }, /* blog */ + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 } /* Markdown wiki */ }; /* @@ -58,6 +61,7 @@ void initialize_viewdefs(void) { viewdefs[VIEW_JOURNAL] = _("Journal"); viewdefs[VIEW_DRAFTS] = _("Drafts"); viewdefs[VIEW_BLOG] = _("Blog"); + viewdefs[VIEW_WIKIMD] = _("Markdown Wiki"); } @@ -84,6 +88,9 @@ void tmplput_ROOM_COLLECTIONTYPE(StrBuf *Target, WCTemplputParams *TP) case VIEW_WIKI: StrBufAppendBufPlain(Target, HKEY("wiki"), 0); break; + case VIEW_WIKIMD: + StrBufAppendBufPlain(Target, HKEY("x-markdown"), 0); + break; } }