doctype html

div.wrapper(
    ng-controller="WikiDetailController as ctrl"
    ng-init="section='wiki'"
)
    tg-project-menu
    sidebar.menu-secondary.extrabar.wiki-nav(
        ng-if="linksVisible"
        tg-wiki-nav
        ng-model="wikiLinks"
    )
    section.main.wiki
        header
            h1
                span(tg-bo-bind="project.name")
                span.green(translate="PROJECT.SECTION.WIKI")

        tg-wiki-wysiwyg(model="wiki")

        .summary.wiki-summary(
            tg-wiki-summary
            ng-model="wiki"
            ng-if="wiki.id"
        )

        tg-attachments-full(
            ng-if="wiki.id"
            obj-id="wiki.id"
            type="wiki_page",
            project-id="projectId"
            edit-permission = "modify_wiki_page"
        )

        tg-wiki-history(
            ng-if="wiki.id"
            wiki-id="wiki.id"
        )
