"My projects" are now listed under the drop-down "Projects" top menu item (20 projects max.).

The left menu section for "My projects" is removed.
Patch by Damien McKenna (slightly edited).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@534 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/351/head
Jean-Philippe Lang 18 years ago
parent 7b13b58a2f
commit 777c9acae8
  1. 20
      app/views/layouts/base.rhtml
  2. 1
      lang/bg.yml
  3. 1
      lang/de.yml
  4. 1
      lang/en.yml
  5. 1
      lang/es.yml
  6. 1
      lang/fr.yml
  7. 1
      lang/it.yml
  8. 1
      lang/ja.yml
  9. 1
      lang/pt-br.yml
  10. 1
      lang/pt.yml
  11. 1
      lang/zh.yml

@ -39,7 +39,18 @@
<ul>
<li><%= link_to l(:label_home), { :controller => 'welcome' }, :class => "icon icon-home" %></li>
<li><%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => "icon icon-mypage" %></li>
<% if loggedin? and @logged_in_user.memberships.any? %>
<li class="submenu"><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuAllProjects');" %></li>
<div id="menuAllProjects" class="menu" onmouseover="menuMouseover(event)">
<%= link_to l(:label_project_all), {:controller => 'projects' }, :class => "menuItem" %>
<% @logged_in_user.memberships.find(:all, :limit => 20).each do |membership| %>
<%= link_to membership.project.name, {:controller => 'projects',:action => 'show', :id => membership.project }, :class => "menuItem" %>
<% end %>
</div>
<% else %>
<li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></li>
<% end %>
<% unless @project.nil? || @project.id.nil? %>
<li class="submenu"><%= link_to @project.name, { :controller => 'projects', :action => 'show', :id => @project }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuProject');" %></li>
@ -111,15 +122,6 @@
<li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li>
</ul>
<% end %>
<% if loggedin? and @logged_in_user.memberships.length > 0 %>
<h2><%=l(:label_my_projects) %></h2>
<ul class="menublock">
<% for membership in @logged_in_user.memberships %>
<li><%= link_to membership.project.name, :controller => 'projects', :action => 'show', :id => membership.project %></li>
<% end %>
</ul>
<% end %>
</div>
<div id="content">

@ -179,6 +179,7 @@ label_user_new: Нов потребител
label_project: Проект
label_project_new: Нов проект
label_project_plural: Проекти
label_project_all: All Projects
label_project_latest: Последни проекти
label_issue: Задача
label_issue_new: Нова задача

@ -179,6 +179,7 @@ label_user_new: Neuer Benutzer
label_project: Projekt
label_project_new: Neues Projekt
label_project_plural: Projekte
label_project_all: All Projects
label_project_latest: Neueste Projekte
label_issue: Ticket
label_issue_new: Neues Ticket

@ -179,6 +179,7 @@ label_user_new: New user
label_project: Project
label_project_new: New project
label_project_plural: Projects
label_project_all: All Projects
label_project_latest: Latest projects
label_issue: Issue
label_issue_new: New issue

@ -179,6 +179,7 @@ label_user_new: Nuevo usuario
label_project: Proyecto
label_project_new: Nuevo proyecto
label_project_plural: Proyectos
label_project_all: All Projects
label_project_latest: Los proyectos más últimos
label_issue: Petición
label_issue_new: Nueva petición

@ -179,6 +179,7 @@ label_user_new: Nouvel utilisateur
label_project: Projet
label_project_new: Nouveau projet
label_project_plural: Projets
label_project_all: Tous les projets
label_project_latest: Derniers projets
label_issue: Demande
label_issue_new: Nouvelle demande

@ -179,6 +179,7 @@ label_user_new: Nuovo utente
label_project: Progetto
label_project_new: Nuovo progetto
label_project_plural: Progetti
label_project_all: All Projects
label_project_latest: Ultimi progetti registrati
label_issue: Contesto
label_issue_new: Nuovo contesto

@ -180,6 +180,7 @@ label_user_new: 新しいユーザ
label_project: プロジェクト
label_project_new: 新しいプロジェクト
label_project_plural: プロジェクト
label_project_all: All Projects
label_project_latest: 最近のプロジェクト
label_issue: 問題
label_issue_new: 新しい問題

@ -179,6 +179,7 @@ label_user_new: Novo usuario
label_project: Projeto
label_project_new: Novo projeto
label_project_plural: Projetos
label_project_all: All Projects
label_project_latest: Ultimos projetos
label_issue: Tarefa
label_issue_new: Nova tarefa

@ -179,6 +179,7 @@ label_user_new: Novo usuário
label_project: Projeto
label_project_new: Novo projeto
label_project_plural: Projetos
label_project_all: All Projects
label_project_latest: Últimos projetos
label_issue: Tarefa
label_issue_new: Nova tarefa

@ -182,6 +182,7 @@ label_user_new: 新建用户
label_project: 项目
label_project_new: 新建项目
label_project_plural: 项目列表
label_project_all: All Projects
label_project_latest: 最近的项目列表
label_issue: 任务
label_issue_new: 新建任务

Loading…
Cancel
Save