<commit_before><!DOCTYPE html>
<html lang="fr">
<head>
  <title>C'est un mec</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <%= auto_discovery_link_tag :rss, vannes_url(:format => :rss) %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>



<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
	<span class="icon-bar"></span>
	<span class="icon-bar"></span>
	<span class="icon-bar"></span>
      </a>
    
      <%= link_to "C'est un mec", root_url, :class => "brand" %>
      
      <div class="nav-collapse">
	<ul class="nav">
	  <li class="<%= 'active' if params[:controller] == "home" %>"><%= link_to "Accueil", root_url %></li>
	  <li class="<%= 'active' if params[:order] == "last" %>"><%= link_to 'Les dernières', vannes_url(:order => 'last') %></li>
	  <li class="<%= 'active' if params[:order] == "buzz" %>"><%= link_to 'Les buzzantes', vannes_url(:order => 'buzz') %></li>
	  <li class="<%= 'active' if params[:order] == "best" %>"><%= link_to 'Les meilleures', vannes_url(:order => 'best') %></li>
	</ul>
	  
	<%= form_tag search_vannes_path, :class => "navbar-search pull-left" do %>
	  <%= text_field_tag :q, params[:q], :placeholder => 'Rechercher parmi les vannes ...', :class => "search-query" %><br />
	<% end %>
	
	
	<ul class="nav pull-right">
	<% if @current_membre %>
	
	  <% if @current_membre.admin %>
	    <li class="dropdown">
	    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Administration<b class="caret"></b></a>
	    <ul class="dropdown-menu">
	      <li><%= link_to vannes_path(:order => :validation) do %>
		Validation <span class="badge pull-right"><%= Vanne.where("valide = ?",false).count.to_s %></span>
		<% end %>
	      </li>
	      <li><%= link_to feedbacks_path do%>
		Feedback <span class="badge pull-right"><%= Feedback.where("lu = ?",false).count.to_s %></span>
		<% end %>
	      </li>
	    </ul>
	  </li>
	  <% end %>
	
	  <li class="dropdown">
	    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= @current_membre.pseudo %><b class="caret"></b></a>
	    <ul class="dropdown-menu">
	      <li><%= link_to membre_path(@current_membre) do %>
		<i class="icon-user"></i> Mon profil
	      <% end %></li>
	      <li><%= link_to edit_membre_path(@current_membre) do %>
		<i class="icon-pencil"></i> Modifier mon profil
	      <% end %></li>
	      <li class="divider"></li>
	      <li><%= link_to logout_url, :method => :delete do %>
		<i class="icon-off"></i> Déconnexion
	      <% end %></li>
	    </ul>
	  </li>
	
	<% else %>
	
	<li class="dropdown">
	  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Connexion<b class="caret"></b></a>
	  <ul class="dropdown-menu">
	    <%= render :partial => "sessions/form", :locals => {:condensed => true} %>
	    
	    <script>$('.dropdown-menu').find('form').click(function (e) {  e.stopPropagation(); });</script>
	  </ul>
	</li>
	    
	<% end %>
	</ul>
       </div>
    </div>
  </div>
</div>




<div class="container-fluid">


  <% if flash[:notice] %>
    <div class="alert alert-success">
      <a class="close" data-dismiss="alert">×</a>
      <%= flash[:notice] %>
    </div>
  <% elsif flash[:error] %>
    <div class="alert alert-error">
      <a class="close" data-dismiss="alert">×</a>
      <%= flash[:alert] %>
    </div>
  <% end %>



  <%= yield %>




  <hr>

  <footer>
  <div class="row-fluid">
    <div class="span3">
      <h3><%= link_to 'Les Vannes', vannes_url %></h3>
      <p>
	<%= link_to 'Les dernières', vannes_url %><br />
	<%= link_to 'Les buzzantes', vannes_url(:order => 'buzz') %><br />
	<%= link_to 'Les meilleures', vannes_url(:order => 'best') %><br />
	<%= link_to 'Rechercher', search_vannes_path %>
      </p>
    </div>
    
    <div class="span3">
      <h3><%= link_to 'Communauté', membres_path %></h3>
      <p>
	<% if session[:membre_id] %>
	<%= link_to 'Salut, '+@current_membre.pseudo+' !', @current_membre %><br />
	<%= link_to 'Modifier mon profil', edit_membre_path(@current_membre) %><br />
	<%= link_to 'Déconnexion', logout_url, :method => :delete %><br />
	<% else %>
	<%= link_to 'Connexion', login_url %> <br />
	<%= link_to 'Inscription', new_membre_path %> <br /> <br />
	<% end %>
	<br /> 
      </p>
    </div>
    
    <div class="span3">
      <h3><%= link_to 'Suivez-nous', followus_url %></h3>
      <p>
	Facebook <br />
	<%= link_to image_tag("twitter.png"), 'http://twitter.com/cestunmec' %> <%= link_to 'Twitter', 'http://twitter.com/cestunmec' %><br />
	<%= link_to image_tag("rss.png"), vannes_path(:format => :rss) %> <%= link_to 'Flux RSS', vannes_path(:format => :rss) %><br /><br />
      </p>
    </div>
    
    <div class="span3">
      <h3><%= link_to 'Le site', about_url %></h3>
      <p>
	<%= link_to 'Ils parlent de nous', presse_url %><br />
	<%= link_to 'Contact', new_feedback_path %><br /> 
	<%= link_to image_tag("github.png"), "http://github.com/allegrem/cestunmec" %> <%= link_to 'Fork me on GitHub', "http://github.com/allegrem/cestunmec" %> <br />
	Version light
      </p>
    </div>
  </div>
  </footer>

