From 3cc4e5c6c6d889acda38dcf317eaf36015fe1bc8 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 31 Mar 2010 12:01:23 +0000 Subject: [PATCH] Updated mimtypes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17434 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/mimetypes/class_mimetypeGeneric.inc | 21 ++--- gosa-plugins/goto/admin/mimetypes/generic.tpl | 81 ++++++++++--------- .../goto/admin/mimetypes/paste_generic.tpl | 13 ++- .../goto/admin/mimetypes/release_select.tpl | 19 ----- 4 files changed, 63 insertions(+), 71 deletions(-) delete mode 100644 gosa-plugins/goto/admin/mimetypes/release_select.tpl diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc index 966186251..de20d9a65 100644 --- a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc +++ b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc @@ -279,25 +279,28 @@ class mimetype extends plugin if($this->acl_is_writeable("gotoMimeFilePattern") && !preg_match("/freeze/i",$this->FAIstate)){ - $Pattern_Actions= "   -   - "; + $Pattern_Actions= + image('images/lists/sort-up.png','Pattern_SortUp_%s','','top'). + image('images/lists/sort-down.png','Pattern_SortDown_%s','','bottom'). + image('images/lists/trash.png','Pattern_Remove_%s'); }else{ $Pattern_Actions= ""; } if($this->acl_is_writeable("gotoMimeApplication") && !preg_match("/freeze/i",$this->FAIstate)){ - $Apps_Actions = "   -   - "; + $Apps_Actions = + image('images/lists/sort-up.png','Apps_SortUp_%s','','top'). + image('images/lists/sort-down.png','Apps_SortDown_%s','','bottom'). + image('images/lists/trash.png','Apps_Remove_%s'); }else{ $Apps_Actions= ""; } if($this->acl_is_writeable("gotoMimeEmbeddedApplication") && !preg_match("/freeze/i",$this->FAIstate)){ - $EApps_Actions = "   -   - "; + $EApps_Actions = + image('images/lists/sort-up.png','EApps_SortUp_%s','','top'). + image('images/lists/sort-down.png','EApps_SortDown_%s','','bottom'). + image('images/lists/trash.png','EApps_Remove_%s'); }else{ $EApps_Actions= ""; } diff --git a/gosa-plugins/goto/admin/mimetypes/generic.tpl b/gosa-plugins/goto/admin/mimetypes/generic.tpl index 488e4d7a4..758d366d4 100644 --- a/gosa-plugins/goto/admin/mimetypes/generic.tpl +++ b/gosa-plugins/goto/admin/mimetypes/generic.tpl @@ -51,21 +51,22 @@ -
+ +
- {if $IconReadable} - {t}Mime icon{/t} + {t}Mime icon{/t} {else} {image path="images/empty.png"} - {/if}
 
{render acl=$gotoMimeIconACL} - + {/render} {render acl=$gotoMimeIconACL} @@ -73,22 +74,26 @@
+ +
+ -

{t}Left click{/t} -

+

{t}Left click{/t}

- {t}File patterns{/t} - {$must} + + + {t}File patterns{/t}{$must} + {render acl=$gotoMimeFilePatternACL} {$gotoMimeFilePatterns} {/render} @@ -99,8 +104,12 @@ {/render} + - {t}Applications{/t} + + + {t}Applications{/t} + {render acl=$gotoMimeApplicationACL} {$gotoMimeApplications} {/render} @@ -116,46 +125,45 @@ {/render} + +
+ -

{t}Embedding{/t} -

+ +

{t}Embedding{/t}

+ - - - - -
- {render acl=$gotoMimeLeftClickActionACL} - - - - {/render}{t}Show file in embedded viewer{/t} -
- {render acl=$gotoMimeLeftClickActionACL} - - - - {/render}{t}Show file in external viewer{/t} -
- {render acl=$gotoMimeLeftClickActionACL} - - - - {/render}{t}Ask whether to save to local disk{/t} -
+ + {render acl=$gotoMimeLeftClickActionACL} + + {/render}{t}Show file in embedded viewer{/t} +
+ {render acl=$gotoMimeLeftClickActionACL} + + {/render}{t}Show file in external viewer{/t} +
+ {render acl=$gotoMimeLeftClickActionACL} + + {/render}{t}Ask whether to save to local disk{/t} + - {t}Applications{/t} + + + {t}Applications{/t} {render acl=$gotoMimeEmbeddedApplicationACL} {$gotoMimeEmbeddedApplications} {/render} @@ -171,6 +179,7 @@ {/render} + diff --git a/gosa-plugins/goto/admin/mimetypes/paste_generic.tpl b/gosa-plugins/goto/admin/mimetypes/paste_generic.tpl index 00371a98e..72f2eb2e8 100644 --- a/gosa-plugins/goto/admin/mimetypes/paste_generic.tpl +++ b/gosa-plugins/goto/admin/mimetypes/paste_generic.tpl @@ -2,28 +2,27 @@ -
-

{t}Generic{/t} -

+

{t}Generic{/t}

+ - + - +
{t}Mime type{/t} - {t}Mime type{/t}
{t}Description{/t} - {t}Description{/t}
+
\ No newline at end of file + diff --git a/gosa-plugins/goto/admin/mimetypes/release_select.tpl b/gosa-plugins/goto/admin/mimetypes/release_select.tpl deleted file mode 100644 index 43ff5367b..000000000 --- a/gosa-plugins/goto/admin/mimetypes/release_select.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -
-

- {image path=" - {$branchimage}" align="right"}{t}Branches{/t} -

-
-
- - - - -
{t}Current release{/t}  - -
-
-
\ No newline at end of file -- 2.30.2