Commit e81c12c7 by Frances Botsford

switching more wiki icons to use the right format

parent 4874c45d
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{% addtoblock "js" %} {% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/urlify.js "></script> <script type="text/javascript" src="{{ STATIC_URL }}admin/js/urlify.js "></script>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
(function($) { (function($) {
$(document).ready(function (){ $(document).ready(function (){
$("#id_title").keyup(function () { $("#id_title").keyup(function () {
...@@ -28,20 +28,20 @@ ...@@ -28,20 +28,20 @@
{% include "wiki/includes/editormedia.html" %} {% include "wiki/includes/editormedia.html" %}
<h1 class="page-header">{% trans "Add new article" %}</h1> <h1 class="page-header">{% trans "Add new article" %}</h1>
<form method="POST" class="form-horizontal"> <form method="POST" class="form-horizontal">
{% wiki_form create_form %} {% wiki_form create_form %}
<div class="form-actions"> <div class="form-actions">
<button type="submit" name="save_changes" class="btn btn-primary btn-large"> <button type="submit" name="save_changes" class="btn btn-primary btn-large">
<span class="icon-plus"></span> <i class="icon-plus"></i>
{% trans "Create article" %} {% trans "Create article" %}
</button> </button>
<a href="{% url 'wiki:get' path=parent_urlpath.path %}" class="btn btn-large back"> <a href="{% url 'wiki:get' path=parent_urlpath.path %}" class="btn btn-large back">
<span class="icon-circle-arrow-left"></span> <i class="icon-circle-arrow-left"></i>
{% trans "Go back" %} {% trans "Go back" %}
</a> </a>
</div> </div>
{% include "wiki/includes/cheatsheet.html" %} {% include "wiki/includes/cheatsheet.html" %}
</form> </form>
......
...@@ -7,24 +7,24 @@ ...@@ -7,24 +7,24 @@
{% block wiki_contents %} {% block wiki_contents %}
<section class="delete"> <section class="delete">
<h1 class="page-header">{% trans "Delete" %} "{{ article.current_revision.title }}"</h1> <h1 class="page-header">{% trans "Delete" %} "{{ article.current_revision.title }}"</h1>
{% if cannot_delete_root %} {% if cannot_delete_root %}
<p class="lead">{% trans "You cannot delete a root article." %}</p> <p class="lead">{% trans "You cannot delete a root article." %}</p>
<p><a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}">{% trans "Go back" %}</a></p> <p><a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}">{% trans "Go back" %}</a></p>
{% else %} {% else %}
{% if cannot_delete_children %} {% if cannot_delete_children %}
<p class="alert alert-error"><strong>{% trans "You cannot delete this article because you do not have permission to delete articles with children. Try to remove the children manually one-by-one." %}</strong></p> <p class="alert alert-error"><strong>{% trans "You cannot delete this article because you do not have permission to delete articles with children. Try to remove the children manually one-by-one." %}</strong></p>
{% endif %} {% endif %}
{% if delete_children %} {% if delete_children %}
<p class="lead">{% trans "You are deleting an article. This means that its children will be deleted as well. If you choose to purge, children will also be purged!" %}</p> <p class="lead">{% trans "You are deleting an article. This means that its children will be deleted as well. If you choose to purge, children will also be purged!" %}</p>
<h2>{% trans "Articles that will be deleted" %}</h2> <h2>{% trans "Articles that will be deleted" %}</h2>
<ul> <ul>
{% for child in delete_children %} {% for child in delete_children %}
<li><a href="{% url 'wiki:get' article_id=child.article.id %}" target="_blank">{{ child.article }}</a></li> <li><a href="{% url 'wiki:get' article_id=child.article.id %}" target="_blank">{{ child.article }}</a></li>
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% if not cannot_delete_children %} {% if not cannot_delete_children %}
<p class="lead">{% trans "You are deleting an article. Please confirm." %}</p> <p class="lead">{% trans "You are deleting an article. Please confirm." %}</p>
...@@ -46,17 +46,17 @@ ...@@ -46,17 +46,17 @@
</script> </script>
<div class="form-actions"> <div class="form-actions">
<button type="submit" name="save_changes" class="btn btn-danger btn-large"> <button type="submit" name="save_changes" class="btn btn-danger btn-large">
<span class="icon-plus"></span> <i class="icon-remove"></i>
{% trans "Delete article" %} {% trans "Delete article" %}
</button> </button>
<a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn btn-large back"> <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn btn-large back">
<span class="icon-circle-arrow-left"></span> <i class="icon-circle-arrow-left"></i>
{% trans "Go back" %} {% trans "Go back" %}
</a> </a>
</div> </div>
</form> </form>
{% endif %} {% endif %}
{% endif %} {% endif %}
</section> </section>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
{% include "wiki/includes/editor.html" %} {% include "wiki/includes/editor.html" %}
<div class="form-actions"> <div class="form-actions">
<button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="this.form.target=''; this.form.action='{% url 'wiki:edit' path=urlpath.path article_id=article.id %}'"> <button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="this.form.target=''; this.form.action='{% url 'wiki:edit' path=urlpath.path article_id=article.id %}'">
<span class="icon-ok"></span> <i class="icon-ok"></i>
{% trans "Save changes" %} {% trans "Save changes" %}
</button> </button>
<a class="btn btn-large" id="previewButton" href="#previewModal" rel="leanModal" <a class="btn btn-large" id="previewButton" href="#previewModal" rel="leanModal"
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
document.article_edit_form.target='previewWindow'; document.article_edit_form.target='previewWindow';
document.article_edit_form.action='{% url 'wiki:preview' path=urlpath.path article_id=article.id %}'; document.article_edit_form.action='{% url 'wiki:preview' path=urlpath.path article_id=article.id %}';
document.article_edit_form.submit();"> document.article_edit_form.submit();">
<span class="icon-eye-open"></span> <i class="icon-eye-open"></i>
{% trans "Preview" %} {% trans "Preview" %}
</a> </a>
<a href="{% url 'wiki:delete' path=urlpath.path article_id=article.id %}" class="pull-right btn btn-danger"> <a href="{% url 'wiki:delete' path=urlpath.path article_id=article.id %}" class="pull-right btn btn-danger">
<span class="icon-trash"></span> <i class="icon-remove"></i>
{% trans "Delete article" %} {% trans "Delete article" %}
</a> </a>
...@@ -57,12 +57,12 @@ ...@@ -57,12 +57,12 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="this.form.target=''; this.form.action='{% url 'wiki:edit' path=urlpath.path article_id=article.id %}'"> <button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="this.form.target=''; this.form.action='{% url 'wiki:edit' path=urlpath.path article_id=article.id %}'">
<span class="icon-ok"></span> <i class="icon-ok"></i>
{% trans "Save changes" %} {% trans "Save changes" %}
</button> </button>
<a id="previewModalBackToEditor" href="#" class="btn btn-large"> <a id="previewModalBackToEditor" href="#" class="btn btn-large">
<span class="icon-circle-arrow-left"></span> <i class="icon-circle-arrow-left"></i>
{% trans "Back to editor" %} {% trans "Back to editor" %}
</a> </a>
</div> </div>
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<div class="accordion-group"> <div class="accordion-group">
<div class="accordion-heading"> <div class="accordion-heading">
<a class="accordion-toggle" style="float: left;" href="{% url 'wiki:diff' revision.id %}"> <a class="accordion-toggle" style="float: left;" href="{% url 'wiki:diff' revision.id %}">
<span class="icon-plus"></span> <i class="icon-plus"></i>
{% include "wiki/includes/revision_info.html" with current_revision=article.current_revision %} {% include "wiki/includes/revision_info.html" with current_revision=article.current_revision %}
<div style="color: #CCC;"> <div style="color: #CCC;">
<small> <small>
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
document.revisions_form.action='{% url 'wiki:preview_revision' article.id %}'; document.revisions_form.action='{% url 'wiki:preview_revision' article.id %}';
$('#previewRevisionModal .switch-to-revision').attr('href', '{% url 'wiki:change_revision' path=urlpath.path article_id=article.id revision_id=revision.id %}'); $('#previewRevisionModal .switch-to-revision').attr('href', '{% url 'wiki:change_revision' path=urlpath.path article_id=article.id revision_id=revision.id %}');
document.revisions_form.submit();"> document.revisions_form.submit();">
<span class="icon-eye-open"></span> <i class="icon-eye-open"></i>
{% trans "Preview this revision" %} {% trans "Preview this revision" %}
</a> </a>
...@@ -180,17 +180,17 @@ ...@@ -180,17 +180,17 @@
document.revisions_form.action=$('input[type=radio]:checked').attr('merge-button-href'); document.revisions_form.action=$('input[type=radio]:checked').attr('merge-button-href');
$('.merge-revision-commit').attr('href', $('input[type=radio]:checked').attr('merge-button-commit-href')); $('.merge-revision-commit').attr('href', $('input[type=radio]:checked').attr('merge-button-commit-href'));
document.revisions_form.submit();"> document.revisions_form.submit();">
<span class="icon-random"></span> <i class="icon-random"></i>
{% trans "Merge selected with current..." %} {% trans "Merge selected with current..." %}
</a> </a>
{% else %} {% else %}
<button type="submit" disabled="true" name="preview" value="1" class="btn btn-large"> <button type="submit" disabled="true" name="preview" value="1" class="btn btn-large">
<span class="icon-lock"></span> <i class="icon-lock"></i>
{% trans "Merge selected with current..." %} {% trans "Merge selected with current..." %}
</button> </button>
{% endif %} {% endif %}
<button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="this.form.action=$('input[type=radio]:checked').attr('switch-button-href')"> <button type="submit" name="save" value="1" class="btn btn-large btn-primary" onclick="this.form.action=$('input[type=radio]:checked').attr('switch-button-href')">
<span class="icon-flag"></span> <i class="icon-flag"></i>
{% trans "Switch to selected version" %} {% trans "Switch to selected version" %}
</button> </button>
</div> </div>
...@@ -212,17 +212,17 @@ ...@@ -212,17 +212,17 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a id="previewRevisionModalBackToHistory" href="#" class="btn btn-large" data-dismiss="modal"> <a id="previewRevisionModalBackToHistory" href="#" class="btn btn-large" data-dismiss="modal">
<span class="icon-circle-arrow-left"></span> <i class="icon-circle-arrow-left"></i>
{% trans "Back to history view" %} {% trans "Back to history view" %}
</a> </a>
{% if article|can_write:user %} {% if article|can_write:user %}
<a href="#" class="btn btn-large btn-primary switch-to-revision"> <a href="#" class="btn btn-large btn-primary switch-to-revision">
<span class="icon-flag"></span> <i class="icon-flag"></i>
{% trans "Switch to this version" %} {% trans "Switch to this version" %}
</a> </a>
{% else %} {% else %}
<a href="#" class="btn btn-large btn-primary disabled"> <a href="#" class="btn btn-large btn-primary disabled">
<span class="icon-lock"></span> <i class="icon-lock"></i>
{% trans "Switch to this version" %} {% trans "Switch to this version" %}
</a> </a>
{% endif %} {% endif %}
...@@ -240,24 +240,24 @@ ...@@ -240,24 +240,24 @@
</header> </header>
<div class="modal-header"> <div class="modal-header">
<h1>{% trans "Merge with current" %}</h1> <h1>{% trans "Merge with current" %}</h1>
<p class="lead"><span class="icon-info-sign"></span> {% trans "When you merge a revision with the current, all data will be retained from both versions and merged at its approximate location from each revision." %} <strong>{% trans "After this, it's important to do a manual review." %}</strong></p> <p class="lead"><i class="icon-info-sign"></i> {% trans "When you merge a revision with the current, all data will be retained from both versions and merged at its approximate location from each revision." %} <strong>{% trans "After this, it's important to do a manual review." %}</strong></p>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<iframe name="mergeWindow"></iframe> <iframe name="mergeWindow"></iframe>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<a id="mergeModalBackToHistory" href="#" class="btn btn-large" data-dismiss="modal"> <a id="mergeModalBackToHistory" href="#" class="btn btn-large" data-dismiss="modal">
<span class="icon-circle-arrow-left"></span> <i class="icon-circle-arrow-left"></i>
{% trans "Back to history view" %} {% trans "Back to history view" %}
</a> </a>
{% if article|can_write:user %} {% if article|can_write:user %}
<a href="#" class="btn btn-large btn-primary merge-revision-commit"> <a href="#" class="btn btn-large btn-primary merge-revision-commit">
<span class="icon-file"></span> <i class="icon-file"></i>
{% trans "Create new merged version" %} {% trans "Create new merged version" %}
</a> </a>
{% else %} {% else %}
<a href="#" class="btn btn-large btn-primary disabled"> <a href="#" class="btn btn-large btn-primary disabled">
<span class="icon-lock"></span> <i class="icon-lock"></i>
{% trans "Create new merged version" %} {% trans "Create new merged version" %}
</a> </a>
{% endif %} {% endif %}
......
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
%> %>
%for ancestor in urlpath.cached_ancestors: %for ancestor in urlpath.cached_ancestors:
<li><a href="${reverse('wiki:get', kwargs={'path' : ancestor.path})}">${ancestor.article.current_revision.title}</a></li> <li><a href="${reverse('wiki:get', kwargs={'path' : ancestor.path})}">${ancestor.article.current_revision.title}</a></li>
<% <%
if not create_article_root and ancestor.article.can_write(user): if not create_article_root and ancestor.article.can_write(user):
create_article_root = ancestor create_article_root = ancestor
%> %>
%endfor %endfor
<li class="active"><a href="${reverse('wiki:get', kwargs={'path' : urlpath.path})}">${article.current_revision.title}</a></li> <li class="active"><a href="${reverse('wiki:get', kwargs={'path' : urlpath.path})}">${article.current_revision.title}</a></li>
<% <%
if not create_article_root and urlpath.article.can_write(user): if not create_article_root and urlpath.article.can_write(user):
create_article_root = urlpath create_article_root = urlpath
%> %>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</form> --> </form> -->
%if create_article_root: %if create_article_root:
<a class="add-article-btn btn pull-left" href="${reverse('wiki:create', kwargs={'path' : create_article_root.path})}" style="padding: 7px;"> <a class="add-article-btn btn pull-left" href="${reverse('wiki:create', kwargs={'path' : create_article_root.path})}" style="padding: 7px;">
<span class="icon-plus"></span> <i class="icon-plus"></i>
${_("Add article")} ${_("Add article")}
</a> </a>
%endif %endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment