<commit_before><?php
/*
 INOROUT - Social Discussion Platform
 Copyright (C) 2010 <NAME> <<EMAIL>>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as
 published by the Free Software Foundation, either version 3 of the
 License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Affero General Public License for more details.
   
 You should have received a copy of the GNU Affero General Public
 License along with this program.  If not, see
 <http://www.gnu.org/licenses/>.
*/
?>
<?=$html->link('&laquo; return to main page',
		      array('controller' => 'posts',
			    'action' => 'index'),array('escape'=>false));?>
<h4><?=$post['Post']['title'];?></h4>
<div class="url">
  <?=$html->link($text->truncate($post['bitly'],
				 64). ' &raquo;', 
		 $post['Post']['url'],array('escape'=>false))?>
</div>
<?=$html->tag('p', Sanitize::html($post['Post']['teaser'],true));?>

<ul class="grid_8 alpha omega" id="pact">
  <li><?=$ajax->link('',
		     array('controller' => 'posts',
			   'action' => 'flag', $post['Post']['id']),
		     array('update' => 'flag',
			   'escape' => false,
			   'title' => 'flag',
			   'class' => 'flag')
		     );?></li>
  <li><?=$html->link('',
		     array('controller' => 'posts',
			   'action' => 'edit', $post['Post']['id']),
		     array(//'update' => 'vote',
			   'escape' => false,
			   'title' => 'edit',
			   'class' => 'edit')
		     );?></li>
  <li><?=$ajax->link('',
		     array('controller' => 'posts',
			   'action' => 'delete', $post['Post']['id']),
		     array('update' => 'vote',
			   'escape' => false,
			   'title' => 'delete',
			   'class' => 'del')
		     );?></li>
		     <li class="sep">&nbsp;</li>
  <li><?=$html->link('',
		     array('controller' => 'posts',
			   'action' => 'delete', $post['Post']['id']),
		     array('update' => 'vote',
			   'escape' => false,
			   'title' => 'share on twitter',
			   'class' => 'twit')
		     );?></li>
  <li><?=$html->link('',
		     array('controller' => 'posts',
			   'action' => 'delete', $post['Post']['id']),
		     array('update' => 'vote',
			   'escape' => false,
			   'title' => 'share on facebook',
			   'class' => 'fb')
		     );?></li><commit_msg>Add facebook share API.<commit_after><?php
/*
 INOROUT - Social Discussion Platform
 Copyright (C) 2010 <NAME> <<EMAIL>>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as
 published by the Free Software Foundation, either version 3 of the
 License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Affero General Public License for more details.
   
 You should have received a copy of the GNU Affero General Public
 License along with this program.  If not, see
 <http://www.gnu.org/licenses/>.
*/
?>
<?=$html->link('&laquo; return to main page',
		      array('controller' => 'posts',
			    'action' => 'index'),array('escape'=>false));?>
<h4><?=$post['Post']['title'];?></h4>
<div class="url">
  <?=$html->link($text->truncate($post['bitly'],
				 64). ' &raquo;', 
		 $post['Post']['url'],array('escape'=>false))?>
</div>
<?=$html->tag('p', Sanitize::html($post['Post']['teaser'],true));?>

<ul class="grid_8 alpha omega" id="pact">
  <li><?=$ajax->link('',
		     array('controller' => 'posts',
			   'action' => 'flag', $post['Post']['id']),
		     array('update' => 'flag',
			   'escape' => false,
			   'title' => 'flag',
			   'class' => 'flag')
		     );?></li>
  <li><?=$html->link('',
		     array('controller' => 'posts',
			   'action' => 'edit', $post['Post']['id']),
		     array(//'update' => 'vote',
			   'escape' => false,
			   'title' => 'edit',
			   'class' => 'edit')
		     );?></li>
  <li><?=$ajax->link('',
		     array('controller' => 'posts',
			   'action' => 'delete', $post['Post']['id']),
		     array('update' => 'vote',
			   'escape' => false,
			   'title' => 'delete',
			   'class' => 'del'),
		     'Do you want to delete post #'.$post['Post']['id'].'?'
		     );?></li>
		     <li class="sep">&nbsp;</li>
  <li><?=$html->link('',
		     array('controller' => 'posts',
			   'action' => 'delete', $post['Post']['id']),
		     array('update' => 'vote',
			   'escape' => false,
			   'target' => '_blank',
			   'title' => 'share on twitter',
			   'class' => 'twit')
		     );?></li>
  <li><?=$html->link('',
		     'http://www.facebook.com/sharer.php?u='.urlencode(Router::url('',true)).'&t='.urlencode($post['Post']['title']),
		     array('update' => 'vote',
			   'escape' => false,
			   'target' => '_blank',
			   'title' => 'share on facebook',
			   'class' => 'fb')
		     );?></li>
{'fraction_non_alphanumeric': 0.23048033208143903, 'fraction_numerical': 0.003953350464518679, 'mean_word_length': 3.230769230769231, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '2944212', 'n_tokens_mistral': 1824, 'n_tokens_neox': 1578, 'n_words': 443}