<commit_before>// 
	Catalog web/views

	Copyright 2014 Commons Machinery http://commonsmachinery.se/

	Authors:
		<NAME> <<EMAIL>>
		<NAME> <<EMAIL>>

	Distributed under an AGPL_v3 license, please see LICENSE in the top dir.

doctype html
meta(charset="utf-8") 

// To support Persona
meta(http-equiv="X-UA-Compatible", content="IE=Edge")

html(lang="en")
	head
		title Catalog
		// link(rel="stylesheet", href="/css/style.css")
		script(src="https://login.persona.org/include.js")

		script(src="/lib/require.js", data-main="/app/boot")
		
	body(data-login-user=user || '', data-login-email=loginEmail || '', data-login-type=loginType || '')
		nav: ul
			if (user)
				li: a(href="/users/#{user}")
					| #{loginEmail} (#{loginType})
				case loginType
					when 'persona'
						li: a#logout-persona(href="#")
							| Logout
					when 'test'
						li: a(href="/test/logout")
							| Logout
			else
				li: a(href="/login")
					| Login
		div#content
			| <commit_msg>[frontend] Fix some HTML issues with the page top<commit_after>//- This header goes into every page, so tell people what they're using:

//
	Metadata catalog - code and more info:
	https://github.com/commonsmachinery/catalog/
	
	Copyright 2014 Commons Machinery http://commonsmachinery.se/
	Distributed under an AGPL_v3 license, please see LICENSE in the top dir.


doctype html
html(lang="en")
	head
		meta(charset="utf-8")

		// To support Persona
		meta(http-equiv="X-UA-Compatible", content="IE=Edge")

		title Catalog
		// link(rel="stylesheet", href="/css/style.css")
		script(src="https://login.persona.org/include.js")

		script(src="/lib/require.js", data-main="/app/boot")
		
	body(data-login-user=user || '', data-login-email=loginEmail || '', data-login-type=loginType || '')
		nav: ul
			if (user)
				li: a(href="/users/#{user}")
					| #{loginEmail} (#{loginType})
				case loginType
					when 'persona'
						li: a#logout-persona(href="#")
							| Logout
					when 'test'
						li: a(href="/test/logout")
							| Logout
			else
				li: a(href="/login")
					| Login
		div#content
			| 
{'fraction_non_alphanumeric': 0.16931982633863965, 'fraction_numerical': 0.005788712011577424, 'mean_word_length': 3.2587268993839835, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 3, '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': '5194475', 'n_tokens_mistral': 859, 'n_tokens_neox': 705, 'n_words': 160}