@@ -39,8 +39,19 | |||
|
39 | 39 | <ul> |
|
40 | 40 | <li><%= link_to l(:label_home), { :controller => 'welcome' }, :class => "icon icon-home" %></li> |
|
41 | 41 | <li><%= link_to l(:label_my_page), { :controller => 'my', :action => 'page'}, :class => "icon icon-mypage" %></li> |
|
42 | <li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></li> | |
|
43 | ||
|
42 | ||
|
43 | <% if loggedin? and @logged_in_user.memberships.any? %> | |
|
44 | <li class="submenu"><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuAllProjects');" %></li> | |
|
45 | <div id="menuAllProjects" class="menu" onmouseover="menuMouseover(event)"> | |
|
46 | <%= link_to l(:label_project_all), {:controller => 'projects' }, :class => "menuItem" %> | |
|
47 | <% @logged_in_user.memberships.find(:all, :limit => 20).each do |membership| %> | |
|
48 | <%= link_to membership.project.name, {:controller => 'projects',:action => 'show', :id => membership.project }, :class => "menuItem" %> | |
|
49 | <% end %> | |
|
50 | </div> | |
|
51 | <% else %> | |
|
52 | <li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></li> | |
|
53 | <% end %> | |
|
54 | ||
|
44 | 55 | <% unless @project.nil? || @project.id.nil? %> |
|
45 | 56 | <li class="submenu"><%= link_to @project.name, { :controller => 'projects', :action => 'show', :id => @project }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuProject');" %></li> |
|
46 | 57 | <% end %> |
@@ -111,15 +122,6 | |||
|
111 | 122 | <li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li> |
|
112 | 123 | </ul> |
|
113 | 124 | <% end %> |
|
114 | ||
|
115 | <% if loggedin? and @logged_in_user.memberships.length > 0 %> | |
|
116 | <h2><%=l(:label_my_projects) %></h2> | |
|
117 | <ul class="menublock"> | |
|
118 | <% for membership in @logged_in_user.memberships %> | |
|
119 | <li><%= link_to membership.project.name, :controller => 'projects', :action => 'show', :id => membership.project %></li> | |
|
120 | <% end %> | |
|
121 | </ul> | |
|
122 | <% end %> | |
|
123 | 125 | </div> |
|
124 | 126 | |
|
125 | 127 | <div id="content"> |
@@ -179,6 +179,7 label_user_new: Нов потребител | |||
|
179 | 179 | label_project: Проект |
|
180 | 180 | label_project_new: Нов проект |
|
181 | 181 | label_project_plural: Проекти |
|
182 | label_project_all: All Projects | |
|
182 | 183 | label_project_latest: Последни проекти |
|
183 | 184 | label_issue: Задача |
|
184 | 185 | label_issue_new: Нова задача |
@@ -179,6 +179,7 label_user_new: Neuer Benutzer | |||
|
179 | 179 | label_project: Projekt |
|
180 | 180 | label_project_new: Neues Projekt |
|
181 | 181 | label_project_plural: Projekte |
|
182 | label_project_all: All Projects | |
|
182 | 183 | label_project_latest: Neueste Projekte |
|
183 | 184 | label_issue: Ticket |
|
184 | 185 | label_issue_new: Neues Ticket |
@@ -179,6 +179,7 label_user_new: New user | |||
|
179 | 179 | label_project: Project |
|
180 | 180 | label_project_new: New project |
|
181 | 181 | label_project_plural: Projects |
|
182 | label_project_all: All Projects | |
|
182 | 183 | label_project_latest: Latest projects |
|
183 | 184 | label_issue: Issue |
|
184 | 185 | label_issue_new: New issue |
@@ -179,6 +179,7 label_user_new: Nuevo usuario | |||
|
179 | 179 | label_project: Proyecto |
|
180 | 180 | label_project_new: Nuevo proyecto |
|
181 | 181 | label_project_plural: Proyectos |
|
182 | label_project_all: All Projects | |
|
182 | 183 | label_project_latest: Los proyectos más últimos |
|
183 | 184 | label_issue: Petición |
|
184 | 185 | label_issue_new: Nueva petición |
@@ -179,6 +179,7 label_user_new: Nouvel utilisateur | |||
|
179 | 179 | label_project: Projet |
|
180 | 180 | label_project_new: Nouveau projet |
|
181 | 181 | label_project_plural: Projets |
|
182 | label_project_all: Tous les projets | |
|
182 | 183 | label_project_latest: Derniers projets |
|
183 | 184 | label_issue: Demande |
|
184 | 185 | label_issue_new: Nouvelle demande |
@@ -179,6 +179,7 label_user_new: Nuovo utente | |||
|
179 | 179 | label_project: Progetto |
|
180 | 180 | label_project_new: Nuovo progetto |
|
181 | 181 | label_project_plural: Progetti |
|
182 | label_project_all: All Projects | |
|
182 | 183 | label_project_latest: Ultimi progetti registrati |
|
183 | 184 | label_issue: Contesto |
|
184 | 185 | label_issue_new: Nuovo contesto |
@@ -180,6 +180,7 label_user_new: 新しいユーザ | |||
|
180 | 180 | label_project: プロジェクト |
|
181 | 181 | label_project_new: 新しいプロジェクト |
|
182 | 182 | label_project_plural: プロジェクト |
|
183 | label_project_all: All Projects | |
|
183 | 184 | label_project_latest: 最近のプロジェクト |
|
184 | 185 | label_issue: 問題 |
|
185 | 186 | label_issue_new: 新しい問題 |
@@ -179,6 +179,7 label_user_new: Novo usuario | |||
|
179 | 179 | label_project: Projeto |
|
180 | 180 | label_project_new: Novo projeto |
|
181 | 181 | label_project_plural: Projetos |
|
182 | label_project_all: All Projects | |
|
182 | 183 | label_project_latest: Ultimos projetos |
|
183 | 184 | label_issue: Tarefa |
|
184 | 185 | label_issue_new: Nova tarefa |
@@ -179,6 +179,7 label_user_new: Novo usuário | |||
|
179 | 179 | label_project: Projeto |
|
180 | 180 | label_project_new: Novo projeto |
|
181 | 181 | label_project_plural: Projetos |
|
182 | label_project_all: All Projects | |
|
182 | 183 | label_project_latest: Últimos projetos |
|
183 | 184 | label_issue: Tarefa |
|
184 | 185 | label_issue_new: Nova tarefa |
General Comments 0
You need to be logged in to leave comments.
Login now