/hudson-core/src/main/resources/hudson/model/Hudson/accessDenied.jelly

http://github.com/hudson/hudson · Unknown · 59 lines · 53 code · 6 blank · 0 comment · 0 complexity · 5ba4491973ad1dbd20ce9040d515863f MD5 · raw file

  1. <!--
  2. The MIT License
  3. Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
  4. Permission is hereby granted, free of charge, to any person obtaining a copy
  5. of this software and associated documentation files (the "Software"), to deal
  6. in the Software without restriction, including without limitation the rights
  7. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the Software is
  9. furnished to do so, subject to the following conditions:
  10. The above copyright notice and this permission notice shall be included in
  11. all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  15. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  16. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  17. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  18. THE SOFTWARE.
  19. -->
  20. <?jelly escape-by-default='true'?>
  21. <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
  22. <l:layout norefresh="true">
  23. <!-- don't include sidepanel.jelly, which could reveal information -->
  24. <l:header title="${%Hudson Login}" />
  25. <l:side-panel />
  26. <l:main-panel>
  27. <h1>${%Access Denied}</h1>
  28. <!-- TODO: message is not human readable. define a subclass -->
  29. <p class="error"><st:out value="${exception.message}"/></p>
  30. <j:if test="${h.isAnonymous()}">
  31. <div style="margin: 2em;">
  32. <!-- login form -->
  33. <form action="j_security_check" method="post" style="text-size:smaller">
  34. <table>
  35. <tr>
  36. <td>${%User}:</td>
  37. <td><input type="text" name="j_username" id="j_username" /></td>
  38. </tr>
  39. <tr>
  40. <td>${%Password}:</td>
  41. <td><input type="password" name="j_password" /></td>
  42. </tr>
  43. </table>
  44. <f:submit value="${%login}" />
  45. <script>
  46. $('j_username').focus();
  47. </script>
  48. </form>
  49. </div>
  50. </j:if>
  51. </l:main-panel>
  52. </l:layout>
  53. </j:jelly>