     else
         action = <billing.BillingPageLink text="buy a course subscription" />
     is_student = account_id == course_info.get('account_id') or email_address == course_info.get('email_address')
+    {salvus_client} = require('./salvus_client')
     if pay > salvus_client.server_time()  # in the future
         if is_student
             deadline  = <span>Your instructor requires you to {action} within <TimeAgo date={pay}/>.</span>


async = require('async')

{salvus_client} = require('./salvus_client')

{React, ReactDOM, rclass, rtypes, is_redux, is_redux_actions} = require('./smc-react')
{Alert, Button, ButtonToolbar, Col, Input, OverlayTrigger, Popover, Tooltip, Row, Well} = require('react-bootstrap')

exports.course_warning = (pay) ->
    if not pay
        return false
    {salvus_client} = require('./salvus_client')
    return salvus_client.server_time() <= misc.months_before(-3, pay)  # require subscription until 3 months after start (an estimate for when class ended, and less than when what student did pay for will have expired).

project_warning_opts = (opts) ->
