diff --git a/html/configure.html b/html/configure.html index 4b258cc..e33e544 100644 --- a/html/configure.html +++ b/html/configure.html @@ -6,50 +6,60 @@ - + + - -

This page is under construction

- - - - - - + + + + + + diff --git a/html/css/buttons.css b/html/css/buttons.css deleted file mode 100644 index e69de29..0000000 diff --git a/html/css/common.css b/html/css/common.css new file mode 100644 index 0000000..022b746 --- /dev/null +++ b/html/css/common.css @@ -0,0 +1,38 @@ +html, +body { + margin: 0; + padding: 0; + height: 100%; + background-color: #252525; +} + +.main { + min-height: 100%; + width: 100%; + display: flex; +} + +.main .card-title { + padding-bottom: 5vh; + background-color: #e0e0e0; +} + +.main .card-body { + padding: 7vh 5vw; + background-color: #e0e0e0; +} + +.main #header { + margin-bottom: 3rem; +} + +.main h2 { + font-size: 1.25rem; + font-weight: bold; + margin-top: 2.5rem; + margin-bottom: 0vh; +} + +.main button { + border: none; +} diff --git a/html/css/configure.css b/html/css/configure.css new file mode 100644 index 0000000..4f6b33f --- /dev/null +++ b/html/css/configure.css @@ -0,0 +1,3 @@ +.dropdown-toggle { + text-transform: uppercase; +} \ No newline at end of file diff --git a/html/css/index.css b/html/css/index.css index 00498ea..bdb2c8d 100644 --- a/html/css/index.css +++ b/html/css/index.css @@ -1,44 +1,8 @@ -html, -body { - margin: 0; - padding: 0; - height: 100%; - background-color: #252525; -} - -.main { - min-height: 100%; - width: 100%; - display: flex; -} - -.main .card-title { - padding-bottom: 5vh; - background-color: #e0e0e0; -} - -.main .card-body { - padding: 7vh 5vw; - background-color: #e0e0e0; -} - -.main #header { - margin-bottom: 3rem; -} - -.main h2 { - font-size: 1.25rem; - font-weight: bold; - margin-top: 2.5rem; - margin-bottom: 2vh; -} - .main button { width: 100px; font-size: 1.3remd; text-transform: uppercase; color: white; - border: none; } .hooks .list-group-item { diff --git a/html/imgs/hook.jpg b/html/imgs/hook.jpg new file mode 100644 index 0000000..c3ff530 Binary files /dev/null and b/html/imgs/hook.jpg differ diff --git a/html/index.html b/html/index.html index 297a718..d859b0a 100644 --- a/html/index.html +++ b/html/index.html @@ -6,6 +6,7 @@ + @@ -13,32 +14,35 @@
-

Create Hook

-
- -
- +
+

Create Hook

+
+ +
+ +
-
- {{if . -}} -

Currently available hooks

-
    - {{range . -}} -
  • - {{.Name}} - - -
  • + {{if . -}} +

    Currently available hooks

    +
      + {{range . -}} +
    • + {{.Name}} + + +
    • + {{- end}} +
    + {{- else}} +

    No hooks currently exist

    {{- end}} -
- {{- else}} -

No hooks currently exist

- {{- end}} +
diff --git a/src/server.go b/src/server.go index 1e4d36c..7bcd08b 100644 --- a/src/server.go +++ b/src/server.go @@ -133,7 +133,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) { // Hook name name := r.URL.String()[len("/hook/"):] nameSplit := strings.Split(name, "/") - name = nameSplit[0] + name = strings.ToLower(nameSplit[0]) switch r.Method { // Handle the hook