<% Story.viewlink %>
macro renders a link to the story

Sourcecode in Story/macros.js:
1:   function viewlink_macro(param) {
2:      if (session.user) {
3:         try {
4:            this.checkView(session.user, req.data.memberlevel);
5:         } catch (deny) {
6:            return;
7:         }
8:         Html.openLink({href: this.href()});
9:         if (param.image && this.site.images.get(param.image))
10:           this.site.renderImage(this.site.images.get(param.image), param);
11:        else
12:           res.write(param.text ? param.text : "view");
13:        Html.closeLink();
14:     }
15:     return;
16:  }