move icon generation logic out of the template
move icon generation logic out of the template

jbicha/server,pixelipo/server,cernbox/core,owncloud/core,andreas-p/nextcloud-server,phil-davis/core,xx621998xx/server,IljaN/core,Ardinis/server,pixelipo/server,Ardinis/server,cernbox/core,IljaN/core,xx621998xx/server,jbicha/server,pixelipo/server,pollopolea/core,nextcloud/server,nextcloud/server,owncloud/core,bluelml/core,endsguy/server,owncloud/core,andreas-p/nextcloud-server,whitekiba/server,pmattern/server,pmattern/server,xx621998xx/server,pmattern/server,endsguy/server,IljaN/core,lrytz/core,pollopolea/core,bluelml/core,IljaN/core,owncloud/core,whitekiba/server,cernbox/core,jbicha/server,sharidas/core,lrytz/core,pollopolea/core,andreas-p/nextcloud-server,sharidas/core,endsguy/server,bluelml/core,cernbox/core,jbicha/server,pmattern/server,michaelletzgus/nextcloud-server,pollopolea/core,bluelml/core,pollopolea/core,nextcloud/server,Ardinis/server,endsguy/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,IljaN/core,jbicha/server,pixelipo/server,endsguy/server,michaelletzgus/nextcloud-server,bluelml/core,owncloud/core,Ardinis/server,pmattern/server,whitekiba/server,xx621998xx/server,xx621998xx/server,michaelletzgus/nextcloud-server,whitekiba/server,lrytz/core,pixelipo/server,michaelletzgus/nextcloud-server,lrytz/core,sharidas/core,sharidas/core,Ardinis/server,lrytz/core,whitekiba/server,cernbox/core,sharidas/core,nextcloud/server