From ab48a09f0d674b703467975b376c5ac7352670ae Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 May 2016 11:31:54 -0400 Subject: Rename controllers --- app/Template/activity/project.php | 6 ++--- app/Template/auth/index.php | 4 +-- app/Template/avatar_file/show.php | 4 +-- app/Template/config/about.php | 4 +-- app/Template/config/api.php | 4 +-- app/Template/config/application.php | 2 +- app/Template/config/board.php | 2 +- app/Template/config/calendar.php | 2 +- app/Template/config/integrations.php | 2 +- app/Template/config/project.php | 2 +- app/Template/config/sidebar.php | 36 +++++++++++++-------------- app/Template/config/webhook.php | 4 +-- app/Template/currency/index.php | 4 +-- app/Template/dashboard/layout.php | 2 +- app/Template/dashboard/show.php | 2 +- app/Template/doc/show.php | 4 +-- app/Template/feed/project.php | 4 +-- app/Template/feed/user.php | 4 +-- app/Template/header.php | 4 +-- app/Template/layout.php | 2 +- app/Template/password_reset/create.php | 4 +-- app/Template/project_overview/information.php | 4 +-- app/Template/project_view/share.php | 4 +-- app/Template/project_view/show.php | 4 +-- app/Template/search/activity.php | 4 +-- app/Template/search/index.php | 4 +-- app/Template/user_view/share.php | 4 +-- app/Template/user_view/show.php | 4 +-- app/Template/user_view/sidebar.php | 2 +- 29 files changed, 66 insertions(+), 66 deletions(-) (limited to 'app/Template') diff --git a/app/Template/activity/project.php b/app/Template/activity/project.php index 176d9b99..70235cfc 100644 --- a/app/Template/activity/project.php +++ b/app/Template/activity/project.php @@ -4,11 +4,11 @@ render('event/events', array('events' => $events)) ?> - \ No newline at end of file + diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php index cc562170..0f5129bd 100644 --- a/app/Template/auth/index.php +++ b/app/Template/auth/index.php @@ -19,7 +19,7 @@ form->label(t('Enter the text below'), 'captcha') ?> - + Captcha form->text('captcha', array(), $errors, array('required')) ?> @@ -39,4 +39,4 @@ hook->render('template:auth:login-form:after') ?> - \ No newline at end of file + diff --git a/app/Template/avatar_file/show.php b/app/Template/avatar_file/show.php index 9f19a1ab..37c56cec 100644 --- a/app/Template/avatar_file/show.php +++ b/app/Template/avatar_file/show.php @@ -6,14 +6,14 @@
- url->link(t('Remove my image'), 'AvatarFile', 'remove', array('user_id' => $user['id']), true, 'btn btn-red') ?> + url->link(t('Remove my image'), 'AvatarFileController', 'remove', array('user_id' => $user['id']), true, 'btn btn-red') ?>

