<% File.viewlink %>
macro rendering a link to view the file

Sourcecode in File/macros.js:
1:   function viewlink_macro(param) {
2:      if (session.user) {
3:         param.to = "getfile"
4:         param.urlparam = "name=" + escape(this.alias);
5:         param.title = encodeForm(this.description);
6:         Html.openTag("a", this.site.createLinkParam(param));
7:         res.write(param.text ? param.text : getMessage("generic.view"));
8:         Html.closeTag("a");
9:      }
10:     return;
11:  }