</div>

</body>
</html><commit_msg>Nouveau footer<commit_after><!DOCTYPE html>
<html lang="fr">
<head>
  <title>C'est un mec</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <%= auto_discovery_link_tag :rss, vannes_url(:format => :rss) %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>



<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
	<span class="icon-bar"></span>
	<span class="icon-bar"></span>
	<span class="icon-bar"></span>
      </a>
    
      <%= link_to "C'est un mec", root_url, :class => "brand" %>
      
      <div class="nav-collapse">
	<ul class="nav">
	  <li class="<%= 'active' if params[:controller] == "home" %>"><%= link_to "Accueil", root_url %></li>
	  <li class="<%= 'active' if params[:order] == "last" %>"><%= link_to 'Les dernières', vannes_url(:order => 'last') %></li>
	  <li class="<%= 'active' if params[:order] == "buzz" %>"><%= link_to 'Les buzzantes', vannes_url(:order => 'buzz') %></li>
	  <li class="<%= 'active' if params[:order] == "best" %>"><%= link_to 'Les meilleures', vannes_url(:order => 'best') %></li>
	</ul>
	  
	<%= form_tag search_vannes_path, :class => "navbar-search pull-left" do %>
	  <%= text_field_tag :q, params[:q], :placeholder => 'Rechercher parmi les vannes ...', :class => "search-query" %><br />
	<% end %>
	
	
	<ul class="nav pull-right">
	<% if @current_membre %>
	
	  <% if @current_membre.admin %>
	    <li class="dropdown">
	    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Admin<b class="caret"></b></a>
	    <ul class="dropdown-menu">
	      <li><%= link_to vannes_path(:order => :validation) do %>
		Validation <span class="badge pull-right"><%= Vanne.where("valide = ?",false).count.to_s %></span>
		<% end %>
	      </li>
	      <li><%= link_to feedbacks_path do%>
		Feedback <span class="badge pull-right"><%= Feedback.where("lu = ?",false).count.to_s %></span>
		<% end %>
	      </li>
	    </ul>
	  </li>
	  <% end %>
	
	  <li class="dropdown">
	    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= @current_membre.pseudo %><b class="caret"></b></a>
	    <ul class="dropdown-menu">
	      <li><%= link_to membre_path(@current_membre) do %>
		<i class="icon-user"></i> Mon profil
	      <% end %></li>
	      <li><%= link_to edit_membre_path(@current_membre) do %>
		<i class="icon-pencil"></i> Modifier mon profil
	      <% end %></li>
	      <li class="divider"></li>
	      <li><%= link_to logout_url, :method => :delete do %>
		<i class="icon-off"></i> Déconnexion
	      <% end %></li>
	    </ul>
	  </li>
	
	<% else %>
	
	<li class="dropdown">
	  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Connexion<b class="caret"></b></a>
	  <ul class="dropdown-menu">
	    <%= render :partial => "sessions/form", :locals => {:condensed => true} %>
	    
	    <script>$('.dropdown-menu').find('form').click(function (e) {  e.stopPropagation(); });</script>
	  </ul>
	</li>
	    
	<% end %>
	</ul>
       </div>
    </div>
  </div>
</div>




<div class="container-fluid">


  <% if flash[:notice] %>
    <div class="alert alert-success">
      <a class="close" data-dismiss="alert">×</a>
      <%= flash[:notice] %>
    </div>
  <% elsif flash[:error] %>
    <div class="alert alert-error">
      <a class="close" data-dismiss="alert">×</a>
      <%= flash[:alert] %>
    </div>
  <% end %>



  <%= yield %>




  <hr>

  <footer>
    <p class="pull-right"><a href="#">Back to top</a></p>
    <p>
      Site réalisé par <a href="http://twitter.com/allegrem">@allegrem</a>. Tous droits réservés. <br />
      Icones de <a href="http://glyphicons.com">Glyphicons Free</a>, sous licence <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
    </p>
  </footer>

</div>

</body>
</html>
{'fraction_non_alphanumeric': 0.23601813863096524, 'fraction_numerical': 0.0021593608291945584, 'mean_word_length': 3.4214797136038184, 'pattern_counts': {'":': 0, '<': 365, '<?xml version=': 0, '>': 398, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2749777', 'n_tokens_mistral': 3786, 'n_tokens_neox': 3440, 'n_words': 708}