<commit_before><?php global $path, $ckeditor;?>

    <span style="float:left; color:#888; font: 13px/27px sans-serif; font-weight:bold; ">Dashboards:</span>

    <ul class="greydashmenu">
      <?php echo $menu; ?>
    </ul>

<div align="right" style="padding:4px;">
  <?php if ($type=="view") { ?>
  <a href="<?php echo $path; ?>dashboard/edit?id=<?php echo $id; ?>" title="Draw Editor" ><i class="icon-edit"></i></a>
  <?php if ($ckeditor) { ?><a href="<?php echo $path; ?>dashboard/ckeditor?id=<?php echo $id; ?>" title="CKEditor" ><img src="<?php echo $path; ?>/Includes/editors/images/ckicon.png" style="margin-top:-5px;"/></a><?php } ?>
  <?php } ?>

  <?php if ($type=="edit" || $type=="ckeditor") { ?>
  <a href="<?php echo $path; ?>dashboard/view?id=<?php echo $id; ?>" title="View mode"><i class="icon-eye-open"></i></a>
  <?php } ?>
  <a  data-toggle="modal" href="#myModal"><i class="icon-wrench" title="Config"></i></a>
  <a href="#" onclick="$.ajax({type : 'POST',url :  path + 'dashboard/new.json  ',data : '',dataType : 'json',success : location.reload()});" title="New"><i class="icon-plus-sign"></i></a>
  <a href="<?php echo $path; ?>dashboard/thumb"><i class="icon-th-large" title="Thumb view"></i></a>
  <a href="<?php echo $path; ?>dashboard/list"><i class="icon-th-list" title="List view"></i></a>     
</div><commit_msg>Dashboard menu Multilanguage support, code formating and head license<commit_after><?php
/*
  All Emoncms code is released under the GNU Affero General Public License.
  See COPYRIGHT.txt and LICENSE.txt.

  ---------------------------------------------------------------------
  Emoncms - open source energy visualisation
  Part of the OpenEnergyMonitor project:
  http://openenergymonitor.org
*/
  
global $path, $ckeditor;
?>

<span style="float:left; color:#888; font: 13px/27px sans-serif; font-weight:bold; "><?php echo _("Dashboards:"); ?></span>

<ul class="greydashmenu">
  <?php echo $menu; ?>
</ul>

<div align="right" style="padding:4px;">
  <?php if ($type=="view") { ?>
    <a href="<?php echo $path; ?>dashboard/edit?id=<?php echo $id; ?>" title="<?php echo _("Draw Editor"); ?>" ><i class="icon-edit"></i></a>
    
    <?php if ($ckeditor) { ?>
      <a href="<?php echo $path; ?>dashboard/ckeditor?id=<?php echo $id; ?>" title="CKEditor" >
      <img src="<?php echo $path; ?>/Includes/editors/images/ckicon.png" style="margin-top:-5px;"/></a>
    <?php } ?>
  <?php } ?>

  <?php if ($type=="edit" || $type=="ckeditor") { ?>
    <a href="<?php echo $path; ?>dashboard/view?id=<?php echo $id; ?>" title="<?php echo _("View mode"); ?>"><i class="icon-eye-open"></i></a>
  <?php } ?>
    
  <a  data-toggle="modal" href="#myModal"><i class="icon-wrench" title="<?php echo _("Config"); ?>"></i></a>
  <a href="#" onclick="$.ajax({type : 'POST',url :  path + 'dashboard/new.json  ',data : '',dataType : 'json',success : location.reload()});" title="<?php echo _("New"); ?>"><i class="icon-plus-sign"></i></a>
  <a href="<?php echo $path; ?>dashboard/thumb"><i class="icon-th-large" title="<?php echo _("Thumb view"); ?>"></i></a>
  <a href="<?php echo $path; ?>dashboard/list"><i class="icon-th-list" title="<?php echo _("List view"); ?>"></i></a>   
</div>
{'fraction_non_alphanumeric': 0.275980087118855, 'fraction_numerical': 0.005600497822028625, 'mean_word_length': 4.202265372168285, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 110, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6324799', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1136, 'n_words': 259}