Commit 81a01cb8 authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

parent 4498dc30
/*
* Title: jQuery string replace
* Description: customize header link in order to capitalize first letter using jquery replaceWith method.
*
* Copyright (c) 2012 Ubuntu-it Ask Team - https://launchpad.net/~ubuntu-it-ask
* GNU GPL 3 LICENSE
*/
$('#header li #nav_index').replaceWith('<a id="nav_index" href="/">Home</a>');
$('#header li #nav_questions').replaceWith('<a id="nav_questions" href="/questions/">Domande</a>');
$('#header li #nav_tags').replaceWith('<a id="nav_tag" href="/tags/">Tag</a>');
$('#header li #nav_users').replaceWith('<a id="nav_users" href="/users/">Utenti</a>');
$('#header li #nav_badges').replaceWith('<a id="nav_badges" href="/badges/">Badge</a>');
$('#header li #nav_unanswered').replaceWith('<a id="nav_unanswered" href="/questions/unanswered/">Senza risposta</a>');
$('#header li #nav_ask').replaceWith('<a id="nav_ask" class="special" href="/questions/ask/">Chiedi</a>');
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
<script type="text/javascript" src="{% media "/media/js/accessibility.js" %}"></script> <script type="text/javascript" src="{% media "/media/js/accessibility.js" %}"></script>
<script type="text/javascript" src="{% media "/media/js/cookies.js" %}"></script> <script type="text/javascript" src="{% media "/media/js/cookies.js" %}"></script>
<script type="text/javascript" src="{% media "/media/js/osqa.main.js" %}"></script> <script type="text/javascript" src="{% media "/media/js/osqa.main.js" %}"></script>
<script type="text/javascript" src="/m/light/media/js/jquery.string.replace.js"></script>
{% if user_messages %} {% if user_messages %}
<style type="text/css"> <style type="text/css">
body { margin-top:2.4em; } body { margin-top:2.4em; }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{% loopregistry page_top_tabs %}{% spaceless %} {% loopregistry page_top_tabs %}{% spaceless %}
<li><a id="nav_{{ tab_name }}"{% ifequal tab tab_name %} class="on"{% endifequal %} href="{{ tab_url }}" >{{ tab_title }}</a></li> <li><a id="nav_{{ tab_name }}"{% ifequal tab tab_name %} class="on"{% endifequal %} href="{{ tab_url }}" >{{ tab_title }}</a></li>
{% endspaceless %}{% endloopregistry %} {% endspaceless %}{% endloopregistry %}
<li><a id="nav_{{ tab_name }}" href="{% url ask %}" >{% trans "ask a question" %}</a></li> <li><a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a></li>
</ul> </ul>
<div id="logo"> <div id="logo">
......
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