Rename menu item and page 'Task queue' to 'Tasks'

This commit is contained in:
Douglas Barbosa Alexandre 2016-02-18 20:25:46 -02:00
parent fc3f8a8ff7
commit a57bf9bd39
5 changed files with 11 additions and 11 deletions

View file

@ -1,5 +1,5 @@
- page_title "Task Queue"
- header_title "Task Queue", dashboard_tasks_path
- page_title "Tasks"
- header_title "Tasks", dashboard_tasks_path
.top-area
%ul.nav-links

View file

@ -22,7 +22,7 @@
= link_to admin_root_path, title: 'Admin Area', data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
= icon('wrench fw')
%li
= link_to dashboard_tasks_path, title: 'Task Queue', data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
= link_to dashboard_tasks_path, title: 'Tasks', data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
%span.badge.tasks-pending-count
= tasks_pending_count
- if current_user.can_create_project?

View file

@ -4,6 +4,12 @@
= icon('home fw')
%span
Projects
= nav_link(controller: :tasks) do
= link_to dashboard_tasks_path, title: 'Tasks' do
= icon('bell fw')
%span
Tasks
%span.count= number_with_delimiter(tasks_pending_count)
= nav_link(path: 'dashboard#activity') do
= link_to activity_dashboard_path, class: 'shortcuts-activity', title: 'Activity' do
= icon('dashboard fw')
@ -31,12 +37,6 @@
%span
Merge Requests
%span.count= number_with_delimiter(current_user.assigned_merge_requests.opened.count)
= nav_link(path: 'dashboard#tasks') do
= link_to dashboard_tasks_path, title: 'Task Queue' do
= icon('bell fw')
%span
Task Queue
%span.count= number_with_delimiter(tasks_pending_count)
= nav_link(controller: :snippets) do
= link_to dashboard_snippets_path, title: 'Snippets' do
= icon('clipboard fw')

View file

@ -1,5 +1,5 @@
@dashboard
Feature: Dashboard Task Queue
Feature: Dashboard Tasks
Background:
Given I sign in as a user
And I own project "Shop"

View file

@ -1,4 +1,4 @@
class Spinach::Features::DashboardTaskQueue < Spinach::FeatureSteps
class Spinach::Features::DashboardTasks < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedProject