Commits

Anonymous committed 59c93df

Remove old web templates.

  • Participants
  • Parent commits 0cc8a82

Comments (0)

Files changed (15)

sphinx/templates/web/_commentform.html

-<form action="?target={{ comments_form.target|e(true) }}" method="post">
-    {% if comments_form.error %}
-    <div class="error">{{ comments_form.error|e }}</div>
-    {% endif %}
-    <p>Note: you can also <a href="{{ pathto(suggest_url, 1)|e }}">suggest
-    changes</a> to the official documentation text.</p>
-    <dl>
-      <dt>Name:</dt>
-      <dd><input type="text" size="24" name="author" value="{{ comments_form.author|e(true) }}"></dd>
-      <dt>E-Mail Address:</dt>
-      <dd><input type="text" size="24" name="author_mail" value="{{ comments_form.author_mail|e(true) }}"></dd>
-      <dt>Comment Title:</dt>
-      <dd><input type="text" size="36" name="title" value="{{ comments_form.title|e(true) }}"></dd>
-    </dl>
-    <input type="text" size="12" name="homepage" id="homepage">
-    <textarea name="comment_body" rows="7" cols="50">{{ comments_form.comment_body|e }}</textarea>
-    {% if preview %}
-    <div class="preview">
-      <h4>Preview</h4>
-      <div class="comment">
-        <h4>{{ preview.title|e or '&nbsp;' }}</h4>
-        <div class="text">{{ preview.parsed_comment_body or '&nbsp;' }}</div>
-        <div class="meta">by {{ preview.author|e }}, written on
-        {{ preview.pub_date|datetimeformat }} |
-        <a href="#">#</a></div>
-      </div>
-    </div>
-    {% endif %}
-    <div class="actions">
-      <input type="submit" value="Submit comment">
-      <input type="submit" name="preview" value="Preview">
-      <input type="reset" value="Reset form">
-    </div>
-  </form>

sphinx/templates/web/admin/change_password.html

-{% extends "admin/layout.html" %}
-{% block admin_body %}
-  <h1>Change Password</h1>
-  {% if change_failed %}
-    <p class="error">The two passwords don't match or are empty.</p>
-  {% elif change_successful %}
-    <p class="message">Password changed successfully.</p>
-  {% else %}
-    <p>Enter the new password below twice</p>
-  {% endif %}
-  <form action="" method="post">
-    <dl>
-      <dt>Password</dt>
-      <dd><input type="password" name="pw1"></dd>
-      <dt>Repeat</dt>
-      <dd><input type="password" name="pw2"></dd>
-    </dl>
-    <div class="actions">
-      <input type="submit" value="Change">
-      <input type="submit" value="Cancel" name="cancel">
-    </div>
-  </form>
-{% endblock %}

sphinx/templates/web/admin/index.html

-{% extends "admin/layout.html" %}
-{% block admin_body %}
-  <h1>Administration Index</h1>
-  <p>
-    Welcome in the documentation administration, {{ req.user|e }}.
-  </p>
-  <h2>Tasks</h2>
-  <ul>
-    <li><a href="moderate_comments/">Moderate Comments</a></li>
-    {%- if can_change_password %}
-      <li><a href="change_password/">Change Password</a></li>
-    {%- endif %}
-    {%- if is_master_admin %}
-      <li><a href="manage_users/">Manage Users</a></li>
-    {%- endif %}
-    <li><a href="../">Back To Documentation</a></li>
-    <li><a href="logout/">Logout</a></li>
-  </ul>
-{% endblock %}

sphinx/templates/web/admin/layout.html

-{% extends "layout.html" %}
-{% set title = 'Documentation Administration' %}
-{% set in_admin_panel = true %}
-{% block body %}
-  <div class="admin">
-    {% block admin_body %}{% endblock %}
-  </div>
-{% endblock %}

sphinx/templates/web/admin/login.html

-{% extends "admin/layout.html" %}
-{% block admin_body %}
-  <h1>Login</h1>
-  <form action="" method="post">
-    <dl>
-      <dt>Username</dt>
-      <dd><input type="text" name="username"></dd>
-      <dt>Password</dt>
-      <dd><input type="password" name="password"></dd>
-    </dl>
-    {% if login_failed %}
-      <div class="error">Invalid username and/or password</div>
-    {% endif %}
-    <div class="actions">
-      <input type="submit" value="Login">
-      <input type="submit" name="cancel" value="Cancel">
-    </div>
-  </form>
-{% endblock %}

sphinx/templates/web/admin/manage_users.html

-{% extends "admin/layout.html" %}
-{% block admin_body %}
-  <h1>Manage Users</h1>
-  <p>
-    All uses with "master" privileges can give and revoke permissions
-    from this page. You cannot change the passwords of other users and
-    remove your own user or "master" privilege. Privileges are separated
-    by commas &mdash; optional whitespace is ignored.
-  </p>
-  <p><strong>Privileges</strong></p>
-  <ul>
-    <li><tt>master</tt> &mdash; user can create and edit user accounts.</li>
-    <li><tt>frozenpassword</tt> &mdash; user cannot change his password.</li>
-  </ul>
-  <form action="" method="post">
-    {% if ask_confirmation %}
-      <div class="dialog">
-        <h2>Confirm</h2>
-        <div class="text">
-          {% trans amount=to_delete|length %}
-            Do you really want to delete the user?
-          {% pluralize %}
-            Do you really want to delete {{ amount }} users?
-          {% endtrans %}
-        </div>
-        <div class="buttons">
-          <input type="hidden" name="update" value="yes">
-          <input type="submit" name="confirmed" value="Yes">
-          <input type="submit" name="aborted" value="No">
-        </div>
-      </div>
-    {% endif %}
-    {% if generated_user and generated_password %}
-    <div class="dialog">
-      <h2>User Generated</h2>
-      <div class="text">
-        The user <strong>{{ generated_user|e }}</strong> was generated successfully
-        with the password <strong>{{ generated_password|e }}</strong>.
-      </div>
-    </div>
-    {% endif %}
-    {% if user_exists %}
-    <div class="dialog">
-      <h2>Username in User</h2>
-      <div class="text">
-        The username {{ user_exists|e }} is in use. Select a different one.
-      </div>
-    </div>
-    {% endif %}
-    {% if self_destruction %}
-    <div class="dialog">
-      <h2>Error</h2>
-      <div class="text">
-        You can't delete your own user or remove your own master privileges.
-      </div>
-    </div>
-    {% endif %}
-    {% if add_user_mode %}
-    <div class="dialog detail_form">
-      <h2>Add User</h2>
-      <div class="text">
-        Username <input type="text" size="24" name="username" value="{{
-          form.username|e(true) }}">
-      </div>
-      <div class="buttons">
-        <input type="submit" name="add_user" value="Add">
-        <input type="submit" name="aborted" value="Cancel">
-      </div>
-    </div>
-    {% endif %}
-    <table class="mapping">
-      <tr>
-        <th>Username</th>
-        <th>Privileges</th>
-        <th class="actions">Delete</th>
-      </tr>
-      {%- for user, privileges in users|dictsort %}
-      <tr>
-        <td class="username">{{ user|e }}</td>
-        <td class="groups"><input type="text" name="privileges-{{ user|e }}" value="{{ privileges|join(', ') }}"></td>
-        <td class="actions"><input type="checkbox" name="delete" value="{{ user|e
-        }}"{% if user in to_delete %} checked{% endif %}></td>
-      </tr>
-      {%- endfor %}
-    </table>
-    <div class="actions">
-      <input type="submit" name="update" value="Update">
-      <input type="submit" name="add_user" value="Add User">
-      <input type="submit" name="cancel" value="Cancel">
-    </div>
-  </form>
-{% endblock %}

sphinx/templates/web/admin/moderate_comments.html

