Commit ab6734d6 authored by Jitka Novotna's avatar Jitka Novotna

button 'project' changing labels

parent fc21bd6e
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
<ul class="nav nav-pills"> <ul class="nav nav-pills">
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li class="dropdown active"> <li class="dropdown active">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" id="views-title">
{% trans "Projects" %} <span class="caret"></span> {% trans "Projects" %} <span class="caret"></span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu" id="views-menu">
<li><a href="#your-translations" data-toggle="tab">{% trans "Your translations" %}</a></li> <li><a href="#your-translations" data-toggle="tab">{% trans "Your translations" %}</a></li>
<li><a href="#your-languages" data-toggle="tab">{% trans "Your languages" %}</a></li> <li><a href="#your-languages" data-toggle="tab">{% trans "Your languages" %}</a></li>
<li><a href="#projects" data-toggle="tab">{% trans "All projects" %}</a></li> <li><a href="#projects" data-toggle="tab">{% trans "All projects" %}</a></li>
...@@ -51,6 +51,14 @@ ...@@ -51,6 +51,14 @@
</li> </li>
</ul> </ul>
<script>
$("#views-menu li a").click(function(){
$("#views-title").html($(this).text()+' <span class="caret"></span>');
});
</script>
<div class="tab-content"> <div class="tab-content">
{% if user.is_authenticated %} {% if user.is_authenticated %}
<div class="tab-pane active" id="your-translations"> <div class="tab-pane active" id="your-translations">
......
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