From 348f4491ff3171d06888a868b22868ce2b8b1eab Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 8 Jan 2017 11:29:41 -0500 Subject: Make icons clickable in menus --- app/Template/project_header/dropdown.php | 30 ++++++++++-------------------- app/Template/project_header/views.php | 15 +++++---------- 2 files changed, 15 insertions(+), 30 deletions(-) (limited to 'app/Template/project_header') diff --git a/app/Template/project_header/dropdown.php b/app/Template/project_header/dropdown.php index 27d3fd3f..eac4fc57 100644 --- a/app/Template/project_header/dropdown.php +++ b/app/Template/project_header/dropdown.php @@ -4,12 +4,10 @@
  • board->isCollapsed($project['id']) ? '' : 'style="display: none;"' ?>> - - url->link(t('Expand tasks'), 'BoardAjaxController', 'expand', array('project_id' => $project['id']), false, 'board-display-mode', t('Keyboard shortcut: "%s"', 's')) ?> + url->icon('expand', t('Expand tasks'), 'BoardAjaxController', 'expand', array('project_id' => $project['id']), false, 'board-display-mode', t('Keyboard shortcut: "%s"', 's')) ?> board->isCollapsed($project['id']) ? 'style="display: none;"' : '' ?>> - - url->link(t('Collapse tasks'), 'BoardAjaxController', 'collapse', array('project_id' => $project['id']), false, 'board-display-mode', t('Keyboard shortcut: "%s"', 's')) ?> + url->icon('compress', t('Collapse tasks'), 'BoardAjaxController', 'collapse', array('project_id' => $project['id']), false, 'board-display-mode', t('Keyboard shortcut: "%s"', 's')) ?>
  • @@ -29,21 +27,18 @@
  • - - url->link(t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?> + url->icon('dashboard', t('Activity'), 'ActivityController', 'project', array('project_id' => $project['id'])) ?>
  • user->hasProjectAccess('CustomFilterController', 'index', $project['id'])): ?>
  • - - url->link(t('Custom filters'), 'CustomFilterController', 'index', array('project_id' => $project['id'])) ?> + url->icon('filter', t('Custom filters'), 'CustomFilterController', 'index', array('project_id' => $project['id'])) ?>
  • - - url->link(t('Public link'), 'BoardViewController', 'readonly', array('token' => $project['token']), false, '', '', true) ?> + url->icon('share-alt', t('Public link'), 'BoardViewController', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
  • @@ -51,35 +46,30 @@ user->hasProjectAccess('AnalyticController', 'taskDistribution', $project['id'])): ?>
  • - - url->link(t('Analytics'), 'AnalyticController', 'taskDistribution', array('project_id' => $project['id'])) ?> + url->icon('line-chart', t('Analytics'), 'AnalyticController', 'taskDistribution', array('project_id' => $project['id'])) ?>
  • user->hasProjectAccess('ExportController', 'tasks', $project['id'])): ?>
  • - - url->link(t('Exports'), 'ExportController', 'tasks', array('project_id' => $project['id'])) ?> + url->icon('upload', t('Exports'), 'ExportController', 'tasks', array('project_id' => $project['id'])) ?>
  • user->hasProjectAccess('TaskImportController', 'tasks', $project['id'])): ?>
  • - - url->link(t('Imports'), 'TaskImportController', 'show', array('project_id' => $project['id'])) ?> + url->icon('download', t('Imports'), 'TaskImportController', 'show', array('project_id' => $project['id'])) ?>
  • user->hasProjectAccess('ProjectEditController', 'show', $project['id'])): ?>
  • - - url->link(t('Settings'), 'ProjectViewController', 'show', array('project_id' => $project['id'])) ?> + url->icon('cog', t('Settings'), 'ProjectViewController', 'show', array('project_id' => $project['id'])) ?>
  • - - url->link(t('Manage projects'), 'ProjectListController', 'show') ?> + url->icon('folder', t('Manage projects'), 'ProjectListController', 'show') ?>
  • diff --git a/app/Template/project_header/views.php b/app/Template/project_header/views.php index f8a5b39b..0328a051 100644 --- a/app/Template/project_header/views.php +++ b/app/Template/project_header/views.php @@ -1,24 +1,19 @@ -- cgit v1.2.3