-{% extends "admin/layout.html" %}
-{% block admin_body %}
-  <h1>Moderate Comments</h1>
-  <p>
-    From here you can delete and edit comments. If you want to be
-    informed about new comments you can use the <a href="{{ pathto('index')
-    }}?feed=recent_comments">feed</a> provided.
-  </p>
-  <form action="" method="post">
-  {% if ask_confirmation %}
-    <div class="dialog">
-      <h2>Confirm</h2>
-      <div class="text">
-        {% trans amount=to_delete|length %}
-          Do you really want to delete one comment?
-        {% pluralize %}
-          Do you really want to delete {{ amount }} comments?
-        {% endtrans %}
-      </div>
-      <div class="buttons">
-        <input type="submit" name="confirmed" value="Yes">
-        <input type="submit" name="aborted" value="No">
-      </div>
-    </div>
-  {% endif %}
-  {% if edit_detail %}
-    <div class="dialog detail_form">
-      <h2>Edit Comment</h2>
-      <div class="text">
-        <input type="hidden" name="edit" value="{{ edit_detail.comment_id }}">
-        <dl>
-          <dt>Name</dt>
-          <dd><input type="text" size="24" name="author" value="{{ edit_detail.author|e(true) }}"></dd>
-          <dt>E-Mail</dt>
-          <dd><input type="text" size="24" name="author_mail" value="{{ edit_detail.author_mail|e(true) }}"></dd>
-          <dt>Comment Title</dt>
-          <dd><input type="text" size="36" name="title" value="{{ edit_detail.title|e(true) }}"></dd>
-        </dl>
-        <textarea name="comment_body" rows="7" cols="50">{{ edit_detail.comment_body|e }}</textarea>
-      </div>
-      <div class="buttons">
-        <input type="submit" value="Save">
-        <input type="submit" name="aborted" value="Cancel">
-        <input type="submit" name="view" value="View">
-        <input type="submit" name="delete_this" value="Delete">
-      </div>
-    </div>
-  {% endif %}
-  {%- macro render_row(comment, include_page=false) %}
-    <tr>
-      <td class="title">
-        <a href="{{ pathto(comment.url, true) }}">{{ comment.title|e }}</a>
-        <span class="meta">by <a href="mailto:{{ comment.author_mail|e
-        }}">{{ comment.author|e }}</a>{% if include_page
-        %} on <a href="{{ pathto('@admin/moderate_comments/' +
-        comment.associated_page) }}">{{ comment.associated_page }}</a{%
-        endif %}</span>
-      </td>
-      <td class="pub_date">{{ comment.pub_date|datetimeformat }}</td>
-      <td class="actions">
-        <span class="meta"><a href="?edit={{ comment.comment_id }}">edit</a></span>
-        <input type="checkbox" name="delete" value="{{
-        comment.comment_id }}"{% if comment.comment_id in to_delete
-        %} checked{% endif %}>
-      </td>
-    </tr>
-  {%- endmacro %}
-    <table class="mapping">
-      {% if pages_with_comments %}
-        <tr>
-          <th colspan="4" class="recent_comments">
-            <a href="{{ pathto('@admin/moderate_comments/recent_comments/', true)
-              }}">Recent Comments</a>
-            <span class="meta">(<a href="{{ pathto('index')
-              }}?feed=recent_comments">feed</a>)</span>
-          </th>
-        </tr>
-        {%- for comment in recent_comments %}
-          {{- render_row(comment, true) }}
-        {%- endfor %}
-        {%- for page in pages_with_comments %}
-          <tr>
-            <th colspan="4">
-              <a href="{{ pathto('@admin/moderate_comments/' + page.page_id) }}">{{ page.title|e }}</a>
-              <span class="meta">(<a href="{{ pathto(page.page_id) }}">view</a> |
-              <a href="{{ pathto(page.page_id) }}?feed=comments">feed</a>)</span>
-            </th>
-          </tr>
-          {%- if page.has_details %}
-            {%- for comment in page.comments %}
-              {{- render_row(comment) }}
-            {%- endfor %}
-          {%- endif %}
-        {% endfor %}
-      {%- else %}
-        <tr><th>no comments submitted so far</th></tr>
-      {%- endif %}
-    </table>
-    <div class="actions">
-      <input type="submit" value="Delete">
-      <input type="submit" name="cancel" value="Cancel">
-    </div>
-  </form>
-{% endblock %}

sphinx/templates/web/commentform.html

-{% extends "layout.html" %}
-{% block body %}
-  <div id="new-commment-box">
-    <h4 id="comments-new-comment">New Comment</h4>
-    {{ form }}
-    <div class="help">
-      <p>
-        <strong>You can format a comment using the
-        following syntax elements provided:</strong>
-      </p>
-      <p>
-        `code` / ``code too`` / **strong** /
-        *emphasized* / !!!important!!! /
-        [[link_target Link Title]] /
-        [[link_target_only]] / &lt;code&gt;code block with
-        syntax highlighting&lt;/code&gt; / &lt;quote&gt;some
-        quoted text&lt;/quote&gt;.
-      </p>
-      <p>
-        HTML is not supported, relative link targets are treated as
-        quicklinks and code blocks that start with "&gt;&gt;&gt;" are
-        highlighted as interactive Python sessions.
-      </p>
-    </div>
-  </div>
-{% endblock %}

sphinx/templates/web/comments.html

