openmrs/openmrs-contrib-id

View on GitHub
templates/mixins/sidebar.pug

Summary

Maintainability
Test Coverage
//- content, is a array includes the names of items you want to displayed
mixin sidebar(content)
  if _.includes(content, 'needhelp')
    div.sidebarItem
      h2 Need help?
      p If you're having problems accessing or using the OpenMRS Community, please <a href="http://om.rs/helpdesk">open a support with our Help Desk</a>. <strong>Make sure to include your contact info</strong> so that we can respond to your request.

  if _.includes(content, 'crowd')
    div.sidebarItem
      h2 Looking for Crowd?
      p Atlassian Crowd is still available to administrators, although the ID dashboard has replaced it for end user self-service. It can be accessed at <a href="//id.openmrs.org/crowd" target="_blank">https://id.openmrs.org/crowd</a>.

  if _.includes(content, 'id-whatis')
    div.sidebarItem
      h2 What is OpenMRS ID?
      p OpenMRS ID is your key to participating in our open source community. You can use it for most of our tools and services, including those listed in the links at the top of this page.

  //- Add more items with the syntax above