diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-21 16:40:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-21 16:40:56 +0000 |
commit | 623d2f25b1ec3b98d945f1eb2a0ffb9a8d6ddf2b (patch) | |
tree | 53d0f17332bd7d0c24087d29bd84dfa6362ed340 /app/views/projects/list.rhtml | |
parent | 634d3557f2064e841d712743ea6639b67a8a7d38 (diff) | |
download | redmine-623d2f25b1ec3b98d945f1eb2a0ffb9a8d6ddf2b.tar.gz redmine-623d2f25b1ec3b98d945f1eb2a0ffb9a8d6ddf2b.zip |
Projects menu item now shows the list of public projects and projects for which the user is a member (marked with a star).
If current user is admin, private projects are also listed.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@460 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/list.rhtml')
-rw-r--r-- | app/views/projects/list.rhtml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/app/views/projects/list.rhtml b/app/views/projects/list.rhtml index f83dc0d06..54cc78738 100644 --- a/app/views/projects/list.rhtml +++ b/app/views/projects/list.rhtml @@ -1,17 +1,18 @@ -<h2><%=l(:label_public_projects)%></h2> +<h2><%=l(:label_project_plural)%></h2> <table class="list"> <thead><tr> <%= sort_header_tag("#{Project.table_name}.name", :caption => l(:label_project)) %> - <th><%=l(:field_description)%></th> <th><%=l(:field_parent)%></th> <%= sort_header_tag("#{Project.table_name}.created_on", :caption => l(:field_created_on)) %> </tr></thead> <tbody> <% for project in @projects %> <tr class="<%= cycle("odd", "even") %>"> - <td><%= link_to project.name, :action => 'show', :id => project %></td> - <td><%=h project.description %></td> + <td> + <%= link_to project.name, {:action => 'show', :id => project}, :class => (@logged_in_user && @logged_in_user.role_for_project(project) ? "icon icon-fav" : "") %><br /> + <%=h project.description %> + </td> <td><%= link_to(project.parent.name, :action => 'show', :id => project.parent) unless project.parent.nil? %></td> <td align="center"><%= format_date(project.created_on) %></td> </tr> @@ -19,5 +20,11 @@ </tbody> </table> +<% if @logged_in_user %> +<div class="contextual"> +<span class="icon icon-fav"><%= l(:label_my_projects) %></span> +</div> +<% end %> + <%= pagination_links_full @project_pages %> -[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]
\ No newline at end of file +[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ] |