<commit_before>{meta_html csstheme 'css/main.css'}
{meta_html csstheme 'css/view.css'}
{meta_html csstheme 'css/media.css'}

{assign $idm = 0}
{foreach $mapitems as $mi}
{if $mi->type == 'rep'}
<h2>{$mi->title}</h2>
<ul class="thumbnails">
  {foreach $mi->childItems as $p}
  {assign $idm = $idm + 1}
  <li class="span3">
    <div class="thumbnail">
      <div class="liz-project">
        <img src="{$p->img}" alt="project image" class="img-polaroid liz-project-img">
        <p class="liz-project-desc" style="display:none;">
          <b>{$p->title}</b>
          <br/>
          <br/><b>{@default.project.abstract.label@}</b>&nbsp;: {$p->abstract|truncate:100}
          <br/>
          <br/><b>{@default.project.projection.label@}</b>&nbsp;: {$p->proj}
        </p>
      </div>
      <h5>{$p->title}</h5>
      <p>
        <a class="btn liz-project-view" href="{$p->url}">{@default.project.open.map@}</a>
        <a class="btn liz-project-show-desc" href="#" onclick="$('#liz-project-modal-{$idm}').modal('show');">{@default.project.open.map.metadata@}</a>
      </p>
    </div>
 
    <div id="liz-project-modal-{$idm}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-show="false" data-keyboard="false" data-backdrop="static">
    
      <div class="modal-header">  
        <a class="close" data-dismiss="modal">×</a>  
        <h3>{$p->title}</h3>  
      </div>  
      <div class="modal-body">
        <dl class="dl-horizontal">
          <dt>{@view~map.metadata.h2.illustration@}</dt>
          <dd>{image $p->img, array('width'=>150, 'height'=>150, 'alt'=>'project image')}</dd>
          <dt>{@default.project.title.label@}</dt>
          <dd>{$p->title}</dd>
          <dt>{@default.project.abstract.label@}</dt>
          <dd>{$p->abstract|nl2br}</dd>
          <dt>{@default.project.projection.label@}</dt>
          <dd>{$p->proj}</dd>
          <dt>{@default.project.bbox.label@}</dt>
          <dd>{$p->bbox}</dd>
        </dl>       
      </div>  
      <div class="modal-footer">
        <a class="btn liz-project-view" href="{$p->url}">{@default.project.open.map@}</a>
        <a href="#" class="btn" data-dismiss="modal">{@default.project.close.map.metadata@}</a>  
      </div>
    </div>
  </li>
  {/foreach}
</ul>
{/if}
{/foreach}
<commit_msg>Home - return back to the project when closing metadata window<commit_after>{meta_html csstheme 'css/main.css'}
{meta_html csstheme 'css/view.css'}
{meta_html csstheme 'css/media.css'}

{assign $idm = 0}
{foreach $mapitems as $mi}
{if $mi->type == 'rep'}
<h2>{$mi->title}</h2>
<ul class="thumbnails">
  {foreach $mi->childItems as $p}
  {assign $idm = $idm + 1}
  <a name="link-projet-{$idm}"></a>
  <li class="span3">
    <div class="thumbnail">
      <div class="liz-project">
        <img src="{$p->img}" alt="project image" class="img-polaroid liz-project-img">
        <p class="liz-project-desc" style="display:none;">
          <b>{$p->title}</b>
          <br/>
          <br/><b>{@default.project.abstract.label@}</b>&nbsp;: {$p->abstract|truncate:100}
          <br/>
          <br/><b>{@default.project.projection.label@}</b>&nbsp;: {$p->proj}
        </p>
      </div>
      <h5>{$p->title}</h5>
      <p>
        <a class="btn liz-project-view" href="{$p->url}">{@default.project.open.map@}</a>
        <a class="btn liz-project-show-desc" href="#link-projet-{$idm}" onclick="$('#liz-project-modal-{$idm}').modal('show');">{@default.project.open.map.metadata@}</a>
      </p>
    </div>
 
    <div id="liz-project-modal-{$idm}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-show="false" data-keyboard="false" data-backdrop="static">
    
      <div class="modal-header">  
        <a class="close" data-dismiss="modal">×</a>  
        <h3>{$p->title}</h3>  
      </div>  
      <div class="modal-body">
        <dl class="dl-horizontal">
          <dt>{@view~map.metadata.h2.illustration@}</dt>
          <dd>{image $p->img, array('width'=>150, 'height'=>150, 'alt'=>'project image')}</dd>
          <dt>{@default.project.title.label@}</dt>
          <dd>{$p->title}</dd>
          <dt>{@default.project.abstract.label@}</dt>
          <dd>{$p->abstract|nl2br}</dd>
          <dt>{@default.project.projection.label@}</dt>
          <dd>{$p->proj}</dd>
          <dt>{@default.project.bbox.label@}</dt>
          <dd>{$p->bbox}</dd>
        </dl>       
      </div>  
      <div class="modal-footer">
        <a class="btn liz-project-view" href="{$p->url}">{@default.project.open.map@}</a>
        <a href="#" class="btn" data-dismiss="modal">{@default.project.close.map.metadata@}</a>  
      </div>
    </div>
  </li>
  {/foreach}
</ul>
{/if}
{/foreach}

{'fraction_non_alphanumeric': 0.24217601344255407, 'fraction_numerical': 0.008821676118462508, 'mean_word_length': 2.818765036086608, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 181, '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': '7305394', 'n_tokens_mistral': 1789, 'n_tokens_neox': 1768, 'n_words': 259}