Project

General

Profile

Patch #31356 » 0001-swaps-out-the-icon-fav-for-icon-user-on-projects-ind.patch

updated patch that keeps the icon positioning at the end of the project name - Jens Krämer, 2019-05-13 13:28

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

  
public/stylesheets/application.css
647 647
#projects-index ul.projects div.description {
648 648
  padding-top: 0.5em;
649 649
}
650
#projects-index a.icon-fav {padding-left:0; padding-right:20px; background-position:98% 50%;}
650
#projects-index a.icon-user {padding-left:0; padding-right:20px; background-position:98% 50%;}
651 651

  
652 652
#notified-projects>ul, #tracker_project_ids>ul, #custom_field_project_ids>ul {max-height:250px; overflow-y:auto;}
653 653

  
(4-4/4)