<commit_before><%
	page_title       "Editing “" + @page.name.to_s + "”"
	page_description "Editing " + [@page.ancestors,@page].flatten.map{ |page| link_to((page.name rescue "(Untitled)"), edit_admin_page_path( :id => page, :language => @language )) }.join( " &raquo; " )

	if PagesCore.config.localizations?
		page_description_links "In " + @available_languages.map{ |l| link_to_unless_current( Language.name_for_code( l ), hash_for_edit_admin_page_path( :id => @page, :language => l ) ) }.join( link_separator ) 
	end

%>



<%# #### SIDEBAR ########################################################### %>

<% sidebar do %>
	<h2>About this page</h2>
	<p>
		This page was last modified <%= time_ago_in_words @page.updated_at %> ago by 
		<%= link_to @page.author.realname, admin_user_path( @page.author ) %>.
	</p>
<% end %>



<%# #### EDIT AREA ######################################################### %>

<% form_for 'page', @page, :url => admin_page_url( :id => @page, :language => @language ), :html => { :class => :edit_page, :id => 'page-form', :method => :put, :multipart => true } do |f| %>

	<%# #### CONTENT #### %>
	<% content_tab "Content" do %>
		<%= render :partial => 'page_content_form', :locals => {:f => f} %>
	<% end %>

	<%# #### PRESENTATION #### %><commit_msg>Et par bugfixes på edit page<commit_after><%
	page_title       "Editing “" + @page.name.to_s + "”"
	page_description "Editing " + [@page.ancestors.reverse,@page].flatten.map{|page| link_to((page.name rescue "(Untitled)"), edit_admin_page_path(@language, page))}.join(" &raquo; ")

	if PagesCore.config.localizations?
		page_description_links "In " + @available_languages.map{|lang| link_to_unless_current(Language.name_for_code(lang), edit_admin_page_path(lang, @page))}.join(link_separator)
	end

%>



<%# #### SIDEBAR ########################################################### %>

<% sidebar do %>
	<h2>About this page</h2>
	<p>
		This page was created by <%= link_to @page.author.realname, [:admin, @page.author] %>
    and was last modified <%= time_ago_in_words @page.updated_at %> ago.
	</p>
<% end %>



<%# #### EDIT AREA ######################################################### %>

<% form_for 'page', @page, :url => admin_page_url(@language, @page), :html => {:class => :edit_page, :id => 'page-form', :method => :put, :multipart => true} do |f| %>

	<%# #### CONTENT #### %>
	<% content_tab "Content" do %>
		<%= render :partial => 'page_content_form', :locals => {:f => f} %>
	<% end %>

	<%# #### PRESENTATION #### %>
{'fraction_non_alphanumeric': 0.28815580286168524, 'fraction_numerical': 0.001589825119236884, 'mean_word_length': 5.124087591240876, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 61, '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': '3500006', 'n_tokens_mistral': 952, 'n_tokens_neox': 865, 'n_words': 174}