From 1dcbadf2eb928c63ce3a968f311f6af6b81d33a4 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 27 Mar 2017 18:57:07 -0400 Subject: Beginning of wiki development --- Project-Unite/Views/Wiki/Index.cshtml | 76 +++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Project-Unite/Views/Wiki/Index.cshtml (limited to 'Project-Unite/Views') diff --git a/Project-Unite/Views/Wiki/Index.cshtml b/Project-Unite/Views/Wiki/Index.cshtml new file mode 100644 index 0000000..dc7d8bb --- /dev/null +++ b/Project-Unite/Views/Wiki/Index.cshtml @@ -0,0 +1,76 @@ +@model Project_Unite.Models.WikiViewModel + +@{ + if (Model.Page == null) + { + ViewBag.Title = "Wiki"; + } + else + { + ViewBag.Title = Model.Page.Name + " - Wiki"; + } +} + +@helper CreateCategoryListRecursive(Project_Unite.Models.WikiCategory category) { +
  • @category.Name + +
  • +} + +
    +
    +
    +

    Pages

    + +
      + @foreach(var cat in Model.Categories) + { + CreateCategoryListRecursive(cat); + } +
    +
    +
    + +
    +
    + @if(Model.Page != null) + { +

    @Model.Page.Name

    + +

    @Html.Markdown(Model.Page.Contents)

    + } + else + { +

    ShiftOS Wiki

    + +

    The ShiftOS Wiki is a community and developer-driven handbook for everything you need to know about ShiftOS. It contains tutorials, guides, code examples, and loads of other interesting things. Read on!

    + +

    How to post to and edit the wiki

    + +

    If you have a ShiftOS account, and have the right privileges to a category, simply click the "Add new page" button at the top, and fill in the blanks.

    + +

    If you don't have a ShiftOS account, this is the perfect time to @Html.ActionLink("create one", "Register", "Account")! Without one, how would you play the game?

    + +

    Adding categories

    + +

    Adding categories is only available to those with the `CanManageWikiCategories` access control definition. If you have this ACL definition, you may manage wiki categories from the Developer Control Panel.

    + +

    This wiki supports Markdown!

    + +

    You can use Markdown in the wiki, just like you would in a forum post, skin description or user status update. We use the CommonMark standard - which is the standard used by websites and software like GitHub, Discourse, Gitter, and various others.

    + + + } +
    +
    +
    + -- cgit v1.2.3