Modified: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm?rev=406895&r1=406894&r2=406895&view=diff ============================================================================== --- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm (original) +++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/View.vm Tue May 16 03:26:59 2006 @@ -1,4 +1,4 @@ -$page.setTitle( "Continuum - Project View: ${item.name}" ) +$page.setTitle( "Continuum - Project View: Continuum Web" ) #if ( $data.user ) #set ( $c1user = $continuum.getUser( $data.user.userId ) ) @@ -10,12 +10,14 @@ #if ( $continuum.security.isAuthorized( $c1user, "showProject" ) )
- Info +
+ Info #set ( $buildsLink = $link.setPage('ProjectBuilds.vm').addPathInfo('view', "ProjectBuilds").addPathInfo('id', $item.id) ) - Builds - #set ( $workingCopy = $link.setPage('WorkingCopy.vm').addPathInfo('view', "WorkingCopy").addPathInfo('id', $item.id) ) - Working Copy + Builds + #if ( $item.state == 10 || $item.state == 2 || $item.state == 3 || $item.state == 4 || $item.state == 6 ) + #set ( $workingCopy = $link.setPage('WorkingCopy.vm').addPathInfo('view', "WorkingCopy").addPathInfo('id', $item.id) ) + Working Copy + #end
| $i18n.getString( "project.name.label" ) | $item.name | @@ -41,33 +44,41 @@$i18n.getString( "project.group.label" ) | $item.projectGroup.name |
|---|
| Goals | -Arguments | -POM File | -Profile | -Schedule | -From | -+ | Goals | +Arguments | +POM File | +Profile | +Schedule | +From | +|||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Project | -+ |
+ #if ( $continuum.security.isAuthorized( $c1user, "buildProject" ) )
+ #set ( $buildNowLink = $link.addPathInfo('action', 'cam').addPathInfo('cid','buildProjectWithBuildDefinition').addPathInfo('id', $item.id).addPathInfo('buildDefinitionId', $buildDefinition.id) )
+ |
+
#if ( $continuum.security.isAuthorized( $c1user, "editBuildDefinition" ) )
- #set ( $buildDefinitionLink = $link.setPage('BuildDefinition.vm').addPathInfo('view','BuildDefinition').addPathInfo('buildDefinitionId', $buildDefinition.id).addPathInfo('id', $item.id) )
- Edit |
+ #set ( $buildDefinitionLink = $link.setPage('BuildDefinition.vm').addPathInfo('view','BuildDefinition').addPathInfo('buildDefinitionId', $buildDefinition.id).addPathInfo('id', $item.id) )
+ |
+
#if ( $continuum.security.isAuthorized( $c1user, "deleteBuildDefinition" ) )
- #set ( $deleteBuildDefinitionLink = $link.setPage('DeleteBuildDefinition.vm').addPathInfo('buildDefinitionId', $buildDefinition.id).addPathInfo('id', $item.id).addPathInfo('executorId', $item.executorId) )
- Delete
+ #set ( $deleteBuildDefinitionLink = $link.setPage('DeleteBuildDefinition.vm').addPathInfo('buildDefinitionId', $buildDefinition.id).addPathInfo('id', $item.id).addPathInfo('executorId', $item.executorId) )
+ |
|||||||||||
| Type | -Recipient | -Events | -From | -+ | Type | +Recipient | +Events | +From | +||
|---|---|---|---|---|---|---|---|---|---|---|
| - #if ( $notifier.isFromUser() ) + #if ( $notifier.isFromUser() ) + |
#if ( $continuum.security.isAuthorized( $c1user, "editNotifier" ) )
#if ( $notifier.type == "irc" )
#set ( $editNotifierLink = $link.setPage('EditIrcNotifier.vm').addPathInfo('view','EditIrcNotifier').addPathInfo('notifierId', $notifier.id).addPathInfo('id', $item.id).addPathInfo('executorId', $item.executorId) )
- Edit
+ |
+
#if ( $continuum.security.isAuthorized( $c1user, "deleteNotifier" ) )
#set ( $deleteNotifierLink = $link.setPage('DeleteNotifier.vm').addPathInfo('notifierId', $notifier.id).addPathInfo('id', $item.id).addPathInfo('executorId', $item.executorId) )
- | Delete
+ |
+
+ #else
+ + #end | |||||||
| Name | $!{dependency.groupId}:$!{dependency.artifactId}:$!{dependency.version} | #end +
|---|
| Name |
|---|
| IRC Host | $notifier.configuration.host | @@ -17,6 +18,7 @@IRC Channel | $notifier.configuration.channel |
|---|