blob: 5b43466e8848d31d61346b5ee3e9bd1de5605f69 [file] [log] [blame]
##Licensed to the Apache Software Foundation (ASF) under one or more
##contributor license agreements. See the NOTICE file distributed with
##this work for additional information regarding copyright ownership.
##The ASF licenses this file to You under the Apache License, Version 2.0
##(the "License"); you may not use this file except in compliance with
##the License. You may obtain a copy of the License at
##
##http://www.apache.org/licenses/LICENSE-2.0
##
##Unless required by applicable law or agreed to in writing, software
##distributed under the License is distributed on an "AS IS" BASIS,
##WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
##See the License for the specific language governing permissions and
##limitations under the License.
#set($layout = "/templates/governance/layout/default.vm")
<div class="ico_btn">
<a href="../routes"><img src="$rootContextPath.getURI("images/ico_back.png")" width="12" height="12"/><span
class="ico_font">#springMessageText("back", "back")</span></a>
<span class="ico_line">|</span>
<a href="$route.id/routeselect"><img src="$rootContextPath.getURI("images/ico_show.png")" width="12"
height="12"/><span class="ico_font">#springMessageText("proview", "proview")</span></a>
#if($currentUser.role != "G")
<span class="ico_line">|</span>
<a href="$route.id/edit"><img src="$rootContextPath.getURI("images/ico_edit.png")" width="12" height="12"/><span
class="ico_font">#springMessageText("edit", "edit")</span></a>
<span class="ico_line">|</span>
<a href="$route.id/edit?actionflag=copy"><img src="$rootContextPath.getURI("images/ico_register.png")"
width="12" height="12"/><span class="ico_font">#springMessageText(
"copy","copy")</span></a>
<span class="ico_line">|</span>
#if($route.enabled)
<a href="#"
onclick="showConfirm('#springMessageText("confirm.disable", "confirm.disable")', '$route.name', '$route.id/disable'); return false;">
<img src="$rootContextPath.getURI("images/ico_disable.png")" width="13" height="13"/>
<span class="ico_font">#springMessageText("disable", "disable")</span></a>
#else
<a href="#"
onclick="showConfirm('#springMessageText("confirm.enable", "confirm.enable")', '$route.name', '$route.id/enable'); return false;">
<img src="$rootContextPath.getURI("images/ico_enable.png")" width="13" height="13"/>
<span class="ico_font">#springMessageText("enable", "enable")</span></a>
#end
<span class="ico_line">|</span>
<a href="#"
onclick="showConfirm('#springMessageText("confirm.delete", "confirm.delete")', '$route.name', '$route.id/delete'); return false;">
<img src="$rootContextPath.getURI("images/ico_delete.png")" width="12" height="12"/>
<span class="ico_font">#springMessageText("delete", "delete")</span></a>
#end
</div>
<br/>
<table cellpadding="0" cellspacing="0" class="info">
#if(! $service)
<tr>
<th style="width: 100px;">#springMessageText("service", "service"):</th>
<td>$!route.service</td>
</tr>
#end
<tr>
<th style="width: 100px;">#springMessageText("route.name", "route.name"):</th>
<td>$!route.name</td>
</tr>
<tr>
<th style="width: 100px;">#springMessageText("rule.match","rule.match"):</th>
<td>$!route.matchRule</td>
</tr>
<tr>
<th>#springMessageText("rule.filtrate","rule.filtrate"):</th>
<td>$!route.filterRule</td>
</tr>
<tr>
<th>#springMessageText("Priority", "Priority"):</th>
<td>$!route.priority</td>
</tr>
<tr>
<th>#springMessageText("Username", "Username"):</th>
<td>$!route.username</td>
</tr>
<tr>
<th>#springMessageText("created", "created"):</th>
<td>$tool.formatDate($!route.created)</td>
</tr>
<tr>
<th>#springMessageText("modified", "modified"):</th>
<td>$tool.formatDate($!route.modified)</td>
</tr>
<tr>
<th>#springMessageText("status", "status"):</th>
<td>
#if($route.enabled)
<font color="green">#springMessageText("enabled", "enabled")</font>
#else
<font color="red">#springMessageText("disabled", "disabled")</font>
#end
</td>
</tr>
</table>