Patch #31356 » 0001-swaps-out-the-icon-fav-for-icon-user-on-projects-ind.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 %>
|
||
| public/stylesheets/application.css | ||
|---|---|---|
|
#projects-index ul.projects div.description {
|
||
|
padding-top: 0.5em;
|
||
|
}
|
||
|
#projects-index a.icon-fav {padding-left:0; padding-right:20px; background-position:98% 50%;}
|
||
|
#projects-index a.icon-user {padding-left:0; padding-right:20px; background-position:98% 50%;}
|
||
|
#notified-projects>ul, #tracker_project_ids>ul, #custom_field_project_ids>ul {max-height:250px; overflow-y:auto;}
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »