-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #804 from dotKom/wiki-response-fix
Tried making the wiki-head a bit more responsive. Fixing #797
- Loading branch information
Showing
2 changed files
with
133 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% load i18n wiki_tags %}{% load url from future %} | ||
|
||
{% with selected_tab as selected %} | ||
|
||
<li class="pull-right{% if selected == "settings" %} active{% endif %}"> | ||
{% if not user.is_anonymous %} | ||
<a href="{% url 'wiki:settings' article_id=article.id path=urlpath.path %}"> | ||
<span class="icon-wrench"></span> | ||
<span class="hideme">{% trans "Settings" %}</span> | ||
</a> | ||
{% endif %} | ||
</li> | ||
|
||
{% for plugin in article_tabs %} | ||
<li class="pull-right{% if selected == plugin.slug %} active{% endif %}"> | ||
<a href="{% url 'wiki:plugin' slug=plugin.slug article_id=article.id path=urlpath.path %}"> | ||
<span class="{{ plugin.article_tab.1 }}"></span> | ||
<span class="hideme">{{ plugin.article_tab.0 }}</span> | ||
</a> | ||
</li> | ||
{% endfor %} | ||
|
||
<li class="pull-right{% if selected == "history" %} active{% endif %}"> | ||
<a href="{% url 'wiki:history' article_id=article.id path=urlpath.path %}"> | ||
<span class="icon-time"></span> | ||
<span class="hideme">{% trans "Changes" %}</span> | ||
</a> | ||
</li> | ||
|
||
{% if article|can_write:user and not article.current_revision.locked %} | ||
<li class="pull-right{% if selected == "edit" %} active{% endif %}"> | ||
<a href="{% url 'wiki:edit' article_id=article.id path=urlpath.path %}"> | ||
<span class="icon-edit"></span> | ||
<span class="hideme">{% trans "Edit" %}</span> | ||
</a> | ||
</li> | ||
{% else %} | ||
<li class="pull-right{% if selected == "source" %} active{% endif %}"> | ||
<a href="{% url 'wiki:source' article_id=article.id path=urlpath.path %}"> | ||
<span class="icon-lock"></span> | ||
<span class="hideme">{% trans "View Source" %}</span> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
<li class="pull-right{% if selected == "view" %} active{% endif %}"> | ||
<a href="{% url 'wiki:get' article_id=article.id path=urlpath.path %}"> | ||
<span class="icon-home"></span> | ||
<span class="hideme">{% trans "View" %}</span> | ||
</a> | ||
</li> | ||
|
||
{% endwith %} |