Should there also be a test for this, to look for links to css, js and image files that are not being prefixed. To make sure future code additions/changes use the correct format?
When I search through all the files in the templates/opac for lines that include an image file, but don't include the ctx.cache_key I get a few hits.
Should there also be a test for this, to look for links to css, js and image files that are not being prefixed. To make sure future code additions/changes use the correct format?
When I search through all the files in the templates/opac for lines that include an image file, but don't include the ctx.cache_key I get a few hits.
# egrep -r '\.(gif|png)' | fgrep -v ctx.cache_key messages/ list.tt2: src="[% ctx.media_prefix %]/images/ question- mark.png" /></a>
myopac/
parts/ebook_ api/base_ js.tt2: progress_ icon = '<img id="ebook_ avail_spinner" src="/opac/ images/ progressbar_ green.gif" alt="' _ l("Checking availability for this item...") _ '"/>'
parts/advanced/ search. tt2: <img id='search- submit- spinner' src='/opac/ images/ progressbar_ green.gif'
parts/record/ refworks. tt2: <a href="[% rw_uri %]" rel="nofollow" vocab=""><img src="/images/ starz.png" alt="" />[% l('Export to RefWorks') %]</a>