Commits

Diego Búrigo Zacarão committed 6e24cde

Added lock warning in a proper way

Comments (0)

Files changed (2)

transifex/media/css/base.css

   cursor: pointer;
 }
 
+a.buttonized2_warning:hover{
+  color: #E04040;
+}
+
 a.buttonized2{
   color:#555;
 }

transifex/templates/resources/resource_actions.html

       {% else %}
         {% if can_submit_translation and resource.accept_translations %}
          {% if stats.lock.valid and stats.lock.owner != request.user %}
-         <a class="i16 tick_disabled buttonized2_disabled tipsy_enable" id="translate_now" title="{% trans "This resource is currently locked by someone else" %}" >{% trans "Translate Now" %}</a>
+         <a class="i16 tick buttonized2 buttonized2_warning tipsy_enable" id="translate_now" href="{% url translate_resource project.slug resource.slug target_language.code %}" title="{% trans "This resource is currently locked by someone else" %}" >{% trans "Translate Now" %}</a>
          {% else %}
           <a class="i16 tick buttonized2" id="translate_now" href="{% url translate_resource project.slug resource.slug target_language.code %}">{% trans "Translate Now" %}</a>
          {% endif %}