PLT-7: Refactoring frontend (chunk 6)

- Authorize
- Signup Team Confirm
- Footer
Этот коммит содержится в:
Elias Nahum
2016-01-29 13:48:12 -03:00
родитель 5c3fefe1a1
Коммит 6b7438b52f
11 изменённых файлов: 214 добавлений и 70 удалений

Просмотреть файл

@@ -2,24 +2,10 @@
<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 id="authorize">
</div>
<script>
window.setup_authorize_page('{{.Props}}');
window.setup_authorize_page({{.Props}});
</script>
</body>
</html>

Просмотреть файл

@@ -5,10 +5,10 @@
</div>
<div class="col-xs-12">
<span class="pull-right footer-link copyright">© 2015 Mattermost, Inc.</span>
<a id="help_link" class="pull-right footer-link" href="#">Help</a>
<a id="terms_link" class="pull-right footer-link" href="#">Terms</a>
<a id="privacy_link" class="pull-right footer-link" href="#">Privacy</a>
<a id="about_link" class="pull-right footer-link" href="#">About</a>
<a id="help_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterHelp }}</a>
<a id="terms_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterTerms }}</a>
<a id="privacy_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterPrivacy }}</a>
<a id="about_link" class="pull-right footer-link" href="#">{{ .ClientCfg.FooterAbout }}</a>
</div>
</div>
<script>

Просмотреть файл

@@ -7,11 +7,7 @@
<div class="inner__wrap">
<div class="row content">
<div class="col-sm-12">
<div class="signup-team__container">
<h3>Sign up Complete</h3>
<p>Please check your email: {{ .Props.Email }}<br>
Your email contains a link to set up your team</p>
</div>
<div id="signup-team-confirm"></div>
</div>
</div>
<div class="row footer">
@@ -19,6 +15,9 @@
</div>
</div>
</div>
<script>
window.setup_signup_team_confirm_page({{ .Props }});
</script>
</body>
</html>
{{end}}