diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php index 182f014cf..daed71db8 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php @@ -44,13 +44,15 @@ class Helpers{ foreach ( $variables[$template] as $key => $value ){ $smarty -> assign( $key, $value ); } - if( $vars['permission'] == 1 ){ - $inherited = "layout_admin.tpl"; - }else{ - $inherited = "layout_user.tpl"; - } + if( $vars['permission'] == 2 ){ + $inherited = "extends:layout_admin.tpl|"; + }else if($vars['permission'] == 1){ + $inherited = "extends:layout_user.tpl|"; + }else{ + $inherited =""; + } // extends:' . $inherited .'|register.tpl - $smarty -> display( $template . '.tpl' ); + $smarty -> display( $inherited . $template . '.tpl' ); } static public function create_folders(){ diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomcore.png b/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomcore.png new file mode 100755 index 000000000..ff2295854 Binary files /dev/null and b/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomcore.png differ diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/index.php b/code/ryzom/tools/server/ryzom_ams/www/html/index.php index 5f8479ffe..e925bb92c 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/index.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/index.php @@ -18,6 +18,6 @@ if ( isset( $_GET["page"] ) ){ } // temporary set permission to 1 which = admin mode -$return = array( 'permission' => 1, 'no_visible_elements' => 'TRUE' ); +$return = array( 'permission' => 1, 'no_visible_elements' => 'FALSE' ); helpers :: loadTemplate( $page , $return ); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js b/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js index 3f34f46ec..519454ef6 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js +++ b/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js @@ -4,8 +4,8 @@ function show_help(help_tip) { var tour = new Tour(); tour.addStep({ - element: ".dashboard-avatar:first", /* html element next to which the step popover should be shown */ - placement: "top", + element: ".brand:first", /* html element next to which the step popover should be shown */ + placement: "bottom", title: "Custom Tour", /* title of the popover */ content: "You can create tour like this. Click Next." /* content of the popover */ }); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl index 87b8f36ad..f517f60c4 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl @@ -1,388 +1,55 @@ -{extends file="layout.tpl"} {block name=content} - -