nm-base.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {% extends "debian-base.html" %}
  2. {% load i18n %}
  3. {% block title %}Debian New Member Process{% endblock %}
  4. {% block head_meta %}
  5. <link rev="made" href="mailto:nm@debian.org">
  6. <meta name="Author" content="Enrico Zini, enrico@debian.org">
  7. {% endblock %}
  8. {% block head_resources %}
  9. {{block.super}}
  10. <link type="text/css" rel="stylesheet" media="all" href="{{ STATIC_URL }}css/nm.css">
  11. {% if visitor.is_admin %}
  12. <script src="{{STATIC_URL}}js/jquery-1.10.2.min.js"></script>
  13. <script type="text/javascript">
  14. (function($){
  15. function ganneff_mode() {
  16. $("button").text("DELETE!!!!");
  17. $("a").each(function(idx, el) {
  18. console.log("A", el)
  19. var el = $(el);
  20. var label = el.text();
  21. if (/^(\[|admin|impersonate|add|edit)/.test(label))
  22. el.text("DELETE!!!!");
  23. });
  24. }
  25. function main()
  26. {
  27. $("#logo").click(function(evt) {
  28. ganneff_mode();
  29. evt.preventDefault();
  30. return false;
  31. });
  32. }
  33. $(main);
  34. })(jQuery);
  35. </script>
  36. {% endif %}
  37. {% endblock %}
  38. {% block section %}<a href="{% url 'home' %}">NM</a>{% endblock %}
  39. {% block searchbox %}
  40. {% comment %}No search feature in NM site yet{% endcomment %}
  41. {% endblock %}
  42. {% block navbar %}
  43. <li><a href="{% url 'public_findperson' %}">People</a></li>
  44. <li><a href="{% url 'managers' %}">Managers</a></li>
  45. <li><a href="{% url 'process_list' %}">Applicants</a></li>
  46. <li><a href="http://wiki.debian.org/Keysigning">Keysigning</a></li>
  47. <li><a href="{% url 'root_faq' %}">Site FAQ</a></li>
  48. <li><a href="{% url 'wizard_home' %}">Site wizard</a></li>
  49. {% if wikihelp %}<li><a href="{{wikihelp}}">Wiki help<a/a></li>{% endif %}
  50. {% endblock %}
  51. {% block breadcrumbs %}{% if impersonator %}<a href="{% url 'impersonate' %}?url={{request.build_absolute_uri}}">[{{impersonator}} as {{visitor.lookup_key}}]</a> {% endif %}<a href="{% url 'home' %}">nm</a>
  52. {% if person %} / {{person.a_link}}{% endif %}
  53. {% if process %} / {{process.a_link}}{% endif %}
  54. {% if requirement %} / {{requirement.a_link}}{% endif %}
  55. {% endblock %}
  56. {% block relatedpages %}
  57. {% if requirement %}
  58. {% if visitor.is_admin %}<a href="{{requirement.get_admin_url}}">admin requirement</a>{% endif %}
  59. {% endif %}
  60. {% if process %}
  61. {% if visitor.is_admin %}<a href="{{process.get_admin_url}}">admin process</a>{% endif %}
  62. {% endif %}
  63. {% if person %}
  64. <a href="{{person.get_ddpo_url}}">DDPO</a>
  65. <a href="{{person.get_portfolio_url}}">Portfolio</a>
  66. {% if person.get_contributors_url %}<a href="{{person.get_contributors_url}}">Contributor</a>{% endif %}
  67. {% if visitor %}<a href="{% url 'restricted_minechangelogs' key=person.lookup_key %}">changelogs</a>{% endif %}
  68. {% if visitor.is_admin %}<a href="{{person.get_admin_url}}">admin person</a>{% endif %}
  69. {% if visitor.is_admin and person.can_become_am %}<a href="{% url 'admin:backend_am_add' %}?person={{person.id}}">make am</a>{% endif %}
  70. {% if visitor != person and visitor.is_admin %}<a href="{% url 'impersonate' key=person.lookup_key %}?url={{request.build_absolute_uri}}">impersonate</a>{% endif %}
  71. {% endif %}
  72. {% if user.is_anonymous %}
  73. {% if request.sso_username %}
  74. {{request.sso_username}} (not known to this site yet) <a href="{% url 'dm_claim' %}">claim account</a>
  75. {% else %}
  76. <a href="https://wiki.debian.org/DebianSingleSignOn#Debian_SSO_documentation">login</a>
  77. {% endif %}
  78. {% else %}
  79. {% if visitor.is_am %}
  80. <a href="{% url 'restricted_ammain' %}">am dashboard</a>
  81. {% endif %}
  82. <a href="{{visitor.get_absolute_url}}">{{visitor.lookup_key}}</a>
  83. {% endif %}
  84. {% comment %}
  85. <a href="{% url 'search_packages' %}">Search</a>
  86. <a href="{% url 'report_todo' %}">TODO list</a>
  87. <a href="{% url 'editor_index' %}">Editor</a>
  88. <a href="{% url 'statistics' %}">Statistics</a>
  89. {% endcomment %}
  90. {% endblock %}
  91. {% block content %}
  92. <h1>Debian NM Website Template</h1>
  93. {% endblock %}
  94. {% block footer %}
  95. <p><span>Copyright © 2012 Enrico Zini &lt;enrico@debian.org&gt;. See <a href="{% url 'root_license' %}">license terms</a>.
  96. Source code is <a href="https://anonscm.debian.org/git/nm/nm2.git">available</a>.
  97. Please report bugs against the <a href="http://bugs.debian.org/nm.debian.org">nm.debian.org</a> pseudo-package.
  98. </span>
  99. {% include "nm-langs_snippet.html" %}
  100. </p>
  101. {% endblock %}