gnunet-gns-registrar

GNU Name System registrar
Log | Files | Refs | README

commit 2496073b913bf901808d1080bd000401e77fa975
parent b83a3745eb98ccab02977657d405e6de1e26459d
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Wed,  6 Dec 2023 20:44:57 +0100

Layout

Diffstat:
Mweb/templates/name.html | 18+++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/web/templates/name.html b/web/templates/name.html @@ -31,7 +31,7 @@ <h1 class="mb-5"><i class="text-primary">{{.label}}</i> is still <span class="text-success">available</span> for registration.</h1> <form action="/name/{{.label}}/buy" method="get" class="align-items-center"> <div class="row"> - <div class="col-lg-8 offset-lg-2"> + <div class="col-lg-12"> <div class="input-group mb-2"> <span class="input-group-text" id="reg-prefix"><i class="text-primary">{{.label}}</i>.<i class="text-secondary">{{.suffixHint}}</i>: </span> <input name="zkey" class="form-control form-control-lg" maxlength="63" type="text" placeholder="Enter your zone key here!" required autofocus> @@ -41,11 +41,19 @@ </div> </form> {{else}} - <h1 class="mb-5"><i class="text-primary">{{.label}}</i> is already <span class="text-danger">reserved</span>!</h1> + {{if eq .registeredUntil ""}} + <h1 class="mb-5"><i class="text-primary">{{.label}}</i> is already <span class="text-secondary">reserved</span>!</h1> + {{else}} + <h1 class="mb-5"><i class="text-primary">{{.label}}</i> is already <span class="text-danger">registered</span>!</h1> + {{end}} <form action="/name/{{.label}}/renew" method="get" class="align-items-center"> - <div class="input-group mb-2 w-75"> - <span class="input-group-text" id="reg-prefix"><i class="text-primary">{{.label}}</i>.<i class="text-secondary">{{.suffixHint}}</i>: </span> - <input name="label" disabled="{{.modificationAllowed}}" class="form-control form-control-lg" maxlength="63" type="text" placeholder="Enter your zone key here!" value="{{.currentValue}}" required autofocus> + <div class="row"> + <div class="col-lg-12"> + <div class="input-group mb-2 w-75"> + <span class="input-group-text" id="reg-prefix"><i class="text-primary">{{.label}}</i>.<i class="text-secondary">{{.suffixHint}}</i>: </span> + <input name="label" disabled="{{.modificationAllowed}}" class="form-control form-control-lg" maxlength="63" type="text" placeholder="Enter your zone key here!" value="{{.currentValue}}" required autofocus> + </div> + </div> </div> </form> {{if ne .registeredUntil ""}}