Added start of Muldap web service
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
11
templates/index.html
Normal file
11
templates/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ template "layout/header" . }}
|
||||
|
||||
<p>This is a test.</p>
|
||||
|
||||
<ul>
|
||||
{{ range .results.Entries }}
|
||||
<li><a href="/user/{{ .GetAttributeValue "uid" }}">{{ .GetAttributeValue "displayName" }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ template "layout/footer" . }}
|
2
templates/layout/footer.html
Normal file
2
templates/layout/footer.html
Normal file
@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
10
templates/layout/header.html
Normal file
10
templates/layout/header.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ .title }} | Muldap Web</title>
|
||||
<link rel="stylesheet" href="/css/dustdevil.css">
|
||||
</head>
|
||||
<body>
|
10
templates/user/info.html
Normal file
10
templates/user/info.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{ template "layout/header" . }}
|
||||
|
||||
<h1>{{ .user.GetAttributeValue "displayName" }}</h1>
|
||||
|
||||
<p>First name: {{ .user.GetAttributeValue "givenName" }}</p>
|
||||
<p>Last name: {{ .user.GetAttributeValue "sn" }}</p>
|
||||
<p>User ID: {{ .user.GetAttributeValue "uid" }}</p>
|
||||
<p>Email address: {{ .user.GetAttributeValue "mail" }}</p>
|
||||
|
||||
{{ template "layout/footer" . }}
|
Reference in New Issue
Block a user