Patch #31356 » 0001-feature-my-projects-fav-user-icon.patch
| app/helpers/projects_helper.rb | ||
|---|---|---|
|
# Renders the projects index
|
||
|
def render_project_hierarchy(projects)
|
||
|
render_project_nested_lists(projects) do |project|
|
||
|
s = link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'icon icon-fav my-project' : nil}")
|
||
|
s = link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'icon icon-user my-project' : nil}")
|
||
|
if project.description.present?
|
||
|
s << content_tag('div', textilizable(project.short_description, :project => project), :class => 'wiki description')
|
||
|
end
|
||
| app/views/projects/index.html.erb | ||
|---|---|---|
|
<% if User.current.logged? %>
|
||
|
<p style="text-align:right;">
|
||
|
<span class="icon icon-fav my-project"><%= l(:label_my_projects) %></span>
|
||
|
<span class="icon icon-user my-project"><%= l(:label_my_projects) %></span>
|
||
|
</p>
|
||
|
<% end %>
|
||