Revision 762:7dc4d205233e
| app/controllers/projects_controller.rb | ||
|---|---|---|
| 55 | 55 |
@project_count = Project.visible_roots.count |
| 56 | 56 |
@project_pages = Paginator.new self, @project_count, @limit, params['page'] |
| 57 | 57 |
@offset ||= @project_pages.current.offset |
| 58 |
@projects = Project.visible_roots.all(:offset => @offset, :limit => @limit, :order => sort_clause)
|
|
| 58 |
@projects = Project.visible_roots.find(@filtered_projects, :offset => @offset, :limit => @limit, :order => sort_clause)
|
|
| 59 | 59 |
if User.current.logged? |
| 60 | 60 |
# seems sort_by gives us case-sensitive ordering, which we don't want |
| 61 | 61 |
# @user_projects = User.current.projects.sort_by(&:name) |
| vendor/plugins/redmine_tags/app/views/projects/_filter_tags.rhtml | ||
|---|---|---|
| 7 | 7 |
<div id="project_tag_candidates" class="autocomplete"></div> |
| 8 | 8 |
<%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %> |
| 9 | 9 |
|
| 10 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags')}')" %>
|
|
| 10 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %>
|
|
| 11 | 11 |
</div> |
| 12 | 12 |
<% end -%> |
| 13 | 13 |
</p> |
| vendor/plugins/redmine_tags/app/views/projects/_filtered_projects.rhtml | ||
|---|---|---|
| 1 |
<%= render_project_table_with_filtering(@filtered_projects, @question) %> |
|
| 1 |
<%= render_project_table_with_filtering(@projects, @question) %> |
|
| vendor/plugins/redmine_tags/app/views/projects/index.rhtml | ||
|---|---|---|
| 16 | 16 |
|
| 17 | 17 |
|
| 18 | 18 |
<div style="clear:both;"></div> |
| 19 |
<% form_tag('/projects', :method => :get, :id => :project_filtering) do %>
|
|
| 19 |
<% form_tag(:controller => :projects, :action => :index, :method => :get, :id => :project_filtering) do %>
|
|
| 20 | 20 |
<fieldset id="filters" class="collapsible"> |
| 21 | 21 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
| 22 | 22 |
<div> |
| vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb | ||
|---|---|---|
| 75 | 75 |
# intersection of both prject groups |
| 76 | 76 |
@projects = @projects && @tagged_projects_ids unless @tag_list.empty? |
| 77 | 77 |
|
| 78 |
debugger |
|
| 78 | 79 |
@filtered_projects = @projects |
| 79 | 80 |
end |
| 80 | 81 |
end |
Also available in: Unified diff