refactor(sharing view): use index instead of template variable

Refactor sharing view to use index class variable instead of tempalte to
make customization possible with ZCML. Without this you need to use jbot.