summaryrefslogtreecommitdiff
path: root/src/medsrv/templates/peer/list.cs
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2008-07-10 12:47:56 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2008-07-10 12:47:56 +0000
commiteb841c5ef668a48782ef1154fda65cb6048f5885 (patch)
tree00dd0cb4313bf2291d94ed511fe51f0b4bc7ea7a /src/medsrv/templates/peer/list.cs
parent738206039047924ae7e4762a53d121be1ca43000 (diff)
downloadvyos-strongswan-eb841c5ef668a48782ef1154fda65cb6048f5885.tar.gz
vyos-strongswan-eb841c5ef668a48782ef1154fda65cb6048f5885.zip
- Updated to new upstream.
Diffstat (limited to 'src/medsrv/templates/peer/list.cs')
-rwxr-xr-xsrc/medsrv/templates/peer/list.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/medsrv/templates/peer/list.cs b/src/medsrv/templates/peer/list.cs
new file mode 100755
index 000000000..205452641
--- /dev/null
+++ b/src/medsrv/templates/peer/list.cs
@@ -0,0 +1,28 @@
+<?cs include:"templates/header.cs" ?>
+<div>
+<?cs if subcount(peers) > 0 ?>
+<table class="list">
+ <tr>
+ <th>Alias</th>
+ <th>Key Identifier</th>
+ </tr>
+<?cs each:peer = peers ?>
+ <tr>
+ <td>
+ <a href="<?cs var:base ?>/peer/edit/<?cs name:peer?>"><?cs var:peer.alias ?></a>
+ </td>
+ <td>
+ <a href="<?cs var:base ?>/peer/edit/<?cs name:peer?>"><?cs var:peer.identifier ?></a>
+ </td>
+ </tr>
+<?cs /each ?>
+</table>
+<?cs else ?>
+No peers defined.
+<?cs /if ?>
+<div class="right">
+<form action="<?cs var:base ?>/peer/add" method="get">
+ <input type="submit" value="Add Peer"/></td>
+</form>
+</div>
+<?cs include:"templates/footer.cs" ?>