Skip to content
Snippets Groups Projects
Commit 383b68a8 authored by Jon Pugh's avatar Jon Pugh
Browse files

Finalizing task links layout.

parent eee921ee
Branches dev-env-cleanup
No related tags found
No related merge requests found
......@@ -82,19 +82,17 @@ function devshop_projects_devshop_environment_actions($environment) {
$items[] = '<div class="divider"></div>';
$items += array(
'verify',
'flush_cache',
'login-reset',
'backup',
'restore' => 'restore',
'rebuild_registry',
'run_cron',
'update',
);
$items[] = 'verify';
$items[] = 'flush_cache';
$items[] = 'rebuild_registry';
$items[] = 'run_cron';
$items[] = 'update';
$items[] = '<div class="divider"></div>';
if ($environment->settings->locked){
unset($items['restore']);
// Backup & Restore
$items[] = 'backup';
if (!$environment->settings->locked){
$items[] = 'restore';
}
return $items;
......
......@@ -217,10 +217,9 @@ function devshop_projects_view($node, $teaser = FALSE, $page = FALSE) {
$environment->class .= ' pull-request';
}
// Load Actions
// Load Task Links
$environment->task_links = devshop_environment_links($environment);
// $actions = module_invoke_all('devshop_environment_actions');
// dsm($actions);
}
return $node;
}
......
......@@ -67,6 +67,7 @@ function devshop_testing_hosting_tasks() {
*/
function devshop_testing_devshop_environment_actions($environment) {
return array(
'<div class="divider"></div>',
'test'
);
}
......
......@@ -636,4 +636,8 @@ html.js fieldset.collapsed {
.environment-tasks i.fa {
width: 20px;
}
.environment-tasks .dropdown-menu .divider {
margin: 3px 0px;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment