Commit 1aeece65 authored by Leo Iannacone's avatar Leo Iannacone

Capitalize via css instead of js

parent 49cf5c74
/*
* Title: jQuery header 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>');
......@@ -242,6 +242,7 @@ blockquote blockquote {
margin: 0;
padding-right: 2px;
list-style: none;
text-transform: capitalize;
}
#header li a {
......
......@@ -11,8 +11,6 @@
<li><a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a></li>
</ul>
<script type="text/javascript" src="/m/light/media/js/ask.jquery.header.string.replace.js"></script>
<div id="logo">
<div id="ubuntu-it-sites">
<a id="" href="http://www.ubuntu-it.org">web</a>
......
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