extends ../layouts/base

block content
    if !sermon
        h2 Invalid Sermon
    else
        h3 
            a(href='/') DOWNLOADS : Sermons : 
            a(href=sermon.audio.url)
                =sermon.title
        a(href=sermon.presentation.url).sermonImg
            if sermon.presentation.exists
                img(src=sermon._.presentation.thumbnail(200).replace('.pdf', '.png'))
            else
                img(src='http://sermons.mottramec.co.uk/nopdf.gif')

        #sermonDetail
            a(href='filter.php?Preacher=Martyn Cooling') 
                =sermon.speaker.name.full
            br
            if sermon.series
                | Series: 
                a(href='filter.php?series=Needs+detail')
                    =sermon.series.name
                br
            br
            | Visual:
            if sermon.presentation.exists
                a(href=sermon.presentation.url) PDF
            else
                | Audio only
            br
            | Audio:
            a(href=sermon.audio.url) MP3 
            | Right click and select "save
            | link as" to download.
            br
            br
            audio(src=sermon.audio.url, controls='', preload='')
            br
            br
            | Date: 
            =sermon._.date.format('DD/MM/YYYY')
            br
            br
            p

extends ../layouts/base

block content
    if !sermon
        h2 Invalid Sermon
    else
        h3 
            a(href='/') DOWNLOADS : Sermons : 
            a(href=sermon.audio.url)
                =sermon.title
        if sermon.presentation.exists
            a(href=sermon.presentation.url).sermonImg
                img(src=sermon._.presentation.fit(200, 113).replace('.pdf', '.png'))
        else
            img(src='http://sermons.mottramec.co.uk/nopdf.gif')

        #sermonDetail
            a(href='filter.php?Preacher=Martyn Cooling') 
                =sermon.speaker.name.full
            br
            if sermon.series
                | Series: 
                a(href='filter.php?series=Needs+detail')
                    =sermon.series.name
                br
            br
            | Visual:
            if sermon.presentation.exists
                a(href=sermon.presentation.url) PDF
            else
                | Audio only
            br
            | Audio:
            a(href=sermon.audio.url) MP3 
            | Right click and select "save
            | link as" to download.
            br
            if (sermon.studyNotes.exists)
                | Sermon Notes:
                a(href=sermon.studyNotes.url) PDF
                br
            br
            audio(src=sermon.audio.url, controls='', preload='')
            br
            br
            | Date: 
            =sermon._.date.format('DD/MM/YYYY')
            br
            br
            p

Add StudyNotes to jade template if exists. Change cloudinary use for presentation to be common
Add StudyNotes to jade template if exists. Change cloudinary use for presentation to be common
