Commit 9ccb216c by benjaoming

fix bootstrap btn-default class

parent d8149a6e
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn"> <a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
</a> </a>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn"> <a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
</a> </a>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
{% trans "Download" %} {% trans "Download" %}
</a> </a>
{% if revision.attachment.article|can_write:user %} {% if revision.attachment.article|can_write:user %}
<button{% if revision == attachment.current_revision %} disabled="disabled"{% endif %} class="btn"> <button{% if revision == attachment.current_revision %} disabled="disabled"{% endif %} class="btn btn-default">
<span class="icon-flag"></span> <span class="icon-flag"></span>
{% trans "Use this!" %} {% trans "Use this!" %}
</button> </button>
......
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
<td style="width: 25%; text-align: right; white-space: nowrap;" rowspan="2"> <td style="width: 25%; text-align: right; white-space: nowrap;" rowspan="2">
{% if attachment|can_write:user %} {% if attachment|can_write:user %}
{% if not attachment.current_revision.deleted %} {% if not attachment.current_revision.deleted %}
<a href="{% url 'wiki:attachments_replace' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn">{% trans "Replace" %}</a> <a href="{% url 'wiki:attachments_replace' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn btn-default">{% trans "Replace" %}</a>
{% if attachment.article = article %} {% if attachment.article = article %}
<a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn">{% trans "Delete" %}</a> <a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn btn-default">{% trans "Delete" %}</a>
{% else %} {% else %}
<a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn">{% trans "Detach" %}</a> <a href="{% url 'wiki:attachments_delete' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn btn-default">{% trans "Detach" %}</a>
{% endif %} {% endif %}
{% else %} {% else %}
Deleted Deleted
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<p>{% trans "You can reuse files from other articles. These files are subject to updates on other articles which may or may not be a good thing." %}</p> <p>{% trans "You can reuse files from other articles. These files are subject to updates on other articles which may or may not be a good thing." %}</p>
<form method="GET" action="{% url 'wiki:attachments_search' path=urlpath.path article_id=article.id %}" class="form-search"> <form method="GET" action="{% url 'wiki:attachments_search' path=urlpath.path article_id=article.id %}" class="form-search">
{{ search_form.query }} {{ search_form.query }}
<button class="btn"> <button class="btn btn-default">
<span class="icon-search"></span> <span class="icon-search"></span>
{% trans "Search" %} {% trans "Search" %}
</button> </button>
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
{% if attachment.current_revision.previous_revision.id %} {% if attachment.current_revision.previous_revision.id %}
<form method="POST" action="{% url 'wiki:attachments_revision_change' path=urlpath.path article_id=article.id attachment_id=attachment.id revision_id=attachment.current_revision.previous_revision.id %}" style="margin:0; padding:0;"> <form method="POST" action="{% url 'wiki:attachments_revision_change' path=urlpath.path article_id=article.id attachment_id=attachment.id revision_id=attachment.current_revision.previous_revision.id %}" style="margin:0; padding:0;">
{% csrf_token %} {% csrf_token %}
<button class="btn"> <button class="btn btn-default">
{% trans "Restore" %} {% trans "Restore" %}
</button> </button>
</form> </form>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" id="attachment_form" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn"> <a href="{% url 'wiki:attachments_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
</a> </a>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<form method="GET" action="{% url 'wiki:attachments_search' path=urlpath.path article_id=article.id %}" class="form-search"> <form method="GET" action="{% url 'wiki:attachments_search' path=urlpath.path article_id=article.id %}" class="form-search">
{{ search_form.query }} {{ search_form.query }}
<button class="btn"> <button class="btn btn-default">
<span class="icon-search"></span> <span class="icon-search"></span>
{% trans "Search files and articles" %} {% trans "Search files and articles" %}
</button> </button>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<td style="text-align: right"> <td style="text-align: right">
<form method="POST" action="{% url 'wiki:attachments_add' path=urlpath.path article_id=article.id attachment_id=attachment.id %}"> <form method="POST" action="{% url 'wiki:attachments_add' path=urlpath.path article_id=article.id attachment_id=attachment.id %}">
{% csrf_token %} {% csrf_token %}
<a href="{% url 'wiki:attachments_download' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn"> <a href="{% url 'wiki:attachments_download' path=urlpath.path article_id=article.id attachment_id=attachment.id %}" class="btn btn-default">
<span class="icon-download"></span> <span class="icon-download"></span>
{% trans "Download" %} {% trans "Download" %}
</a> </a>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<p> <p>
<input type="text" class="page_title_query" id="links_page_title_query" value="" placeholder="Type to search..." style="max-width: 90%;" /> <input type="text" class="page_title_query" id="links_page_title_query" value="" placeholder="Type to search..." style="max-width: 90%;" />
<button type="button" class="btn" onclick="wikiInsertLink()"> <button type="button" class="btn btn-default" onclick="wikiInsertLink()">
{% trans "Insert" %} {% trans "Insert" %}
</button> </button>
</p> </p>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<form method="POST" class="form-horizontal" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn"> <a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
</a> </a>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<form method="POST" class="form-horizontal" enctype="multipart/form-data"> <form method="POST" class="form-horizontal" enctype="multipart/form-data">
{% wiki_form form %} {% wiki_form form %}
<div class="form-group form-actions"> <div class="form-group form-actions">
<a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn"> <a href="{% url 'wiki:images_index' path=urlpath.path article_id=article.id %}" class="btn btn-default">
<span class="icon-arrow-left"></span> <span class="icon-arrow-left"></span>
{% trans "Go back" %} {% trans "Go back" %}
</a> </a>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<p> <p>
<input type="text" class="page_title_query" id="links_page_title_query" value="" placeholder="Type to search..." style="max-width: 90%;" /> <input type="text" class="page_title_query" id="links_page_title_query" value="" placeholder="Type to search..." style="max-width: 90%;" />
<button type="button" class="btn" onclick="wikiInsertLink()"> <button type="button" class="btn btn-default" onclick="wikiInsertLink()">
{% trans "Insert" %} {% trans "Insert" %}
</button> </button>
</p> </p>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<h2>{% trans "Restore" %}</h2> <h2>{% trans "Restore" %}</h2>
<p>{% trans "You may restore this article and its children by clicking restore." %}</p> <p>{% trans "You may restore this article and its children by clicking restore." %}</p>
<p> <p>
<a href="?restore=1" class="btn"> <a href="?restore=1" class="btn btn-default">
<span class="icon-repeat"></span> <span class="icon-repeat"></span>
{% trans "Restore" %} {% trans "Restore" %}
</a> </a>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<form method="POST" class="form form-inline"> <form method="POST" class="form form-inline">
{% csrf_token %} {% csrf_token %}
{% wiki_form purge_form %} {% wiki_form purge_form %}
<button class="btn"> <button class="btn btn-default">
<span class="icon-remove"></span> <span class="icon-remove"></span>
{% trans "Purge" %} {% trans "Purge" %}
</button> </button>
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
<div class="well well-small"> <div class="well well-small">
<div class="btn-group pull-left"> <div class="btn-group pull-left">
{% if urlpath.parent %} {% if urlpath.parent %}
<a href="{% url 'wiki:dir' path=urlpath.parent.path %}" class="btn"> <a href="{% url 'wiki:dir' path=urlpath.parent.path %}" class="btn btn-default">
<span class="icon-arrow-up"></span> <span class="icon-arrow-up"></span>
{% trans "Up one level" %} {% trans "Up one level" %}
</a> </a>
{% endif %} {% endif %}
<a href="{% url 'wiki:create' path=urlpath.path %}" class="btn"> <a href="{% url 'wiki:create' path=urlpath.path %}" class="btn btn-default">
<span class="icon-plus"></span> <span class="icon-plus"></span>
{% trans "Add article" %} {% trans "Add article" %}
</a> </a>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="missing"> <div class="missing">
<p>{% trans "This article was not found, and neither was its parent article." %}</p> <p>{% trans "This article was not found, and neither was its parent article." %}</p>
<p> <p>
<a href="{% url 'wiki:get' path='' %}" class="btn"><i class="icon-arrow-left"></i> {% trans "Start page" %}</a> <a href="{% url 'wiki:get' path='' %}" class="btn btn-default"><i class="icon-arrow-left"></i> {% trans "Start page" %}</a>
</p> </p>
</div> </div>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{% if article %} {% if article %}
<p> <p>
<a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn"><i class="icon-arrow-left"></i> {% trans "Back to" %} {{ article.current_revision.title }}</a> <a href="{% url 'wiki:get' path=urlpath.path article_id=article.id %}" class="btn btn-default"><i class="icon-arrow-left"></i> {% trans "Back to" %} {{ article.current_revision.title }}</a>
</p> </p>
{% endif %} {% endif %}
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
{% trans "Preview this revision" %} {% trans "Preview this revision" %}
</a> </a>
{% else %} {% else %}
<button type="submit" class="btn" onclick="$('#previewModal').modal('show'); this.form.target='previewWindow'; this.form.r.value='{{ revision.id }}'; this.form.action='{% url 'wiki:preview_revision' article.id %}'; $('#previewModal .switch-to-revision').attr('href', '{% url 'wiki:change_revision' path=urlpath.path article_id=article.id revision_id=revision.id %}')"> <button type="submit" class="btn btn-default" onclick="$('#previewModal').modal('show'); this.form.target='previewWindow'; this.form.r.value='{{ revision.id }}'; this.form.action='{% url 'wiki:preview_revision' article.id %}'; $('#previewModal .switch-to-revision').attr('href', '{% url 'wiki:change_revision' path=urlpath.path article_id=article.id revision_id=revision.id %}')">
<span class="icon-eye-open"></span> <span class="icon-eye-open"></span>
{% trans "Preview this revision" %} {% trans "Preview this revision" %}
</button> </button>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
{% endif %} {% endif %}
<p> <p>
<a href="{% url 'wiki:get' article_id=article.id path=urlpath.path %}" class="btn"> <a href="{% url 'wiki:get' article_id=article.id path=urlpath.path %}" class="btn btn-default">
{% trans "Back to article" %} {% trans "Back to article" %}
</a> </a>
</p> </p>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<p class="lead"> <p class="lead">
<div class="pull-right"> <div class="pull-right">
{{ search_form.q }} {{ search_form.q }}
<button class="btn"><span class="icon-search"></span></button> <button class="btn btn-default"><span class="icon-search"></span></button>
</div> </div>
<p>{% blocktrans with paginator.object_list.count as cnt %}Your search returned <strong>{{ cnt }}</strong> results.{% endblocktrans %}</p> <p>{% blocktrans with paginator.object_list.count as cnt %}Your search returned <strong>{{ cnt }}</strong> results.{% endblocktrans %}</p>
<div class="clearfix"></div> <div class="clearfix"></div>
......
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