Project

General

Profile

Patch #31356 » 0001-feature-my-projects-fav-user-icon.patch

Jens Krämer, 2019-05-13 11:06

View differences:

app/helpers/projects_helper.rb
59 59
  # Renders the projects index
60 60
  def render_project_hierarchy(projects)
61 61
    render_project_nested_lists(projects) do |project|
62
      s = link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'icon icon-fav my-project' : nil}")
62
      s = link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'icon icon-user my-project' : nil}")
63 63
      if project.description.present?
64 64
        s << content_tag('div', textilizable(project.short_description, :project => project), :class => 'wiki description')
65 65
      end
app/views/projects/index.html.erb
20 20

  
21 21
<% if User.current.logged? %>
22 22
<p style="text-align:right;">
23
<span class="icon icon-fav my-project"><%= l(:label_my_projects) %></span>
23
<span class="icon icon-user my-project"><%= l(:label_my_projects) %></span>
24 24
</p>
25 25
<% end %>
26 26

  
(1-1/4)