Project

General

Profile

Feature #344 » 10824_enhanced_projects_menu.diff

Damien McKenna, 2008-02-03 11:05

View differences:

app/views/layouts/base.rhtml (working copy)
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
	<li class="submenu"><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuProject');" %></li>
43
  <div id="menuProject" class="menu" onmouseover="menuMouseover(event)">
44
    <%= link_to l(:label_project_plural_all), {:controller => 'projects' }, :class => "menuItem" %>
45
	<% if loggedin? and @logged_in_user.memberships.length > 0 %>
46
		<% for membership in @logged_in_user.memberships %>	
47
      <%= link_to membership.project.name, {:controller => 'projects',:action => 'show', :id => membership.project }, :class => "menuItem" %>
48
		<% end %>
49
	<% end %>
50
	</div>
51

  
44 52
    <% unless @project.nil? || @project.id.nil? %>
45 53
        <li class="submenu"><%= link_to @project.name, { :controller => 'projects', :action => 'show', :id => @project }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuProject');"  %></li>
46 54
    <% end %>
......
111 119
				<li><%= link_to_if_authorized l(:label_settings), :controller => 'projects', :action => 'settings', :id => @project %></li>
112 120
			</ul>
113 121
		<% 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 122
	</div>
124 123
	
125 124
	<div id="content">
lang/en.yml (working copy)
179 179
label_project: Project
180 180
label_project_new: New project
181 181
label_project_plural: Projects
182
label_project_plural_all: All Projects
182 183
label_project_latest: Latest projects
183 184
label_issue: Issue
184 185
label_issue_new: New issue
(1-1/2)