From 0ede8e397c4671369e703be11346e25164dcb6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Tue, 17 Nov 2009 21:01:21 +0100 Subject: [PATCH] Using a more consistent icon with the tool --- main/img/works_new.gif | Bin 0 -> 686 bytes main/work/work.lib.php | 22 ++++++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 main/img/works_new.gif diff --git a/main/img/works_new.gif b/main/img/works_new.gif new file mode 100644 index 0000000000000000000000000000000000000000..a9fe1dd35464c71832d511b0912cfcaab4cef23c GIT binary patch literal 686 zcmV;f0#W@(Nk%w1VHN-u0OkMyYB52Bj?e6;DQ;t8*eC?=ytJjJslhxB+@fpA$;s7v zS=DPs>f_Asz^b`hTJ*;vx3{;~dnLw)9fdO+_RnXr%>Ve!M| z;o<*l0Mps*phPVA*DKI!4YH)7zq!5Zwp!hjUGL=Nv~+Fo#>aANYn)F$Y&|Rg-fWZL3(~0!h&dUOjpz< z9X)H=eHl}ActLVCEFjsAQaU0w7(;O@!Py2!NIO6hPFS!hqM+HO9B#5;!Qx?$6)-1Y zL?O~6RMA$31YBtV4;S@9}+)!*peaTfEhCfD7^4tVS$zg zVOBwyz=Z`A3U}^UC{yOaf>nLa&^eHEXV0HqgrS*1rRB?*?{07;5V3?vlEQNMnFF8- Ui~wB=3K(=|;0>82ivj@vJFjzCk^lez literal 0 HcmV?d00001 diff --git a/main/work/work.lib.php b/main/work/work.lib.php index d03b64cbd7..bf7bb450b6 100644 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -27,21 +27,27 @@ function display_action_links($cur_dir_path, $always_show_tool_options, $always_ $origin = isset($_GET['origin'])?Security::remove_XSS($_GET['origin']):''; $origin = api_get_tools_lists($origin); - + echo '
'; + if (strlen($cur_dir_path) > 0 && $cur_dir_path != '/') { $parent_dir = dirname($cur_dir_path); - $display_output .= ''.Display::return_icon('folder_up.gif', get_lang('Up')).' '.get_lang('Up').''; + $display_output .= ''.Display::return_icon('back.png',get_lang('BackToWorksList')).' '.get_lang('BackToWorksList').''; } - echo '
'; - if ($_GET['display_tool_options'] == 'true' OR $_GET['display_upload_form'] == 'true' ) + else { - if ($origin!='learnpath') { - echo ''.Display::return_icon('back.png',get_lang('BackToWorksList')).' '.get_lang('BackToWorksList').''; + if ($_GET['display_tool_options'] == 'true' OR $_GET['display_upload_form'] == 'true' ) + { + if ($origin!='learnpath') { + echo ''.Display::return_icon('back.png',get_lang('BackToWorksList')).' '.get_lang('BackToWorksList').''; + } } } if (! $always_show_tool_options && api_is_allowed_to_edit(null,true) && $origin != 'learnpath') { // Create dir - $display_output .= ''.Display::return_icon('folder_new.gif', get_lang('CreateAssignment')).' '.get_lang('CreateAssignment').' '; + if ($cur_dir_path=='/') + { + $display_output .= ''.Display::return_icon('works_new.gif', get_lang('CreateAssignment')).' '.get_lang('CreateAssignment').' '; + } // Options $display_output .= "".Display::return_icon('acces_tool.gif', get_lang("EditToolOptions")).' ' . get_lang("EditToolOptions") . ""; } @@ -613,7 +619,7 @@ function display_student_publications_list($work_dir,$sub_course_dir,$currentCou $action = ''; $row = array(); $class = ''; - $row[] = ''.get_lang('Assignment').''; //image + $row[] = ''.get_lang('Assignment').''; //image //$a_count_directory=count_dir($work_dir.'/'.$dir,false); $cant_files=0;