Skip to content

Commit

Permalink
#109 closed: "Links to public profiles doesn't work"
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 3, 2011
1 parent 5653418 commit a6f52c1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/scala/scala/tools/colladoc/model/mapper/User.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,25 @@ class User extends ProtoUser[User] with OneToMany[Long, User] {

def deleted_? = deleted.is == true



/** User comment changes. */
object comments extends MappedOneToMany(Comment, Comment.user)

/** Url to user's profile. */
def profileUrl = "profile/" + urlEncode(userName)
def profileUrl = "/profile/" + urlEncode(userName)

/** Hyperlink to user's profile. */
def profileHyperlink = <a target="template" href={profileUrl}>{userName}</a>

/** Non absolute url to user's profile. */
private def profileUrlLocal = "profile/" + urlEncode(userName)

/** Non absolute hyperlink to user's profile. */
private def profileHyperlinkLocal = <a target="template" href={profileUrlLocal}>{userName}</a>

/** Grid entry. */
def toGridRow =
<row id={id.toString}>
<cell>{profileHyperlink.toString}</cell>
<cell>{profileHyperlinkLocal.toString}</cell>
</row>
}

Expand Down

0 comments on commit a6f52c1

Please sign in to comment.