/modules/mod_oauth/templates/oauth_authorize.tpl

https://code.google.com/p/zotonic/ · Smarty Template · 35 lines · 25 code · 10 blank · 0 comment · 3 complexity · acce7adfc8573c95695bd2a199bfb6e5 MD5 · raw file

  1. {% extends "base.tpl" %}
  2. {% block title %}{_ Authorize this request _}{% endblock %}
  3. {% block content %}
  4. <div id="content" class="zp-100">
  5. <h1>{_ Allow _} {{ token.application_title|default:_"Untitled" }}?</h1>
  6. <p>{_ The application _} <em>{{ token.application_title|default:_"Untitled" }}</em> {_ wants to access your account. _}</p>
  7. {% if token.application_descr %}
  8. <p>{{ token.application_descr }}</p>
  9. {% endif %}
  10. {% if token.application_uri %}
  11. <p><a href="{{ token.application_uri }}">{_ More information about this program _}</a></p>
  12. {% endif %}
  13. <p>{_ This application wants access to the following services: _}</p>
  14. <ul>
  15. {% for perm in m.oauth_perms.humanreadable[token.application_id] %}
  16. <li>{{ perm.desc }}</li>
  17. {% endfor %}
  18. </ul>
  19. <!-- FIXME: Show information about how this application will use your account. -->
  20. <form method="post">
  21. <button type="submit">{_ Allow! _}</button>
  22. <button type="reset">{_ Disallow _}</button>
  23. </form>
  24. </div>
  25. {% endblock %}