-  <div id="comments">
-    <h3>Comments</h3>
-    {% for comment in comments %}
-      <div class="comment" id="comment-{{ comment.comment_id }}">
-        <h4>{{ comment.title|e }}
-        {%- if comment.associated_name %} &mdash; on
-        <a href="#{{ comment.associated_name }}">{{-
-          comment.associated_name }}</a>{% endif %}</h4>
-        <div class="text">{{ comment.parsed_comment_body }}</div>
-        <div class="meta">by {{ comment.author|e }}, written on
-          {{ comment.pub_date|datetimeformat }} |
-          <a href="#comment-{{ comment.comment_id }}">#</a></div>
-      </div>
-    {% else %}
-      <div class="nocomments">
-        There are no user contributed notes for this page.
-      </div>
-    {% endfor %}
-    <div class="actions">
-      <a class="newcomment" href="{{ pathto(comment_url, 1)|e }}">add comment to page</a>
-    </div>
-  </div>

sphinx/templates/web/edit.html

-{% extends "layout.html" %}
-{% if rendered %}{% set title = "Suggest changes - Preview" %}
-{% else %}{% set title = "Suggest changes" %}{% endif %}
-{% block body %}
-{% if rendered %}
-  <h1>Preview</h1>
-  <div class="preview">
-    <div class="previewwrapper">
-      {{ rendered }}
-    </div>
-  </div>
-  {% if warnings %}
-  <h1>Warnings</h1>
-  <p>You must fix these warnings before you can submit your patch.</p>
-  <ul>
-    {% for warning in warnings %}
-    <li>{{ warning }}</li>
-    {% endfor %}
-  </ul>
-  {% endif %}
-{% endif %}
-  <h1 id="suggest-changes-for-this-page">Suggest changes for this page</h1>
-{% if not rendered %}
-  <p>Here you can edit the source of &#8220;{{ doctitle|striptags }}&#8221; and
-    submit the results as a patch to the {{ project }} documentation team.
-    {# XXX Python specific #}
-    If you want to know more about reST, the markup language used, read
-    <a href="{{ pathto('documenting/index') }}">Documenting Python</a>.</p>
-{% endif %}
-  <form action="{{ submiturl }}" method="post">
-    <div id="suggest-changes-box">
-      <textarea name="contents">{{ contents|e }}</textarea>
-      {# XXX: shortcuts to make the edit area larger/smaller #}
-      {% if form_error %}
-      <div class="error">{{ form_error|e }}</div>
-      {% endif %}
-      <dl>
-        <dt>Name:</dt>
-        <dd><input type="text" size="24" name="name" value="{{ author }}"></dd>
-        <dt>E-mail Address:</dt>
-        <dd><input type="text" size="24" name="email" value="{{ email }}"></dd>
-        <dt>Summary of the change:</dt>
-        <dd><input type="text" size="48" name="summary" value="{{ summary }}"></dd>
-      </dl>
-      <input type="text" name="homepage" size="12" id="homepage">
-      <div class="actions">
-        <input type="submit" value="Submit patch for review">
-        <input type="submit" name="preview" value="Preview changes">
-        <input type="reset" value="Reset form">
-        <input type="submit" name="cancel" value="Cancel">
-      </div>
-    </div>
-  </form>
-{% endblock %}

sphinx/templates/web/inlinecomments.html

-{# rendered for inline comments -#}
-<div class="inlinecomments">
-{%- if mode == 'bottom' %}
-  {%- if comments -%}
-    <a class="bubble" href="#comment-{{ comments[0].comment_id }}"><span>[Read Comments]</span></a>
-  {%- else -%}
-    <a class="bubble emptybubble" href="{{ pathto(comment_url, 1) }}?target={{ id }}"><span>[Write Comments]</span></a>
-  {%- endif %}
-{%- else %}
-  <div>
-    {%- if comments -%}
-      <a class="bubble" href="{{ pathto(comment_url, 1) }}?target={{ id
-        }}"><span>[</span>{{ comments|length }}<span> Comments]</span></a>
-    {%- else -%}
-      <a class="bubble emptybubble" href="{{ pathto(comment_url, 1)
-        }}?target={{ id }}"><span>[Write Comment]</span></a>
-    {%- endif -%}
-  </div>
-  {%- if comments %}
-  <div class="comments">
-    <h3>Comments</h3>
-    <div class="actions"><a href="{{ pathto(comment_url, 1) }}?target={{
-        id }}" onclick="Documentation.newCommentFromBox(this); return false">write new comment</a></div>
-    {%- for comment in comments %}
-    <div class="comment" id="comment-{{ comment.comment_id }}">
-      <h4>{{ comment.title|e }}</h4>
-      <div class="text">{{ comment.parsed_comment_body }}</div>
-      <div class="meta">by {{ comment.author|e }}, written on
-      {{ comment.pub_date|datetimeformat }} |
-      <a href="#comment-{{ comment.comment_id }}">#</a></div>
-    </div>
-    {%- endfor %}
-  </div>
-  {%- endif %}
-{%- endif %}
-</div>