-
+ form->csrf() ?> form->file('avatar') ?> diff --git a/app/Template/config/about.php b/app/Template/config/about.php index 7c599ef7..8e2d1325 100644 --- a/app/Template/config/about.php +++ b/app/Template/config/about.php @@ -65,11 +65,11 @@ text->bytes($db_size) ?>
  • - url->link(t('Download the database'), 'config', 'downloadDb', array(), true) ?>  + url->link(t('Download the database'), 'ConfigController', 'downloadDb', array(), true) ?> 
  • - url->link(t('Optimize the database'), 'config', 'optimizeDb', array(), true) ?>  + url->link(t('Optimize the database'), 'ConfigController', 'optimizeDb', array(), true) ?> 
  • diff --git a/app/Template/config/api.php b/app/Template/config/api.php index 3ebbb956..95f77355 100644 --- a/app/Template/config/api.php +++ b/app/Template/config/api.php @@ -12,7 +12,7 @@
  • - url->link(t('Reset token'), 'config', 'token', array('type' => 'api'), true) ?> + url->link(t('Reset token'), 'ConfigController', 'token', array('type' => 'api'), true) ?>
  • - \ No newline at end of file + diff --git a/app/Template/config/application.php b/app/Template/config/application.php index ee0e147b..0f842f6e 100644 --- a/app/Template/config/application.php +++ b/app/Template/config/application.php @@ -1,7 +1,7 @@ - + form->csrf() ?> diff --git a/app/Template/config/board.php b/app/Template/config/board.php index 75cd40ef..62a736e7 100644 --- a/app/Template/config/board.php +++ b/app/Template/config/board.php @@ -1,7 +1,7 @@ - + form->csrf() ?> diff --git a/app/Template/config/calendar.php b/app/Template/config/calendar.php index 37084a8b..90e034e9 100644 --- a/app/Template/config/calendar.php +++ b/app/Template/config/calendar.php @@ -2,7 +2,7 @@

    - + form->csrf() ?> diff --git a/app/Template/config/integrations.php b/app/Template/config/integrations.php index 2a29b358..3ba4e865 100644 --- a/app/Template/config/integrations.php +++ b/app/Template/config/integrations.php @@ -2,7 +2,7 @@

    - + form->csrf() ?> hook->render('template:config:integrations', array('values' => $values)) ?> diff --git a/app/Template/config/project.php b/app/Template/config/project.php index b0112773..6d8d131a 100644 --- a/app/Template/config/project.php +++ b/app/Template/config/project.php @@ -1,7 +1,7 @@ - + form->csrf() ?> diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php index a2a5a6cb..e6b4631d 100644 --- a/app/Template/config/sidebar.php +++ b/app/Template/config/sidebar.php @@ -1,35 +1,35 @@
    - + form->csrf() ?> @@ -25,7 +25,7 @@ text->e($values['webhook_token']) ?>
  • - url->link(t('Reset token'), 'config', 'token', array('type' => 'webhook'), true) ?> + url->link(t('Reset token'), 'ConfigController', 'token', array('type' => 'webhook'), true) ?>
  • diff --git a/app/Template/currency/index.php b/app/Template/currency/index.php index d35ac459..9881cee5 100644 --- a/app/Template/currency/index.php +++ b/app/Template/currency/index.php @@ -24,7 +24,7 @@

    - + form->csrf() ?> @@ -38,7 +38,7 @@

    - + form->csrf() ?> diff --git a/app/Template/dashboard/layout.php b/app/Template/dashboard/layout.php index 187f7f42..f73e02b5 100644 --- a/app/Template/dashboard/layout.php +++ b/app/Template/dashboard/layout.php @@ -15,7 +15,7 @@
  • - url->link(t('Search'), 'search', 'index') ?> + url->link(t('Search'), 'SearchController', 'index') ?>
  • diff --git a/app/Template/dashboard/show.php b/app/Template/dashboard/show.php index bc4e2952..917a6651 100644 --- a/app/Template/dashboard/show.php +++ b/app/Template/dashboard/show.php @@ -2,7 +2,7 @@ form->hidden('controller', array('controller' => 'search')) ?> form->hidden('action', array('action' => 'index')) ?> - form->text('search', array(), array(), array('placeholder="'.t('Search').'"'), 'form-input-large') ?> + form->text('SearchController', array(), array(), array('placeholder="'.t('Search').'"'), 'form-input-large') ?> render('app/filters_helper') ?>
  • diff --git a/app/Template/doc/show.php b/app/Template/doc/show.php index 8fbadc93..a8dbd762 100644 --- a/app/Template/doc/show.php +++ b/app/Template/doc/show.php @@ -3,11 +3,11 @@
    • - url->link(t('Table of contents'), 'doc', 'show', array('file' => 'index')) ?> + url->link(t('Table of contents'), 'DocumentationController', 'show', array('file' => 'index')) ?>
    -
    \ No newline at end of file + diff --git a/app/Template/feed/project.php b/app/Template/feed/project.php index eae41c92..213a04d4 100644 --- a/app/Template/feed/project.php +++ b/app/Template/feed/project.php @@ -2,9 +2,9 @@ <?= t('%s\'s activity', $project['name']) ?> - + - url->href('feed', 'project', array('token' => $project['token']), false, '', true) ?> + url->href('FeedController', 'project', array('token' => $project['token']), false, '', true) ?> url->base() ?>assets/img/favicon.png diff --git a/app/Template/feed/user.php b/app/Template/feed/user.php index 483cf7cd..0c45f03c 100644 --- a/app/Template/feed/user.php +++ b/app/Template/feed/user.php @@ -2,9 +2,9 @@ <?= t('Project activities for %s', $user['name'] ?: $user['username']) ?> - + - url->href('feed', 'user', array('token' => $user['token']), false, '', true) ?> + url->href('FeedController', 'user', array('token' => $user['token']), false, '', true) ?> url->base() ?>assets/img/favicon.png diff --git a/app/Template/header.php b/app/Template/header.php index 1ff8bf33..300df76d 100644 --- a/app/Template/header.php +++ b/app/Template/header.php @@ -88,12 +88,12 @@
  • - url->link(t('Settings'), 'config', 'index') ?> + url->link(t('Settings'), 'ConfigController', 'index') ?>
  • - url->link(t('Documentation'), 'doc', 'show') ?> + url->link(t('Documentation'), 'DocumentationController', 'show') ?>
  • diff --git a/app/Template/layout.php b/app/Template/layout.php index ff29e18f..6c02de91 100644 --- a/app/Template/layout.php +++ b/app/Template/layout.php @@ -46,7 +46,7 @@ diff --git a/app/Template/password_reset/create.php b/app/Template/password_reset/create.php index 918a0eb4..f1877aa7 100644 --- a/app/Template/password_reset/create.php +++ b/app/Template/password_reset/create.php @@ -7,11 +7,11 @@ form->text('username', $values, $errors, array('autofocus', 'required')) ?> form->label(t('Enter the text below'), 'captcha') ?> - + Captcha form->text('captcha', array(), $errors, array('required')) ?>
    - \ No newline at end of file + diff --git a/app/Template/project_overview/information.php b/app/Template/project_overview/information.php index 2032ed28..f49133bd 100644 --- a/app/Template/project_overview/information.php +++ b/app/Template/project_overview/information.php @@ -30,8 +30,8 @@
  • url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
  • -
  • url->link(t('RSS feed'), 'feed', 'project', array('token' => $project['token']), false, '', '', true) ?>
  • -
  • url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token'])) ?>
  • +
  • url->link(t('RSS feed'), 'FeedController', 'project', array('token' => $project['token']), false, '', '', true) ?>
  • +
  • url->link(t('iCal feed'), 'ICalendarController', 'project', array('token' => $project['token'])) ?>
  • diff --git a/app/Template/project_view/share.php b/app/Template/project_view/share.php index 6161faa9..f8cfc0eb 100644 --- a/app/Template/project_view/share.php +++ b/app/Template/project_view/share.php @@ -7,8 +7,8 @@
    • url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
    • -
    • url->link(t('RSS feed'), 'feed', 'project', array('token' => $project['token']), false, '', '', true) ?>
    • -
    • url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token']), false, '', '', true) ?>
    • +
    • url->link(t('RSS feed'), 'FeedController', 'project', array('token' => $project['token']), false, '', '', true) ?>
    • +
    • url->link(t('iCal feed'), 'ICalendarController', 'project', array('token' => $project['token']), false, '', '', true) ?>
    diff --git a/app/Template/project_view/show.php b/app/Template/project_view/show.php index 4aba4919..3a0d7f03 100644 --- a/app/Template/project_view/show.php +++ b/app/Template/project_view/show.php @@ -14,8 +14,8 @@
  • url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
  • -
  • url->link(t('RSS feed'), 'feed', 'project', array('token' => $project['token']), false, '', '', true) ?>
  • -
  • url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token'])) ?>
  • +
  • url->link(t('RSS feed'), 'FeedController', 'project', array('token' => $project['token']), false, '', '', true) ?>
  • +
  • url->link(t('iCal feed'), 'ICalendarController', 'project', array('token' => $project['token'])) ?>
  • diff --git a/app/Template/search/activity.php b/app/Template/search/activity.php index 60362215..9abc7d7e 100644 --- a/app/Template/search/activity.php +++ b/app/Template/search/activity.php @@ -3,7 +3,7 @@
    • - url->link(t('Search tasks'), 'search', 'index') ?> + url->link(t('Search tasks'), 'SearchController', 'index') ?>
    @@ -36,4 +36,4 @@ render('event/events', array('events' => $events)) ?> - \ No newline at end of file + diff --git a/app/Template/search/index.php b/app/Template/search/index.php index d5d07ed6..bc528af7 100644 --- a/app/Template/search/index.php +++ b/app/Template/search/index.php @@ -3,7 +3,7 @@
    • - url->link(t('Activity stream search'), 'search', 'activity') ?> + url->link(t('Activity stream search'), 'SearchController', 'activity') ?>
    @@ -40,4 +40,4 @@ )) ?> - \ No newline at end of file + diff --git a/app/Template/user_view/share.php b/app/Template/user_view/share.php index 9ef150e8..570b766e 100644 --- a/app/Template/user_view/share.php +++ b/app/Template/user_view/share.php @@ -5,8 +5,8 @@
      -
    • url->link(t('RSS feed'), 'feed', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • -
    • url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • +
    • url->link(t('RSS feed'), 'FeedController', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • +
    • url->link(t('iCal feed'), 'ICalendarController', 'user', array('token' => $user['token']), false, '', '', true) ?>
    url->link(t('Disable public access'), 'UserViewController', 'share', array('user_id' => $user['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> diff --git a/app/Template/user_view/show.php b/app/Template/user_view/show.php index 390a1e45..fc11f8a1 100644 --- a/app/Template/user_view/show.php +++ b/app/Template/user_view/show.php @@ -37,8 +37,8 @@
      -
    • url->link(t('RSS feed'), 'feed', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • -
    • url->link(t('iCal feed'), 'ical', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • +
    • url->link(t('RSS feed'), 'FeedController', 'user', array('token' => $user['token']), false, '', '', true) ?>
    • +
    • url->link(t('iCal feed'), 'ICalendarController', 'user', array('token' => $user['token']), false, '', '', true) ?>
    diff --git a/app/Template/user_view/sidebar.php b/app/Template/user_view/sidebar.php index 0f2f3569..d200a7f5 100644 --- a/app/Template/user_view/sidebar.php +++ b/app/Template/user_view/sidebar.php @@ -38,7 +38,7 @@ url->link(t('Edit profile'), 'UserModificationController', 'show', array('user_id' => $user['id'])) ?>
  • app->checkMenuSelection('AvatarFile') ?>> - url->link(t('Avatar'), 'AvatarFile', 'show', array('user_id' => $user['id'])) ?> + url->link(t('Avatar'), 'AvatarFileController', 'show', array('user_id' => $user['id'])) ?>
  • -- cgit v1.2.3