NIHVIVO-650 Removed url directive from template data model, and replaced with path to the images directory.
This commit is contained in:
parent
72d43f05a5
commit
e2407f7b01
2 changed files with 3 additions and 2 deletions
|
@ -391,6 +391,7 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
|
||||||
urls.put("siteAdmin", urlBuilder.getPortalUrl(Route.LOGIN));
|
urls.put("siteAdmin", urlBuilder.getPortalUrl(Route.LOGIN));
|
||||||
|
|
||||||
urls.put("siteIcons", urlBuilder.getPortalUrl(themeDir + "/site_icons"));
|
urls.put("siteIcons", urlBuilder.getPortalUrl(themeDir + "/site_icons"));
|
||||||
|
urls.put("images", urlBuilder.getUrl("/images"));
|
||||||
|
|
||||||
return urls;
|
return urls;
|
||||||
}
|
}
|
||||||
|
@ -431,7 +432,7 @@ public class FreemarkerHttpServlet extends VitroHttpServlet {
|
||||||
map.put("dump", new edu.cornell.mannlib.vitro.webapp.web.directives.dump.DumpDirective());
|
map.put("dump", new edu.cornell.mannlib.vitro.webapp.web.directives.dump.DumpDirective());
|
||||||
map.put("dumpAll", new edu.cornell.mannlib.vitro.webapp.web.directives.dump.DumpAllDirective());
|
map.put("dumpAll", new edu.cornell.mannlib.vitro.webapp.web.directives.dump.DumpAllDirective());
|
||||||
map.put("help", new edu.cornell.mannlib.vitro.webapp.web.directives.dump.HelpDirective());
|
map.put("help", new edu.cornell.mannlib.vitro.webapp.web.directives.dump.HelpDirective());
|
||||||
map.put("url", new edu.cornell.mannlib.vitro.webapp.web.directives.UrlDirective());
|
//map.put("url", new edu.cornell.mannlib.vitro.webapp.web.directives.UrlDirective());
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</@p.dataPropsWrapper>
|
</@p.dataPropsWrapper>
|
||||||
<#elseif individual.person>
|
<#elseif individual.person>
|
||||||
<@p.dataPropsWrapper id="thumbnail">
|
<@p.dataPropsWrapper id="thumbnail">
|
||||||
<img src="<@url path='/images/dummyImages/person.thumbnail.jpg' />" "
|
<img src="${urls.images}/dummyImages/person.thumbnail.jpg"
|
||||||
alt="placeholder image" width="115" />
|
alt="placeholder image" width="115" />
|
||||||
</@p.dataPropsWrapper>
|
</@p.dataPropsWrapper>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue