Skip to content

Commit

Permalink
[RJA-1898][feature] additional hypermedia links
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Bagmanov committed Mar 20, 2013
1 parent cdb1f1f commit 872fd5d
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -29,7 +29,11 @@ class RootController {

val links: Seq[Link] =
collectLinks(classOf[ProjectsController], classOf[Project], LinkTarget.COLLECTION) ++
(if (isAdminOrReadOnly) collectLinks(classOf[SettingsController], classOf[SystemSettings], LinkTarget.COLLECTION) else Seq()) ++
(if (isAdminOrReadOnly)
collectLinks(classOf[SettingsController], classOf[SystemSettings], LinkTarget.COLLECTION) ++
Seq(LinkBuilder(HrefBuilder.absolutePath("rest/jobs-stat"), LinkTarget.COLLECTION, RequestMethod.GET))
else
Seq()) ++
(if (!isLogoutDisabled) Seq(LinkBuilder(HrefBuilder.absolutePath("logout"), LinkTarget.LOGOUT, RequestMethod.GET)) else Seq())

Map(
Expand Down

0 comments on commit 872fd5d

Please sign in to comment.