Skip to content
Snippets Groups Projects
index.pug 1.50 KiB
include get_config.pug
doctype html
html(lang="en")
  head
    meta(charset="UTF-8")
    title #{clientName || "Sib App"}
    meta(name="viewport", content="width=device-width, initial-scale=1.0")
    meta(http-equiv="X-UA-Compatible", content="ie=edge")
    link(rel="icon" type="image/png" href="/images/favicon.png")
    include dependencies.pug
    if clientCSS
      link(rel='stylesheet', href=`${clientCSS}`)
  body
    header#header(role='banner')
      include header.pug

    main.notLoggedIn
      include menu-left.pug
      div#viewport

        if publicDirectory && (endpoints.users || (endpoints.get && endpoints.get.users))
          #members(hidden).no-sidebar
            include page-directory.pug

        if endpoints.joboffers || (endpoints.get && endpoints.get.joboffers)
          #job-offers(hidden).no-sidebar
            include page-job-offers.pug

        if endpoints.projects || (endpoints.get && endpoints.get.projects)
          #project(hidden).with-sidebar
            include page-project.pug

        if endpoints.circles || (endpoints.get && endpoints.get.circles)
          #circle(hidden).with-sidebar
            include page-circle.pug

        if endpoints.users || (endpoints.get && endpoints.get.users)
          #messages(hidden).with-sidebar
            include page-messages.pug

        if endpoints.events || (endpoints.get && endpoints.get.events)
          #events(hidden)
            include page-events.pug

        #admin(hidden).with-sidebar
          include page-admin.pug