1. Sayan Chowdhury
  2. sayan-transifex

Commits

Antonios E Garnelis  committed 15dde64

Customize project_detail for Outsourcing access project

  • Participants
  • Parent commits 47cefeb
  • Branches default

Comments (0)

Files changed (3)

File transifex/templates/projects/project_detail.html

View file
 {%endif%}
 {% endwith %}
 
-
+{% if project.outsource %}
+{% url project_detail project.outsource.slug as url_hub_project %}
+<p class="i16 infomsg" style="margin-top:4em;">{% blocktrans with project.outsource.name as hub_project %}This project does not maintain its own languages but has chosen to re-use the language translations of project <a href="{{ url_hub_project }}">{{hub_project}}</a>{% endblocktrans %}</p>
+{% else %}
 {% include "teams/team_list.html" %}
+{% endif %}
 
 {% include "projects/release_list.html" %}
 

File transifex/templates/projects/project_menu.html

View file
 {% endblock %}
 
 {% block content_header_sec %}
-
+	{% if project.outsource %}
+  <span id="private_project_banner" class="project-sign" style="background:url({{ STATIC_URL }}images/icons/outsource-project.png)center top no-repeat;">
+	<p>{% trans "Outsourcing"%}</p>
+	</span>
+	{% endif %}
 	{% if project.is_hub %}
   <span id="private_project_banner" class="project-sign" style="background:url({{ STATIC_URL }}images/icons/hub-project.png)center top no-repeat;">
 	<p>{% trans "Hub"%}</p>
 	</span>
 	{% endif %}
-	
-	
 	{% if project.private %}
 	<span id="private_project_banner" class="project-sign" style="background:url({{ STATIC_URL }}images/icons/private-project.png)center top no-repeat;">
 	<p>{% trans "Private"%}</p>

File transifex/templates/teams/team_list.html

View file
     </ul>
   </div>
   {% else %}
-  <p>{% trans "No translation team has been created yet. Why don't you start one?" %}</p>
+  <p class="i16 infomsg">{% trans "No translation team has been created yet. Why don't you start one?" %}</p>
   {% endif %}
   {% endwith %}