/bedrock/mozorg/templates/mozorg/mpl/headers/index.html

https://github.com/mozilla/bedrock · HTML · 65 lines · 59 code · 6 blank · 0 comment · 0 complexity · b2b33c23344dd59ea5a7a85ca0d53eb2 MD5 · raw file

  1. {#
  2. This Source Code Form is subject to the terms of the Mozilla Public
  3. License, v. 2.0. If a copy of the MPL was not distributed with this
  4. file, You can obtain one at https://mozilla.org/MPL/2.0/.
  5. #}
  6. {% extends "mozorg/base.html" %}
  7. {% block page_title %}Mozilla License Headers{% endblock %}
  8. {% block page_desc %}Mozilla License Headers{% endblock %}
  9. {% block article %}
  10. <h1 class="mzp-c-article-title">Mozilla License Headers</h1>
  11. <section>
  12. <p>This page gives copy-and-pasteable license headers for Mozilla code. When adding license headers to new files to be checked in to the Mozilla source tree, always use the appropriate one of the following.</p>
  13. <h2>MPL 2</h2>
  14. <p>This license must be used for all new code, unless the containing project, module or externally-imported codebase uses a different license. If you can't put a header in the file due to its structure, please put it in a LICENSE file in the same directory.</p>
  15. <pre id="mpl-c">
  16. /*
  17. * This Source Code Form is subject to the terms of the Mozilla Public
  18. * License, v. 2.0. If a copy of the MPL was not distributed with this
  19. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  20. */
  21. </pre></br>
  22. <pre id="mpl-python">
  23. # This Source Code Form is subject to the terms of the Mozilla Public
  24. # License, v. 2.0. If a copy of the MPL was not distributed with this
  25. # file, You can obtain one at https://mozilla.org/MPL/2.0/.
  26. </pre></br>
  27. <pre id="mpl-html">
  28. &lt;!-- This Source Code Form is subject to the terms of the Mozilla Public
  29. - License, v. 2.0. If a copy of the MPL was not distributed with this
  30. - file, You can obtain one at https://mozilla.org/MPL/2.0/. --&gt;
  31. </pre></br>
  32. <pre id="mpl-text">
  33. This Source Code Form is subject to the terms of the Mozilla Public
  34. License, v. 2.0. If a copy of the MPL was not distributed with this
  35. file, You can obtain one at https://mozilla.org/MPL/2.0/.
  36. </pre></br>
  37. </section>
  38. <section>
  39. <h2>Public Domain</h2>
  40. <p>This license can be used for test scripts and other short code snippets, at the discretion of the author.</p>
  41. <pre id="pd-c">
  42. /* Any copyright is dedicated to the Public Domain.
  43. * https://creativecommons.org/publicdomain/zero/1.0/ */
  44. </pre></br>
  45. <pre id="pd-python">
  46. # Any copyright is dedicated to the Public Domain.
  47. # https://creativecommons.org/publicdomain/zero/1.0/
  48. </pre></br>
  49. <pre id="pd-html">
  50. &lt;!-- Any copyright is dedicated to the Public Domain.
  51. - https://creativecommons.org/publicdomain/zero/1.0/ --&gt;
  52. </pre></br>
  53. <pre id="pd-text">
  54. Any copyright is dedicated to the Public Domain.
  55. https://creativecommons.org/publicdomain/zero/1.0/
  56. </pre></br>
  57. <p>Licensing questions? Ask in <a href="{{ url('mozorg.about.forums.forums') }}#legal">mozilla.legal</a>.</p>
  58. </section>
  59. {% endblock %}