"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
This commit is contained in:
Jean-Philippe Lang 2007-05-15 17:39:01 +00:00
parent 7b13b58a2f
commit 777c9acae8
11 changed files with 23 additions and 11 deletions

View File

@ -39,8 +39,19 @@
<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>
<li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></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>
<% end %>
@ -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">

View File

@ -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: Нова задача

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: 新しい問題

View File

@ -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

View File

@ -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

View File

@ -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: 新建任务