sphinx/templates/web/keyword_not_found.html

-{% extends "layout.html" %}
-{% set title = 'Keyword Not Found' %}
-{% block body %}
-  <h1 id="keyword-not-found">Keyword Not Found</h1>
-  <p>
-    The keyword <strong>{{ keyword|e }}</strong> is not directly associated with
-    a page. {% if close_matches %}A similarity search returned {{
-    close_matches|length }} items that are possible matches.
-    {% if good_matches_count %}{{ good_matches_count }} of them are really
-    good matches and emphasized.{% endif %}{% endif %}
-  </p>
-  {% if close_matches %}
-    <ul class="keywordmatches">
-    {% for item in close_matches %}
-      <li{% if item.good_match %} class="goodmatch"{% endif
-        %}><a href="{{ item.href }}">{{ item.title|e }}</a> ({{
-          item.type }}) {% if item.description
-      %} &mdash; {{ item.description|e }}{% endif %}</li>
-    {% endfor %}
-    </ul>
-  {% endif %}
-  <p>
-    If you want to search the entire {{ project }} documentation for the string
-    "{{ keyword|e }}", then <a href="{{ pathto('search') }}?q={{ keyword|e
-    }}">use the search function</a>.
-  </p>
-  <p>
-    For a quick overview over all documented modules,
-    <a href="{{ pathto('modindex') }}">click here</a>.
-  </p>
-{% endblock %}

sphinx/templates/web/not_found.html

-{% extends "layout.html" %}
-{% set title = 'Page Not Found' %}
-{% block body %}
-  <h1 id="page-not-found">Page Not Found</h1>
-  <p>
-    The page {{ req.path|e }} does not exist on this server.
-  </p>
-  <p>
-    Click here to <a href="{{ pathto('index') }}">return to the index</a>.
-  </p>
-{% endblock %}

sphinx/templates/web/settings.html

-{% extends "layout.html" %}
-{% set title = 'Settings' %}
-{% set pagename = 'settings' %}
-{% block body %}
-  <h1>{{ project }} Documentation Settings</h1>
-  <p>
-    Here you can customize how you want to view the {{ project }} documentation.
-    These settings are saved using a cookie on your computer.
-  </p>
-
-  <form action="{{ pathto('settings') }}" method="post">
-    <p class="subhead">Select your stylesheet:</p>
-    <p>
-      {%- for design, (foo, descr) in known_designs %}
-      <input type="radio" name="design" value="{{ design }}" id="stylesheet-{{ design }}"
-             {% if curdesign == design %}checked="checked"{% endif %}>
-        <label for="stylesheet-{{ design }}">{{ design }} &mdash; {{ descr }}</label><br>
-      {%- endfor %}
-    </p>
-
-    <p class="subhead">Select how you want to view comments:</p>
-    <p>
-      {%- for meth, descr in comments_methods %}
-      <input type="radio" name="comments" value="{{ meth }}" id="comments-{{ meth }}"
-             {% if curcomments == meth %}checked="checked"{% endif %}>
-        <label for="comments-{{ meth }}">{{ descr }}</label><br>
-      {%- endfor %}
-    </p>
-    <input type="hidden" name="referer" value="{{ referer|e}}">
-    <p>
-      <input type="submit" name="goback" value="Save and back to last page">&nbsp;&nbsp;
-      <input type="submit" value="Save">&nbsp;&nbsp;
-      <input type="submit" name="cancel" value="Cancel and back to last page">&nbsp;&nbsp;
-    </p>
-  </form>
-
-{% endblock %}

sphinx/templates/web/submitted.html

-{% extends "layout.html" %}
-{% set title = "Patch submitted" %}
-{% block head %}
-<meta http-equiv="refresh" content="2; URL={{ backlink|e }}">
-{% endblock %}
-{% block body %}
-<h1>Patch submitted</h1>
-<p>Your patch has been submitted to the {{ project }} documentation team and will be
-  processed shortly.</p>
-<p>You will be redirected to the
- <a href="{{ backlink|e }}">original documentation page</a> shortly.</p>
-{% endblock %}