summaryrefslogtreecommitdiffstats
path: root/web/templates/authorize.html
blob: 430291676581e50c25d5f1c7c310eb069f8b0b68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{define "authorize"}}
<html>
{{template "head" . }}
<body>
    <div class="container-fluid">
        <div class="oauth-prompt">
            <div class="prompt__heading">
                <div class="prompt__app-icon">
                    <img src="/static/images/icon50x50.png" width="50" height="50" alt="">
                </div>
                <div class="text">An application would like to connect to your {{.Props.TeamName}} account.</div>
            </div>
            <p>The app <strong>{{.Props.AppName}}</strong> would like the ability to access Mattermost on your behalf.</p>
            <h2 class="prompt__allow">Allow <strong>{{.Props.AppName}}</strong> access?</h2>
            <div class="prompt__buttons">
                <input type="button" class="btn btn-link" value="Deny">
                <input type="button" class="btn btn-primary" value="Allow">
            </div>
        </div>
    </div>
    <script>
        window.setup_authorize_page('{{.Props}}');
    </script>
</body>
</html>
{{end}}