github.com/greenpau/go-authcrunch@v1.1.4/assets/portal/templates/basic/apps_sso.template (about)

     1  <!DOCTYPE html>
     2  <html lang="en" class="h-full bg-blue-100">
     3    <head>
     4      <title>{{ .MetaTitle }} - {{ .PageTitle }}</title>
     5      <!-- Required meta tags -->
     6      <meta charset="utf-8" />
     7      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
     8      <meta name="description" content="{{ .MetaDescription }}" />
     9      <meta name="author" content="{{ .MetaAuthor }}" />
    10      <link rel="shortcut icon" href="{{ pathjoin .ActionEndpoint "/assets/images/favicon.png" }}" type="image/png" />
    11      <link rel="icon" href="{{ pathjoin .ActionEndpoint "/assets/images/favicon.png" }}" type="image/png" />
    12      <link rel="stylesheet" href="{{ pathjoin .ActionEndpoint "/assets/google-webfonts/roboto.css" }}" />
    13      <link rel="stylesheet" href="{{ pathjoin .ActionEndpoint "/assets/line-awesome/line-awesome.css" }}" />
    14      <link rel="stylesheet" href="{{ pathjoin .ActionEndpoint "/assets/css/apps_sso.css" }}" />
    15      {{ if eq .Data.ui_options.custom_css_required "yes" }}
    16        <link rel="stylesheet" href="{{ pathjoin .ActionEndpoint "/assets/css/custom.css" }}" />
    17      {{ end }}
    18    </head>
    19  
    20    <body class="h-full">
    21      <div class="app-page">
    22        <div class="app-content">
    23          <div class="app-container">
    24            <div class="logo-col-box justify-center">
    25              {{ if .LogoURL }}
    26                <div>
    27                  <img class="logo-img" src="{{ .LogoURL }}" alt="{{ .LogoDescription }}" />
    28                </div>
    29              {{ end }}
    30              <div>
    31                <h2 class="logo-col-txt">{{ .PageTitle }}</h2>
    32              </div>
    33            </div>
    34  
    35            {{ if gt .Data.role_count 0 }}
    36              <div class="pb-4 pt-4">
    37                <p class="app-inp-lbl">Assume any of the following roles on the associated AWS accounts by clicking the name of the role.</p>
    38              </div>
    39  
    40              <div class="flex flex-col">
    41                <div class="-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8">
    42                  <div class="inline-block min-w-full py-2 align-middle md:px-6 lg:px-8">
    43                    <table class="min-w-full divide-y divide-gray-300">
    44                      <thead>
    45                        <tr>
    46                          <th scope="col" class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-primary-700 sm:pl-6 md:pl-0">Role Name</th>
    47                          <th scope="col" class="py-3.5 px-3 text-left text-sm font-semibold text-primary-700">Account ID</th>
    48                        </tr>
    49                      </thead>
    50                      <tbody class="divide-y divide-gray-200">
    51                        {{ range .Data.roles }}
    52                          <tr>
    53                            <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-primary-700 sm:pl-6 md:pl-0 leading-none">
    54                              <a href="{{ pathjoin $.ActionEndpoint "/apps/sso" .ProviderName "assume" .AccountID .Name }}">{{ brsplitline .Name }}</a>
    55                            </td>
    56                            <td class="whitespace-nowrap py-4 px-3 text-sm text-primary-500">{{ .AccountID }}</td>
    57                          </tr>
    58                        {{ end }}
    59                      </tbody>
    60                    </table>
    61                  </div>
    62                </div>
    63              </div>
    64            {{ else }}
    65              <div class="pb-4 pt-4">
    66                <p class="app-inp-lbl">Your user identity has no roles associated with AWS accounts.</p>
    67              </div>
    68            {{ end }}
    69  
    70  
    71            <div class="flex flex-wrap {{ if gt .Data.role_count 0 }}pt-6{{ end }} justify-center gap-4">
    72              <div id="forgot_username_link">
    73                <a class="text-primary-600" href="{{ pathjoin .ActionEndpoint "/portal" }}">
    74                  <i class="las la-layer-group"></i>
    75                  <span class="text-lg">Portal</span>
    76                </a>
    77              </div>
    78              <div id="contact_support_link">
    79                <a class="text-primary-600" href="{{ pathjoin .ActionEndpoint "/logout" }}">
    80                  <i class="las la-times-circle"></i>
    81                  <span class="text-lg">Sign Out</span>
    82                </a>
    83              </div>
    84            </div>
    85          </div>
    86        </div>
    87      </div>
    88      <!-- JavaScript -->
    89      <script src="{{ pathjoin .ActionEndpoint "/assets/js/apps_sso.js" }}"></script>
    90      {{ if eq .Data.ui_options.custom_js_required "yes" }}
    91        <script src="{{ pathjoin .ActionEndpoint "/assets/js/custom.js" }}"></script>
    92      {{ end }}
    93    </body>
    94  </html>