mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-15 08:46:34 +01:00
upgrade last of the project functions
This commit is contained in:
parent
2c47b27a87
commit
d7a780ef0c
8 changed files with 20 additions and 18 deletions
|
|
@ -218,7 +218,7 @@ class ProjectsController < ApplicationController
|
|||
def render_projects_html
|
||||
lambda do
|
||||
@page_title = t('projects.list_projects')
|
||||
@count = current_user.projects.size
|
||||
@count = current_user.projects.count
|
||||
@active_projects = current_user.projects.active
|
||||
@hidden_projects = current_user.projects.hidden
|
||||
@completed_projects = current_user.projects.completed
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
<h2><span id="<%= state %>-projects-count" class="badge"><%= project_state_group.length %></span><%= t('states.'+state+'_plural' )%> <%= t('common.projects') %></h2>
|
||||
<div class="menu_sort"><span class="sort_separator"><%= t('common.sort.sort') %> </span>
|
||||
<div class="alpha_sort">
|
||||
<%= link_to(t('common.sort.alphabetically'), alphabetize_projects_path(:state => state),
|
||||
:class => "alphabetize_link", :title => t('common.sort.alphabetically_title')) %>
|
||||
<%= link_to("Alphabetically", alphabetize_projects_path(:state => state),
|
||||
:id => "#{state}_alphabetize_link", :class => "alphabetize_link", :title => t('common.sort.alphabetically_title')) %>
|
||||
</div><span class="sort_separator"> | </span><div class="tasks_sort">
|
||||
<%= link_to(t('common.sort.by_task_count'), actionize_projects_path(:state => state),
|
||||
:class => "actionize_link", :title => t('common.sort.by_task_count_title')) %>
|
||||
<%= link_to("By number of tasks", actionize_projects_path(:state => state),
|
||||
:id => "#{state}_actionize_link", :class => "actionize_link", :title => t('common.sort.by_task_count_title')) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue