Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #52 from transifex/maintainer_tab_perms
Browse files Browse the repository at this point in the history
Maintainer tab perms
  • Loading branch information
Themis Savvidis committed Apr 26, 2012
2 parents 46b61c7 + ace4a47 commit 0a3c332
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion transifex/templates/projects/project_detail_languages.html
Expand Up @@ -27,7 +27,7 @@ <h3 class="sh-label notopmargin">
<a class="i16 language-add" id="request-team-button" href="javascript:;">{% trans "Request language" %}</a>
{% endif %}
{% if not project.anyone_submit and not project.outsource %}
{% if perms.projects.change_team or is_maintainer %}
{% if is_maintainer %}
<a class="i16 nude-button add" href="{% url team_create project.slug %}">{% trans "Create language" %}</a>
{% endif %}
{% endif %}
Expand Down
10 changes: 5 additions & 5 deletions transifex/templates/teams/team_menu.html
Expand Up @@ -6,6 +6,7 @@
{% load permissions %}
{% load txpermissions %}


{% block extra_head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url project_feed param=project.slug %}" />
{% endblock %}
Expand Down Expand Up @@ -62,6 +63,8 @@ <h2 class="pagetitle{% if short_desc %} with_description{% endif %}">


{% block header_menu %}
{% get_permission "project_perm.maintain" for request.user and project as "is_maintainer" %}
{% get_permission "project_perm.coordinate_team" for request.user and project,language as "is_coordinator" %}
{% if not project.anyone_submit %}
<div id="teamcode-arrow"><div id="teamcode">{{ language.code }}</div><span></span></div>
<div class="tab-wrapper grid_10">
Expand All @@ -71,16 +74,13 @@ <h2 class="pagetitle{% if short_desc %} with_description{% endif %}">
<li class="{% if project_team_members %}selected{% endif %}"><a href="{% url team_members project.slug language.code %}">{% trans "Members" %}</a></li>
{% endif %}
{% hook "team.html" menu %}
{% if perms.projects.change_team or is_coordinator %}
<li class="{% if project_team_form %}selected{% endif %}"><a href="{% url team_update project.slug language.code %}">{% trans "Edit language-team" %}</a></li>
{% if is_maintainer or is_coordinator %}
<li class="{% if project_team_form %}selected{% endif %}"><a href="{% url team_update project.slug language.code %}">{% trans "Edit language team" %}</a></li>
{% endif %}
</ul>
</div>
{% endif %}
{% endblock %}




{% block content_main %}{% endblock %}
{% block content_footer %}{% endblock %}

0 comments on commit 0a3c332

Please sign in to comment.