Captain Hook - Web hook server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.3 KiB

<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Captain Hook</title>
<!-- CSS only -->
<link rel="stylesheet" href="" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="/css/common.css">
<link rel="stylesheet" type="text/css" href="/css/index.css">
<div class="main container">
<div class="card w-100">
<div class="card-body">
<div id="header">
<!-- <img src="imgs/hook.jpg" height="50" width="50"> -->
<h1 class="card-title font-weight-bold">Captain Hook</h1>
<h5 class="card-subtitle text-muted">
A webhook server written in Go.
<div class="body">
<h2>Create Hook</h2>
<div class="input-group">
<input class="form-control" type="text" name="create">
<div class="input-group-append">
<button type="submit" class="btn btn-success">Create</button>
{{if . -}}
<h2>Currently available hooks</h2>
<ul class="list-group hooks">
{{range . -}}
<li class="list-group-item ">
<span class="hook-text">{{.Name}}</span>
<button type="submit" class="btn btn-primary" id="modify-{{.Name}}">Modify</button>
<button type="submit" class="btn btn-danger" id="delete-{{.Name}}">Delete</button>
{{- end}}
{{- else}}
<h2>No hooks currently exist</h2>
{{- end}}
<!-- Bootstrap JS -->
<!-- <script src="" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> -->
<!-- <script src="" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> -->
<script src="/js/index.js"></script>